New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better handle store currencies that are not supported (159) #82
Comments
@jorgeatorres, regarding the expected behavior, I think that makes sense. The behavior for Card processing is different, though. When "PayPal card processing" is enabled and the store's country or currency isn't allowed, we don't include this gateway in the available ones. So, the gateway isn't displayed under WooCommerce -> Settings -> Payments, nor in the checkout, preventing shoppers from trying to pay with it even when the gateway was enabled. What do you think about implementing this behavior for the PayPal gateway as well? With this approach, I also think we should display an admin notice like the one you mentioned. I'd find it confusing as a merchant to enable the plugin and don't see any new payment gateways in the WooCommerce settings without any explanation. Or if we're going with the approach you suggested, I think we should also update the Card processing gateway to behave the same. Just to keep things consistent. |
@AlexP11223 @Dinamiko, mind taking over this issue? Also, Jorge won't be around to clarify the questions I left, so we're leaving defining the approach for this to you. |
@a-danae There have been partial improvements in this regard since the last update in this issue. For example, the error upon using an invalid currency has been changed from: Also, the system report includes a section with a currency support indicator: But there isn't yet any notice about an unsupported currency within the plugin settings. The feature we added for the system report will be used as a foundation to further clarify currency compatibility. With the above-mentioned approach, I see a potential issue with certain multi-currency setups. We are looking for a way to make it immediately clear to the user on the plugin settings page when their main currency is not supported but without creating any admin notices. |
Thanks for the update @InpsydeNiklas !
Cool. That's at least more informative.
I agree. This issue only mentions the store's default currency, so we could keep the scope of this issue focused on that 🙂
Making the incompatibility immediately clear for the merchant sounds good. As a merchant, I don't think I'd look into the system report unless something is clearly going wrong. Do we have an issue for this improvement here on GH? We could close this issue in favor of that one. |
By now, there is also an admin notice on the PayPal Payments settings pages when the merchant has an invalid currency configured: |
Describe the bug
When the store is set to use a currency that is not supported by PayPal, the gateway still shows as a payment option but payments fail with a non-descriptive error message.
To reproduce
Expected behavior
The gateway should show an error message when going to the settings screen and prevent me from activating it if it's not designed to work with my store currency. This is what PayPal Standard shows when you go to WC > Payments > PayPal Standard, for example:
The text was updated successfully, but these errors were encountered: