commercetools / commercetools-payment-integration-java

Module to handle payment transactions
Apache License 2.0
6 stars 4 forks source link

Country specific config for payment methods #5

Closed floriansattler closed 8 years ago

floriansattler commented 8 years ago

Config for payments needs to be done in a way that you are able to show different payment methods in the checkout based on the country selected in your billing address.

MGA-dotSource commented 8 years ago

This is a bigger task. First question: is (or should) the abstract framework be able to decide about allowed / not allowed countries? If yes, then what are the rules?

If it is a shop responsibility then there is already a build in feature, that allows the shop to pass a filter function into the "getMethods" - API call that is executed every time where any kind of filtering is possible.

Filtering itself has to be discussed in more detail and is not in scope for the first iteration I think.