first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user