paynl / magento2-plugin

The Pay. plugin for Magento 2
https://www.pay.nl
27 stars 32 forks source link

Configuration setting: Payment from Applicable Countries #121

Closed Kroellie closed 1 year ago

Kroellie commented 3 years ago

What does this setting do in the admin backoffice of a certain payment method?

Thinking about this, it really doesn't make sense to us.

If it is based upon the shipping address, that doesn't make sense, because I can be Dutch, shipping to Germany for instance.

If it is based upon the store code, that also doesn't make sense, because I can speak German natively, but live in the Netherlands.

Wouldn't it be better to be able to set payment methods as 'preferred' for a certain storeview. And then at the end of the list of payment methods in the frontend, place a button to 'show all payment methods'. Clicking that would expand the list to show ALL payment methods enabled in the backend.

woutse commented 3 years ago

Thanks for your message. We will look into this!

Kroellie commented 3 years ago

I resolved it myself with the following strategy:

determine payment methods belonging to certain countries add country classes to payment method divs dynamically show / hide payment methods with css upon country change added "show all methods" at bottom of list

Still need to figure out how to prevent reloading the payment methods on country changes, as this is now irrelevant.

Kroellie commented 1 year ago

@woutse What has been the resolution path for closure?