Files
grzanieplus.pl/plugins/cvIngPlugin/modules/cvIngTwistoFrontend/actions/components.class.php
2025-03-12 17:06:23 +01:00

24 lines
781 B
PHP

<?php
class cvIngTwistoFrontendComponents extends sfComponents {
public function executeShowPayment() {
$this->smarty = new stSmarty('cvIngTwistoFrontend');
$ing = new cvIngService();
$plugin = new cvIngPlugin();
$tl=new cvIngTranslationCfg();
$txt=$tl->getArray();
if (!isset($this->order)){
$this->order = OrderPeer::retrieveByIdAndHashCode($this->getRequestParameter('id'), $this->getRequestParameter('hash_code'));
}
$this->smarty->assign('url', $ing->paymentUrl);
$this->smarty->assign('txt', $txt);
$this->smarty->assign('data', $ing->getTransactionData($this->order, 1));
$this->smarty->assign('check_configuration', $plugin->checkPaymentConfiguration());
}
}