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
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- use the payment button code with variable price in REST APIs
- Paypal buttons and redirects in PayPal Payments Standard
- Redirecting customers to PayPal for payment in PayPal Payments Standard
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment