We can provide Default currency drop down as our d7 module.

I am getting "There was an error bringing you to PayPal" error if I set currency as INR. After debugging I find there is issue with "unsupported currency". So its better we can provide default supported currency drop down list.

Comments

poojasharmaece created an issue. See original summary.

sumanthkumarc’s picture

mglaman’s picture

Category: Support request » Task

This was a setting previously which was missed in the port.

vasike’s picture

i'm not sure this feature it's needed.
imho: i translate this feature as multicurrency system that it doesn't really exists.
Of course it exists in the PayPal, but nothing to do with Commerce payment gateway here.

However i think there should be done more about supported currencies.

Maybe:
1. Do not add or save a Payment gateway is there is no supported currency in the system.
Maybe add the link to import currencies and display which currencies are supported

2. Do not use a Paypal Payment gateway in the checkout if the order does not have a PayPal supported currency.

sumanthkumarc’s picture

@vasike for the same point(2) you said, i have raised an issue, which bojanz also agreed would be a feature request. see this: https://www.drupal.org/node/2860111

sumanthkumarc’s picture

i'm writing a condition plugin using new condition API for commerce_currency entity. Will put a patch shortly at this issue: https://www.drupal.org/node/2860111

sumanthkumarc’s picture

i have put a patch at related issue above which solves this as well.

bojanz’s picture

Title: Provide Supported Currency drop down » Need a way to exclude PayPal from orders with unsupported currencies
Category: Task » Support request

Retitling for clarity.

Discussed this with jsacksick, we agreed that the right solution for this is to add sumanth's OrderCurrency condition to Commerce.

bojanz’s picture

Status: Active » Fixed

Committed the Commerce condition.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.