Credit Card Button: redirecting to Paypal depending on SDK "locale"
saichi
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Oct-09-2020
08:05 AM
When I don't add "locale" to the SDK arguments, the credit card button works fine, showing payment fields on my page (screen below).
It considers the default country as US and the language is English, but it's possible to change (or to set County as Brazil in advance when Creating the Order order.payer.address.country_code: 'BR').
Now if I set the locale directly on SDK call (as below), the language works fine but the button redirects the user to paypal
Labels:
- Labels:
-
PayPal HTML Buttons
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- How do you dynamically pass an item name through an 'add to cart' button? in Sandbox Environment
- How to redirect user to paypal checkout form for card payment? in PayPal Payments Standard
- Paypal payment error analysis and root cause in NVP/SOAP APIs
- Why can't I open my referral URL? in Sandbox Environment
- Partial authorizations for standard checkout in REST APIs