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 0dc4ef11 authored by rikterbeek's avatar rikterbeek

use deliveryAddress for delivery instead of billing

parent 806b68f3
...@@ -116,12 +116,12 @@ class PaymentRequest extends \Magento\Framework\Object ...@@ -116,12 +116,12 @@ class PaymentRequest extends \Magento\Framework\Object
{ {
$addressArray = $this->_adyenHelper->getStreet($deliveryAddress); $addressArray = $this->_adyenHelper->getStreet($deliveryAddress);
$requestDelivery = array("paymentRequest.card.billingAddress.street" => $addressArray['name'], $requestDelivery = array("paymentRequest.card.deliveryAddress.street" => $addressArray['name'],
"paymentRequest.card.billingAddress.postalCode" => $deliveryAddress->getPostcode(), "paymentRequest.card.deliveryAddress.postalCode" => $deliveryAddress->getPostcode(),
"paymentRequest.card.billingAddress.city" => $deliveryAddress->getCity(), "paymentRequest.card.deliveryAddress.city" => $deliveryAddress->getCity(),
"paymentRequest.card.billingAddress.houseNumberOrName" => $addressArray['house_number'], "paymentRequest.card.deliveryAddress.houseNumberOrName" => $addressArray['house_number'],
"paymentRequest.card.billingAddress.stateOrProvince" => $deliveryAddress->getRegionCode(), "paymentRequest.card.deliveryAddress.stateOrProvince" => $deliveryAddress->getRegionCode(),
"paymentRequest.card.billingAddress.country" => $deliveryAddress->getCountryId() "paymentRequest.card.deliveryAddress.country" => $deliveryAddress->getCountryId()
); );
$request = array_merge($request, $requestDelivery); $request = array_merge($request, $requestDelivery);
} }
......
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