show/hide payment method according to currency

Let say I use PayPal as payment method. Suppose my Drupal Commerce supports USD, GBP and EUR. I want to show PayPal when order's currency is USD but hide PayPal when order's currency is GBP/EUR.

Is there a way to do this? using "condition"? How? Thanks.

Posted: Jul 24, 2012


moallemi on July 29, 2012

In the papypal payment rule, you should add a condition that checks the currency. to do this:

1) goto paypal rule
2) add a condition
3) select "Data comparison" from the list and go to next step
4) use "commerce-order:commerce-order-total:currency-code" as data selector and go to next page
5) you can select each currency code you want and do it so on