I am using magento2 and in my checkout Adyen payment is using.I want to integrate Scalapy in Adyen-Dropin. How can I do it ? What are the changes I have to make to achieve this. Adyen already provides the integration of ScalaPay in its Dropin but it is necessary to extend the Adyen-Magento connector for it to work correctly. How can I integrate scalapy in Adyen Dropin in magento2?
I Want to get an idea to integrate scalapay in Adyen Dropin. Scalapay is selected as a payment method from Adyen customer area. But its not showing in magento2 checkout.
I am using magento2 and in my checkout Adyen payment is using.I want to integrate Scalapy in Adyen-Dropin. How can I do it ? What are the changes I have to make to achieve this. Adyen already provides the integration of ScalaPay in its Dropin but it is necessary to extend the Adyen-Magento connector for it to work correctly. How can I integrate scalapy in Adyen Dropin in magento2?
I Want to get an idea to integrate scalapay in Adyen Dropin. Scalapay is selected as a payment method from Adyen customer area. But its not showing in magento2 checkout.
Share Improve this question asked Mar 13 at 11:08 SreepriyaSreepriya 132 bronze badges1 Answer
Reset to default 1You need to update a couple of files to define the payment method facade in the payment plugin.
There is a naming convention between Adyen and Magento payment methods. A Magento payment method for Adyen plugin should start with adyen_
and followed by the payment method type name scalapay_3x
.
- etc/di.xml: Virtual types for the payment method model needs to added here
- etc/frontend/di.xml: Payment method type name needs to be added to this list (adyen_scalapay_3x => scalapay_3x)
- etc/config.xml: Payment method default configuration block needs to be defined here. You can check this document to find the correct configuration values
- etc/events.xml: Event for payment data assign observer can be defined here.
- etc/graphql/di.xml: GraphQL data provider needs be added for
adyen_scalapay_3x
asAdyen\Payment\Model\Cart\Payment\AdditionalDataProvider\AdyenPm
- etc/payment.xml: Let multipshipping use this payment method
- view/frontend/layout/checkout_index_index.xml: Extend the block to allow billing address selection for
adyen_scalapay_3x
. - view/frontend/multishipping_checkout_billing.xml: Define form template for multipshipping payments
- Download the payment method logo from Adyen Checkout CDN and place it under
view/base/web/images/logos
directory asscalapay_3x.svg
After implementing those changes run the following commands.
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento adyen:enablepaymentmethods:run
bin/magento cache:clean
You can also check pull-request #2918 on the open-source Adyen Magento 2 plugin repository and find generic implementation document here if required.