1

我的产品名称包含 ç、ş、ı、ğ 等非英文字符,因此出现以下错误:

错误信息:

transactions[0].item_list.items[1].name","issue":"必须仅包含以下字符:az、AZ、0-9、标点符号(.,#-') 和嵌入空格

贝宝API方法:

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

如何在 PayPal Express Checkout Page 中显示非英文字符?

在此处输入图像描述

POST 我发送到 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"}]}
4

2 回答 2

1

Rest API不支持非美国国家。所以我通过使用经典 API解决了这个问题

于 2013-10-04T06:03:30.950 回答
0

您是否在初始呼叫的 OAuth 部分设置语言? https://developer.paypal.com/webapps/developer/docs/api/#authentication--headers

于 2013-09-30T12:45:02.517 回答