Enable payment gateway for Particular products - Magento 2

落花浮王杯 提交于 2019-12-24 19:19:55

问题


I want to enable the payment gateway for some products Only. On my website, I have cash on delivery & other payment gateways. Cash on delivery should be enabled for every product. But other payment methods are enabled for particular product set or particular category. How we can do this?

Please help on the following .

1) Payment gateway enable for only particular products or category

2) Payment gateway enable for only particular countries


回答1:


To add a new payment method, take the following steps:

  • Configure general payment method module options. Described in the payment method module configuration topic.
  • Configure payment method options. Described in Payment method configuration.
  • Implement and configure payment method facade - the entity allowing to process payment actions between Magento sales management and payment processor. Described in Payment method facade and Payment info rendering in Admin checkout
  • Implement and configure payment actions (like authorize, void and so on). Described in Add a gateway command

I hope this helps.




回答2:


Hi you can try this plugin below, of course you need to buy.

magento2-product-payment-limit



来源:https://stackoverflow.com/questions/59243164/enable-payment-gateway-for-particular-products-magento-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!