Skip to content

Commit

Permalink
Merge pull request #28 from wirecard/TPWDCEE-771
Browse files Browse the repository at this point in the history
Tpwdcee 771
  • Loading branch information
jpy authored Feb 8, 2018
2 parents 12dee89 + f4e7df2 commit 92c5644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wirecardceecheckoutseamless/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>wirecardceecheckoutseamless</name>
<displayName><![CDATA[Wirecard Checkout Seamless]]></displayName>
<version><![CDATA[2.0.1]]></version>
<version><![CDATA[2.0.5]]></version>
<description><![CDATA[Wirecard Checkout Seamless payment module]]></description>
<author><![CDATA[Wirecard]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
8 changes: 6 additions & 2 deletions wirecardceecheckoutseamless/wirecardceecheckoutseamless.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function __construct()
$this->config = $this->config();
$this->name = 'wirecardceecheckoutseamless';
$this->tab = 'payments_gateways';
$this->version = '2.0.4';
$this->version = '2.0.5';
$this->author = 'Wirecard';
$this->controllers = array(
'confirm',
Expand Down Expand Up @@ -1910,7 +1910,10 @@ public function hookPaymentOptions($params)
if (!isset($this->context->cookie->wcsConsumerDeviceId)) {
$this->context->cookie->wcsConsumerDeviceId = $consumerDeviceId;
}
echo "<script language='JavaScript'>

if ((Configuration::get('WCS_PT_INVOICE_PROVIDER') == 'ratepay' && (bool)Configuration::get('WCS_PT_INVOICE')) ||
(Configuration::get('WCS_PT_INSTALLMENT_PROVIDER') == 'ratepay' && (bool)Configuration::get('WCS_PT_INSTALLMENT'))) {
echo "<script language='JavaScript'>
var di = {t:'" . $this->context->cookie->wcsConsumerDeviceId . "',v:'WDWL',l:'Checkout'};
</script>
<script type='text/javascript' src='//d.ratepay.com/" . $this->context->cookie->wcsConsumerDeviceId . "/di.js'></script>
Expand All @@ -1922,6 +1925,7 @@ public function hookPaymentOptions($params)
<param name='flashvars' value='t=" . $this->context->cookie->wcsConsumerDeviceId . "&v=WDWL'/>
<param name='AllowScriptAccess' value='always'/>
</object>";
}

$paymentTypes = $this->getEnabledPaymentTypes($params['cart']);

Expand Down

0 comments on commit 92c5644

Please sign in to comment.