Skip to content

Commit

Permalink
Merge pull request #48 from wirecard/pciIframeMaestro
Browse files Browse the repository at this point in the history
Pciiframemaestro
  • Loading branch information
rinnhofer authored Mar 27, 2017
2 parents 769dd3e + b7029e3 commit 77501f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Frontend/WirecardCheckoutSeamless/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getCapabilities()
*/
public function getVersion()
{
return '1.9.1';
return '1.9.2';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ public function confirmAction()
$variables['confirmMailDeliveryFailed'] = true;
Shopware()->Session()->offsetSet('sOrderVariables', $variables);
}
if (Shopware()->WirecardCheckoutSeamless()->Config()->saveReturnValues() > 1) {
$this->saveComments($return , $orderId);
}
}
if (Shopware()->WirecardCheckoutSeamless()->Config()->saveReturnValues() > 1) {
$this->saveComments($return , $orderId);
}
}
break;
Expand Down
2 changes: 1 addition & 1 deletion Frontend/WirecardCheckoutSeamless/Models/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public function getPaymentMethods()
'name' => 'maestro',
'description' => 'Maestro SecureCode',
'template' => '',
'call' => WirecardCEE_QMore_PaymentType::CCARD,
'call' => WirecardCEE_QMore_PaymentType::MAESTRO,
'translation' => Array('description' => 'Wirecard Maestro SecureCode', 'additionalDescription' => '')
);
$pm[] = array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var wirecardPayment = {
{
var paymentInformation = {};
$("#wd_payment_fields").find(":input").each(function() {
if(this.name == "paymentType" && ($(this).val() == 'maestro' || $(this).val() == 'ccard-moto'))
if(this.name == "paymentType" && $(this).val() == 'ccard-moto')
{
//overwrite paymentType with ccard
paymentInformation[this.name] = 'ccard';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var wirecardPayment = {
this.pci3Iframes.ccard = wdcee.buildIframeCreditCard('wirecardccardIframeContainer', '700px', '200px');
} else if ($('#wirecardccard-motoIframeContainer').length > 0) {
this.pci3Iframes.ccard = wdcee.buildIframeCreditCard('wirecardccard-motoIframeContainer', '700px', '200px');
} else if ($('#wirecardmaestroIframeContainer').length > 0) {
this.pci3Iframes.maestro = wdcee.buildIframeMaestro('wirecardmaestroIframeContainer', '700px', '200px');
}
}
},
Expand Down Expand Up @@ -117,7 +119,7 @@ var wirecardPayment = {
{
var paymentInformation = {};
$("#wd_payment_fields").find(":input").each(function() {
if(this.name == "paymentType" && ($(this).val() == 'maestro' || $(this).val() == 'ccard-moto'))
if(this.name == "paymentType" && $(this).val() == 'ccard-moto')
{
//overwrite paymentType with ccard
paymentInformation[this.name] = 'ccard';
Expand Down

0 comments on commit 77501f5

Please sign in to comment.