Skip to content

Commit

Permalink
Merge pull request #15 from wirecard/TPWDCEE-770
Browse files Browse the repository at this point in the history
Tpwdcee 770
  • Loading branch information
jpy authored Feb 26, 2018
2 parents df29b62 + 4e66ed5 commit 7ba202a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion wirecardceecheckoutpage/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>wirecardceecheckoutpage</name>
<displayName><![CDATA[Wirecard Checkout Page]]></displayName>
<version>2.1.2</version>
<version>2.1.3</version>
<description><![CDATA[Wirecard Checkout Page payment module]]></description>
<author>Wirecard</author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
16 changes: 9 additions & 7 deletions wirecardceecheckoutpage/wirecardceecheckoutpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function __construct()
$this->config = $this->config();
$this->name = 'wirecardceecheckoutpage';
$this->tab = 'payments_gateways';
$this->version = '2.1.2';
$this->version = '2.1.3';
$this->author = 'Wirecard';
$this->controllers = array('breakoutIFrame', 'confirm', 'payment', 'paymentIFrame');
$this->is_eu_compatible = 1;
Expand Down Expand Up @@ -932,13 +932,15 @@ public function hookPaymentOptions($params)
$this->context->cookie->wcpConsumerDeviceId = $consumerDeviceId;
$this->context->cookie->write();
}
if ((Configuration::get(self::WCP_INVOICE_PROVIDER) == 'ratepay' && (bool)Configuration::get(self::WCP_PT_INVOICE)) ||
(Configuration::get(self::WCP_INSTALLMENT_PROVIDER) == 'ratepay' && (bool)Configuration::get(self::WCP_PT_INSTALLMENT))) {
$ratepay = '<script language="JavaScript">var di = {t:"' . $consumerDeviceId . '",v:"WDWL",l:"Checkout"};</script>';
$ratepay .= '<script type="text/javascript" src="//d.ratepay.com/' . $consumerDeviceId . '/di.js"></script>';
$ratepay .= '<noscript><link rel="stylesheet" type="text/css" href="//d.ratepay.com/di.css?t=' . $consumerDeviceId . '&v=WDWL&l=Checkout"></noscript>';
$ratepay .= '<object type="application/x-shockwave-flash" data="//d.ratepay.com/WDWL/c.swf" width="0" height="0"><param name="movie" value="//d.ratepay.com/WDWL/c.swf" /><param name="flashvars" value="t=' . $consumerDeviceId . '&v=WDWL"/><param name="AllowScriptAccess" value="always"/></object>';

$ratepay = '<script language="JavaScript">var di = {t:"'.$consumerDeviceId.'",v:"WDWL",l:"Checkout"};</script>';
$ratepay .= '<script type="text/javascript" src="//d.ratepay.com/'.$consumerDeviceId.'/di.js"></script>';
$ratepay .= '<noscript><link rel="stylesheet" type="text/css" href="//d.ratepay.com/di.css?t='.$consumerDeviceId.'&v=WDWL&l=Checkout"></noscript>';
$ratepay .= '<object type="application/x-shockwave-flash" data="//d.ratepay.com/WDWL/c.swf" width="0" height="0"><param name="movie" value="//d.ratepay.com/WDWL/c.swf" /><param name="flashvars" value="t='.$consumerDeviceId.'&v=WDWL"/><param name="AllowScriptAccess" value="always"/></object>';

echo $ratepay;
echo $ratepay;
}

foreach ($paymentTypes as $paymentType) {
$payment = new PaymentOption();
Expand Down

0 comments on commit 7ba202a

Please sign in to comment.