最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Adyen-Scalapay integration in Magento2 - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

You 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 as Adyen\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 as scalapay_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.

发布评论

评论列表(0)

  1. 暂无评论