我的产品名称包含非英文字符,如ç,ş,ı,ğ所以我收到以下错误
错误消息:
transactions [0] .item_list.items 1。name“,”issue“:”必须仅包含 这些字符:a-z,A-Z,0-9,标点符号(。,# - ')和嵌入式 空间
PayPal Api方法:
https://api.paypal.com/v1/payments/payment
如何在PayPal Express Checkout页面显示非英文字符?
我发送给API的POST数据
{"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"}]}
答案 0 :(得分:1)
Rest API 不支持非美国国家/地区。所以我使用经典API
解决了这个问题答案 1 :(得分:0)
您是否在初次通话的OAuth部分设置语言? https://developer.paypal.com/webapps/developer/docs/api/#authentication--headers