We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 5c48ec86 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #197 from ebaschiera/develop-erm

always populate cc_type column in sales_order_payment to feed order g…
parents c3db48dd 9528d75d
...@@ -61,6 +61,8 @@ class AdyenBoletoDataAssignObserver extends AbstractDataAssignObserver ...@@ -61,6 +61,8 @@ class AdyenBoletoDataAssignObserver extends AbstractDataAssignObserver
$paymentInfo = $this->readPaymentModelArgument($observer); $paymentInfo = $this->readPaymentModelArgument($observer);
$paymentInfo->setCcType('boleto');
foreach ($this->additionalInformationList as $additionalInformationKey) { foreach ($this->additionalInformationList as $additionalInformationKey) {
if (isset($additionalData[$additionalInformationKey])) { if (isset($additionalData[$additionalInformationKey])) {
$paymentInfo->setAdditionalInformation( $paymentInfo->setAdditionalInformation(
......
...@@ -66,6 +66,10 @@ class AdyenHppDataAssignObserver extends AbstractDataAssignObserver ...@@ -66,6 +66,10 @@ class AdyenHppDataAssignObserver extends AbstractDataAssignObserver
$paymentInfo = $this->readPaymentModelArgument($observer); $paymentInfo = $this->readPaymentModelArgument($observer);
if (isset($additionalData[self::BRAND_CODE])) {
$paymentInfo->setCcType($additionalData[self::BRAND_CODE]);
}
foreach ($this->additionalInformationList as $additionalInformationKey) { foreach ($this->additionalInformationList as $additionalInformationKey) {
if (isset($additionalData[$additionalInformationKey])) { if (isset($additionalData[$additionalInformationKey])) {
$paymentInfo->setAdditionalInformation( $paymentInfo->setAdditionalInformation(
...@@ -75,4 +79,4 @@ class AdyenHppDataAssignObserver extends AbstractDataAssignObserver ...@@ -75,4 +79,4 @@ class AdyenHppDataAssignObserver extends AbstractDataAssignObserver
} }
} }
} }
} }
...@@ -61,6 +61,8 @@ class AdyenSepaDataAssignObserver extends AbstractDataAssignObserver ...@@ -61,6 +61,8 @@ class AdyenSepaDataAssignObserver extends AbstractDataAssignObserver
$paymentInfo = $this->readPaymentModelArgument($observer); $paymentInfo = $this->readPaymentModelArgument($observer);
$paymentInfo->setCcType('sepa');
foreach ($this->additionalInformationList as $additionalInformationKey) { foreach ($this->additionalInformationList as $additionalInformationKey) {
if (isset($additionalData[$additionalInformationKey])) { if (isset($additionalData[$additionalInformationKey])) {
$paymentInfo->setAdditionalInformation( $paymentInfo->setAdditionalInformation(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment