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 79fb1e94 authored by attilak's avatar attilak

Move Sepa to Checkout payments endpoint

parent 65a7710e
...@@ -38,17 +38,11 @@ class SepaAuthorizationDataBuilder implements BuilderInterface ...@@ -38,17 +38,11 @@ class SepaAuthorizationDataBuilder implements BuilderInterface
$payment = $paymentDataObject->getPayment(); $payment = $paymentDataObject->getPayment();
$request = []; $request = [];
// set brand to sepa
$request['selectedBrand'] = "sepadirectdebit";
// add bankDetails into request // add bankDetails into request
$bankAccount = [ $request['paymentMethod']['type'] = "sepadirectdebit";
'iban' => $payment->getAdditionalInformation("iban"), $request['paymentMethod']['sepa.ibanNumber'] = $payment->getAdditionalInformation("iban");
'ownerName' => $payment->getAdditionalInformation("account_name"), $request['paymentMethod']['sepa.ownerName'] = $payment->getAdditionalInformation("account_name");
'countryCode' => $payment->getAdditionalInformation("country") $request['paymentMethod']['countryCode'] = $payment->getAdditionalInformation("country");
];
$request['bankAccount'] = $bankAccount;
return $request; return $request;
} }
......
...@@ -405,8 +405,8 @@ ...@@ -405,8 +405,8 @@
<arguments> <arguments>
<argument name="requestBuilder" xsi:type="object">AdyenPaymentSepaAuthorizeRequest</argument> <argument name="requestBuilder" xsi:type="object">AdyenPaymentSepaAuthorizeRequest</argument>
<argument name="transferFactory" xsi:type="object">Adyen\Payment\Gateway\Http\TransferFactory</argument> <argument name="transferFactory" xsi:type="object">Adyen\Payment\Gateway\Http\TransferFactory</argument>
<argument name="client" xsi:type="object">Adyen\Payment\Gateway\Http\Client\TransactionAuthorization</argument> <argument name="client" xsi:type="object">Adyen\Payment\Gateway\Http\Client\TransactionPayment</argument>
<argument name="validator" xsi:type="object">GeneralResponseValidator</argument> <argument name="validator" xsi:type="object">CheckoutResponseValidator</argument>
<argument name="handler" xsi:type="object">AdyenPaymentSepaResponseHandlerComposite</argument> <argument name="handler" xsi:type="object">AdyenPaymentSepaResponseHandlerComposite</argument>
</arguments> </arguments>
</virtualType> </virtualType>
......
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