Farid Movsumov
Farid Movsumov

Reputation: 12725

Non-English Characters Not Allowed in PayPal Express Checkout Page

My product names contain non-English characters like ç, ş, ı, ğ so I get the following error:

Error Message:

transactions[0].item_list.items[1].name","issue":"Must contain only these characters: a-z, A-Z, 0-9, punctuation(.,#-'), and embedded spaces

PayPal Api Method:

https://api.paypal.com/v1/payments/payment

How can I show non-english characters in PayPal Express Checkout Page?

enter image description here

POST data that I sent to API

{"intent":"sale","payer":{"payment_method":"paypal"},"redirect_urls":{"return_url":"http:\/\/payment.shopioglobal.mil\/pay_pal\/success","cancel_url":"http:\/\/payment.shopioglobal.mil\/pay_pal\/fail"},"transactions":[{"amount":{"currency":"USD","total":200,"details":{"shipping":0,"tax":0,"subtotal":200}},"item_list":{"items":[{"name":"Zebra","currency":"USD","quantity":1,"price":100},{"name":"K\u0131r\u0131k \u015eerafettin \u00d6zg\u00fcro\u011flu Hayvanat Bah\u00e7esi","currency":"USD","quantity":1,"price":100}]},"description":"Shopio Global"}]}

Upvotes: 1

Views: 383

Answers (2)

Farid Movsumov
Farid Movsumov

Reputation: 12725

Rest API doesn't support non US countries. So I solved this problem by using a Classic API

Upvotes: 1

Machavity
Machavity

Reputation: 31614

Are you setting a language during the OAuth portion of your initial calls? https://developer.paypal.com/webapps/developer/docs/api/#authentication--headers

Upvotes: 0

Related Questions