Version Notes
-Fixed bug status complete
-Fixed bug payment product sended to TPP in Recurring or oneclick
Download this release
Release Info
| Developer | Kassim_Profileo |
| Extension | Allopass_Hipay |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.1 to 1.0.3
- app/code/community/Allopass/Hipay/.DS_Store +0 -0
- app/code/community/Allopass/Hipay/Helper/Data.php +6 -3
- app/code/community/Allopass/Hipay/Model/Method/Abstract.php +63 -31
- app/code/community/Allopass/Hipay/Model/Method/Cc.php +1 -1
- app/code/community/Allopass/Hipay/Model/Method/Hosted.php +1 -1
- app/code/community/Allopass/Hipay/Model/Source/Order/Status.php +2 -2
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php +24 -1
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php +1 -1
- app/code/community/Allopass/Hipay/etc/config.xml +1 -1
- app/design/frontend/default/default/template/hipay/form/hosted.phtml +1 -5
- app/locale/it_IT/Allopass_Hipay.csv +85 -0
- package.xml +8 -7
app/code/community/Allopass/Hipay/.DS_Store
DELETED
|
Binary file
|
app/code/community/Allopass/Hipay/Helper/Data.php
CHANGED
|
@@ -24,7 +24,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 24 |
unset($parameters['hash']);
|
| 25 |
ksort($parameters);
|
| 26 |
foreach ($parameters as $name => $value) {
|
| 27 |
-
if (
|
| 28 |
$string2compute .= $name . $value . $passphrase;
|
| 29 |
}
|
| 30 |
}
|
|
@@ -67,11 +67,13 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 67 |
*
|
| 68 |
* @param Mage_Customer_Model_Customer $customer
|
| 69 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
|
|
|
| 70 |
*/
|
| 71 |
public function responseToCustomer($customer,$response,$isRecurring = false)
|
| 72 |
{
|
| 73 |
|
| 74 |
$paymentMethod = $response->getPaymentMethod();
|
|
|
|
| 75 |
$token = isset($paymentMethod['token']) ? $paymentMethod['token'] : $response->getData('cardtoken');
|
| 76 |
|
| 77 |
if($isRecurring)
|
|
@@ -83,9 +85,10 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 83 |
$customer->setHipayCcExpDate($paymentMethod['card_expiry_month'] . "-" . $paymentMethod['card_expiry_year'] );
|
| 84 |
else
|
| 85 |
$customer->setHipayCcExpDate(substr($response->getData('cardexpiry'), 4,2) . "-" . substr($response->getData('cardexpiry'), 0,4) );
|
|
|
|
| 86 |
$customer->setHipayCcNumberEnc(isset($paymentMethod['pan']) ? $paymentMethod['pan'] : $response->getData('cardpan'));
|
| 87 |
-
|
| 88 |
-
|
| 89 |
|
| 90 |
$customer->getResource()->saveAttribute($customer, 'hipay_alias_oneclick');
|
| 91 |
$customer->getResource()->saveAttribute($customer, 'hipay_cc_exp_date');
|
| 24 |
unset($parameters['hash']);
|
| 25 |
ksort($parameters);
|
| 26 |
foreach ($parameters as $name => $value) {
|
| 27 |
+
if (strlen($value) > 0) {
|
| 28 |
$string2compute .= $name . $value . $passphrase;
|
| 29 |
}
|
| 30 |
}
|
| 67 |
*
|
| 68 |
* @param Mage_Customer_Model_Customer $customer
|
| 69 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
| 70 |
+
* @param boolean $isRecurring
|
| 71 |
*/
|
| 72 |
public function responseToCustomer($customer,$response,$isRecurring = false)
|
| 73 |
{
|
| 74 |
|
| 75 |
$paymentMethod = $response->getPaymentMethod();
|
| 76 |
+
$paymentProduct = $response->getPaymentProduct();
|
| 77 |
$token = isset($paymentMethod['token']) ? $paymentMethod['token'] : $response->getData('cardtoken');
|
| 78 |
|
| 79 |
if($isRecurring)
|
| 85 |
$customer->setHipayCcExpDate($paymentMethod['card_expiry_month'] . "-" . $paymentMethod['card_expiry_year'] );
|
| 86 |
else
|
| 87 |
$customer->setHipayCcExpDate(substr($response->getData('cardexpiry'), 4,2) . "-" . substr($response->getData('cardexpiry'), 0,4) );
|
| 88 |
+
|
| 89 |
$customer->setHipayCcNumberEnc(isset($paymentMethod['pan']) ? $paymentMethod['pan'] : $response->getData('cardpan'));
|
| 90 |
+
//$customer->setHipayCcType(isset($paymentMethod['brand']) ? strtolower($paymentMethod['brand']) : strtolower($response->getData('cardbrand')));
|
| 91 |
+
$customer->setHipayCcType($paymentProduct);
|
| 92 |
|
| 93 |
$customer->getResource()->saveAttribute($customer, 'hipay_alias_oneclick');
|
| 94 |
$customer->getResource()->saveAttribute($customer, 'hipay_cc_exp_date');
|
app/code/community/Allopass/Hipay/Model/Method/Abstract.php
CHANGED
|
@@ -215,6 +215,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 215 |
break;
|
| 216 |
case 117: //Capture Requested
|
| 217 |
|
|
|
|
|
|
|
|
|
|
| 218 |
$this->addTransaction(
|
| 219 |
$payment,
|
| 220 |
$gatewayResponse->getTransactionReference(),
|
|
@@ -232,46 +235,27 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 232 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
| 233 |
);
|
| 234 |
|
| 235 |
-
if(((int)$this->getConfigData('hipay_status_validate_order') == 117) === false )
|
| 236 |
break;
|
| 237 |
-
else {
|
| 238 |
$order->save();
|
| 239 |
-
}
|
| 240 |
|
| 241 |
case 118: //Capture
|
| 242 |
|
| 243 |
-
if
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
| 249 |
-
$status = $order->getStatus();
|
| 250 |
}
|
| 251 |
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
| 255 |
-
$order->setState(
|
| 256 |
-
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
| 257 |
-
);
|
| 258 |
-
} else if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
| 259 |
-
$order->setState(
|
| 260 |
-
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
| 261 |
-
);
|
| 262 |
-
} else {
|
| 263 |
-
$order->addStatusToHistory($status, $message, true);
|
| 264 |
}
|
| 265 |
|
| 266 |
-
|
| 267 |
-
|
| 268 |
// Create invoice
|
| 269 |
if ($this->getConfigData('invoice_create',$order->getStoreId()) && !$order->hasInvoices()) {
|
| 270 |
|
| 271 |
-
$invoice = $order->
|
| 272 |
-
$invoice->setTransactionId($gatewayResponse->getTransactionReference());
|
| 273 |
-
$invoice->register()->capture();
|
| 274 |
-
$invoice->setIsPaid(1);
|
| 275 |
Mage::getModel('core/resource_transaction')
|
| 276 |
->addObject($invoice)->addObject($invoice->getOrder())
|
| 277 |
->save();
|
|
@@ -292,6 +276,32 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 292 |
}
|
| 293 |
}
|
| 294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
if (!$order->getEmailSent()) {
|
| 296 |
$order->sendNewOrderEmail();
|
| 297 |
}
|
|
@@ -448,6 +458,27 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 448 |
|
| 449 |
}
|
| 450 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 451 |
|
| 452 |
/**
|
| 453 |
*
|
|
@@ -596,7 +627,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 596 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
| 597 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
| 598 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
| 599 |
-
$params['ipaddr'] = $payment->getOrder()->getRemoteIp();
|
| 600 |
|
| 601 |
$params['http_accept'] = "*/*";
|
| 602 |
$params['http_user_agent'] = Mage::helper('core/http')->getHttpUserAgent();
|
|
@@ -722,11 +753,12 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
| 722 |
* @param Mage_Sales_Model_Order_Payment $payment
|
| 723 |
* @return bool
|
| 724 |
*/
|
| 725 |
-
|
| 726 |
{
|
| 727 |
$lastTransaction = $payment->getTransaction($payment->getLastTransId());
|
| 728 |
if (!$lastTransaction
|
| 729 |
-
|| $lastTransaction->getTxnType()
|
|
|
|
| 730 |
) {
|
| 731 |
return false;
|
| 732 |
}
|
| 215 |
break;
|
| 216 |
case 117: //Capture Requested
|
| 217 |
|
| 218 |
+
if($order->getStatus() == 'capture' || $order->getStatus() == 'processing' )// for logic process
|
| 219 |
+
break;
|
| 220 |
+
|
| 221 |
$this->addTransaction(
|
| 222 |
$payment,
|
| 223 |
$gatewayResponse->getTransactionReference(),
|
| 235 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
| 236 |
);
|
| 237 |
|
| 238 |
+
if(((int)$this->getConfigData('hipay_status_validate_order') == 117) === false /*&& $payment->getCcType() != 'AE'*/ )
|
| 239 |
break;
|
| 240 |
+
/*else {
|
| 241 |
$order->save();
|
| 242 |
+
}*/
|
| 243 |
|
| 244 |
case 118: //Capture
|
| 245 |
|
| 246 |
+
if($order->getStatus() == $this->getConfigData('order_status_payment_accepted') )
|
| 247 |
+
{
|
| 248 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
}
|
| 250 |
|
| 251 |
+
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
| 252 |
+
$order->unhold();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
}
|
| 254 |
|
|
|
|
|
|
|
| 255 |
// Create invoice
|
| 256 |
if ($this->getConfigData('invoice_create',$order->getStoreId()) && !$order->hasInvoices()) {
|
| 257 |
|
| 258 |
+
$invoice = $this->create_invoice($order, $gatewayResponse->getTransactionReference());
|
|
|
|
|
|
|
|
|
|
| 259 |
Mage::getModel('core/resource_transaction')
|
| 260 |
->addObject($invoice)->addObject($invoice->getOrder())
|
| 261 |
->save();
|
| 276 |
}
|
| 277 |
}
|
| 278 |
|
| 279 |
+
|
| 280 |
+
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
| 281 |
+
$status = $order->getStatus();
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
$message = Mage::helper("hipay")->__('Payment accepted by Hipay.');
|
| 285 |
+
|
| 286 |
+
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
| 287 |
+
$order->setState(
|
| 288 |
+
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
| 289 |
+
);
|
| 290 |
+
} else if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
| 291 |
+
$order->setData('state',Mage_Sales_Model_Order::STATE_COMPLETE);
|
| 292 |
+
$order->addStatusToHistory($status, $message, true);
|
| 293 |
+
/*$order->setState(
|
| 294 |
+
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
| 295 |
+
);*/
|
| 296 |
+
} else {
|
| 297 |
+
$order->addStatusToHistory($status, $message, true);
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
|
| 305 |
if (!$order->getEmailSent()) {
|
| 306 |
$order->sendNewOrderEmail();
|
| 307 |
}
|
| 458 |
|
| 459 |
}
|
| 460 |
}
|
| 461 |
+
|
| 462 |
+
/**
|
| 463 |
+
* Create object invoice
|
| 464 |
+
* @param Mage_Sales_Model_Order $order
|
| 465 |
+
* @param string $transactionReference
|
| 466 |
+
* @param boolean $capture
|
| 467 |
+
* @param boolean $paid
|
| 468 |
+
* @return Mage_Sales_Model_Order_Invoice $invoice
|
| 469 |
+
*/
|
| 470 |
+
protected function create_invoice($order,$transactionReference,$capture = true,$paid = true)
|
| 471 |
+
{
|
| 472 |
+
$invoice = $order->prepareInvoice();
|
| 473 |
+
$invoice->setTransactionId($transactionReference);
|
| 474 |
+
if($capture)
|
| 475 |
+
$invoice->register()->capture();
|
| 476 |
+
|
| 477 |
+
if($paid)
|
| 478 |
+
$invoice->setIsPaid(1);
|
| 479 |
+
|
| 480 |
+
return $invoice;
|
| 481 |
+
}
|
| 482 |
|
| 483 |
/**
|
| 484 |
*
|
| 627 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
| 628 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
| 629 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
| 630 |
+
$params['ipaddr'] = !is_null($payment->getOrder()->getXForwardedFor()) ? $payment->getOrder()->getXForwardedFor() : $payment->getOrder()->getRemoteIp();
|
| 631 |
|
| 632 |
$params['http_accept'] = "*/*";
|
| 633 |
$params['http_user_agent'] = Mage::helper('core/http')->getHttpUserAgent();
|
| 753 |
* @param Mage_Sales_Model_Order_Payment $payment
|
| 754 |
* @return bool
|
| 755 |
*/
|
| 756 |
+
protected function isPreauthorizeCapture($payment)
|
| 757 |
{
|
| 758 |
$lastTransaction = $payment->getTransaction($payment->getLastTransId());
|
| 759 |
if (!$lastTransaction
|
| 760 |
+
|| (($this->getOperation() == self::OPERATION_SALE) && ($lastTransaction->getTxnType() == Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH ) )
|
| 761 |
+
|| $lastTransaction->getTxnType() != Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH
|
| 762 |
) {
|
| 763 |
return false;
|
| 764 |
}
|
app/code/community/Allopass/Hipay/Model/Method/Cc.php
CHANGED
|
@@ -130,7 +130,7 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
| 130 |
{
|
| 131 |
parent::capture($payment, $amount);
|
| 132 |
|
| 133 |
-
if (
|
| 134 |
$this->_preauthorizeCapture($payment, $amount);
|
| 135 |
|
| 136 |
$payment->setSkipTransactionCreation(true);
|
| 130 |
{
|
| 131 |
parent::capture($payment, $amount);
|
| 132 |
|
| 133 |
+
if ($this->isPreauthorizeCapture($payment))
|
| 134 |
$this->_preauthorizeCapture($payment, $amount);
|
| 135 |
|
| 136 |
$payment->setSkipTransactionCreation(true);
|
app/code/community/Allopass/Hipay/Model/Method/Hosted.php
CHANGED
|
@@ -43,7 +43,7 @@ class Allopass_Hipay_Model_Method_Hosted extends Allopass_Hipay_Model_Method_Abs
|
|
| 43 |
{
|
| 44 |
parent::capture($payment, $amount);
|
| 45 |
|
| 46 |
-
if (
|
| 47 |
$this->_preauthorizeCapture($payment, $amount);
|
| 48 |
|
| 49 |
$payment->setSkipTransactionCreation(true);
|
| 43 |
{
|
| 44 |
parent::capture($payment, $amount);
|
| 45 |
|
| 46 |
+
if ($this->isPreauthorizeCapture($payment))
|
| 47 |
$this->_preauthorizeCapture($payment, $amount);
|
| 48 |
|
| 49 |
$payment->setSkipTransactionCreation(true);
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status.php
CHANGED
|
@@ -12,10 +12,10 @@ class Allopass_Hipay_Model_Source_Order_Status {
|
|
| 12 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
| 13 |
}
|
| 14 |
$options = array();
|
| 15 |
-
|
| 16 |
'value' => '',
|
| 17 |
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
| 18 |
-
)
|
| 19 |
foreach ($statuses as $code => $label) {
|
| 20 |
$options[] = array(
|
| 21 |
'value' => $code,
|
| 12 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
| 13 |
}
|
| 14 |
$options = array();
|
| 15 |
+
/*$options[] = array(
|
| 16 |
'value' => '',
|
| 17 |
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
| 18 |
+
);*/
|
| 19 |
foreach ($statuses as $code => $label) {
|
| 20 |
$options[] = array(
|
| 21 |
'value' => $code,
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php
CHANGED
|
@@ -4,9 +4,32 @@ class Allopass_Hipay_Model_Source_Order_Status_Accepted extends Allopass_Hipay_M
|
|
| 4 |
|
| 5 |
// set null to enable all possible
|
| 6 |
protected $_stateStatuses = array(
|
| 7 |
-
|
| 8 |
Mage_Sales_Model_Order::STATE_PROCESSING,
|
| 9 |
Mage_Sales_Model_Order::STATE_COMPLETE
|
| 10 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
}
|
| 4 |
|
| 5 |
// set null to enable all possible
|
| 6 |
protected $_stateStatuses = array(
|
| 7 |
+
// Mage_Sales_Model_Order::STATE_NEW,
|
| 8 |
Mage_Sales_Model_Order::STATE_PROCESSING,
|
| 9 |
Mage_Sales_Model_Order::STATE_COMPLETE
|
| 10 |
);
|
| 11 |
+
|
| 12 |
+
public function toOptionArray() {
|
| 13 |
+
if ($this->_stateStatuses) {
|
| 14 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStateStatuses($this->_stateStatuses);
|
| 15 |
+
} else {
|
| 16 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
| 17 |
+
}
|
| 18 |
+
$options = array();
|
| 19 |
+
/*$options[] = array(
|
| 20 |
+
'value' => '',
|
| 21 |
+
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
| 22 |
+
);*/
|
| 23 |
+
foreach ($statuses as $code => $label) {
|
| 24 |
+
if($code != Mage_Sales_Model_Order::STATE_PROCESSING && $code != Mage_Sales_Model_Order::STATE_COMPLETE)
|
| 25 |
+
continue;
|
| 26 |
+
|
| 27 |
+
$options[] = array(
|
| 28 |
+
'value' => $code,
|
| 29 |
+
'label' => $label
|
| 30 |
+
);
|
| 31 |
+
}
|
| 32 |
+
return $options;
|
| 33 |
+
}
|
| 34 |
|
| 35 |
}
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php
CHANGED
|
@@ -6,7 +6,7 @@ class Allopass_Hipay_Model_Source_Order_Status_Refused extends Allopass_Hipay_Mo
|
|
| 6 |
protected $_stateStatuses = array(
|
| 7 |
Mage_Sales_Model_Order::STATE_HOLDED,
|
| 8 |
Mage_Sales_Model_Order::STATE_CANCELED,
|
| 9 |
-
Mage_Sales_Model_Order::STATE_CLOSED
|
| 10 |
);
|
| 11 |
|
| 12 |
}
|
| 6 |
protected $_stateStatuses = array(
|
| 7 |
Mage_Sales_Model_Order::STATE_HOLDED,
|
| 8 |
Mage_Sales_Model_Order::STATE_CANCELED,
|
| 9 |
+
//Mage_Sales_Model_Order::STATE_CLOSED
|
| 10 |
);
|
| 11 |
|
| 12 |
}
|
app/code/community/Allopass/Hipay/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Allopass_Hipay>
|
| 5 |
-
<version>1.0.
|
| 6 |
</Allopass_Hipay>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Allopass_Hipay>
|
| 5 |
+
<version>1.0.3</version>
|
| 6 |
</Allopass_Hipay>
|
| 7 |
</modules>
|
| 8 |
<global>
|
app/design/frontend/default/default/template/hipay/form/hosted.phtml
CHANGED
|
@@ -37,7 +37,6 @@
|
|
| 37 |
</ul>
|
| 38 |
<?php endif; ?>
|
| 39 |
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
| 40 |
-
<?php $iframe = $this->getIframeConfig()?>
|
| 41 |
<script type="text/javascript">
|
| 42 |
//<![CDATA[
|
| 43 |
|
|
@@ -54,10 +53,7 @@
|
|
| 54 |
}
|
| 55 |
|
| 56 |
// generate Iframe
|
| 57 |
-
|
| 58 |
-
if (strlen($iframe['iframe_height']) > 1) $iframe_height = $iframe['iframe_height']; else $iframe_height = 670;
|
| 59 |
-
if (strlen($iframe['iframe_style']) > 1) $iframe_style = $iframe['iframe_style']; else $iframe_style = 'border:1px solid #CCC;border-radius:15px;padding:10px;max-width:500px;'; ?>
|
| 60 |
-
hipayIframeWrapper.appendChild(new Element('iframe', {frameBorder: 0, width: '<?php echo $iframe_width; ?>', height: '<?php echo $iframe_height; ?>', src: url, style: '<?php echo $iframe_style; ?>'}));
|
| 61 |
//var button = new Element('button', {'class': 'button', type: 'button'}).update('<span><span>Cancel</span></span>');
|
| 62 |
//Event.observe(button, 'click', this.cancel.bind(this));
|
| 63 |
//hipayIframeWrapper.appendChild(button);
|
| 37 |
</ul>
|
| 38 |
<?php endif; ?>
|
| 39 |
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
|
|
|
| 40 |
<script type="text/javascript">
|
| 41 |
//<