first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
class stEservice2FrontendComponents extends sfComponents
{
public function executeShowPayment()
{
$smarty = new stSmarty('stEservice2Frontend');
$api = new stEservice2();
$response = $api->getToken($this->order);
if ($response)
{
$smarty->assign('logo', $api->getLogoPath());
$smarty->assign('url', $api->getPaymentUrl());
$smarty->assign('params', array(
'merchantId' => $response->merchantId,
'token' => $response->token,
'integrationMode' => 'hostedPayPage',
));
}
else
{
return $this->getController()->redirect($this->getController()->genUrl('@stEservice2Plugin?action=returnFail'));
}
return $smarty;
}
}