我正在使用 PHP PayPal REST API 进行信用卡支付和沙盒帐户,但出现此错误:
PayPal\Core\PayPalHttpConnection :
ERROR: Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment.
{
"name":"CURRENCY_NOT_ALLOWED",
"message":"Currency is not supported",
"information_link":"https://developer.paypal.com/webapps/developer/docs/api/#CURRENCY_NOT_ALLOWED",
"debug_id":"308d4b24ea4b5"
}
他们提供的“information_link”不提供任何关于CURRENCY_NOT_ALLOWED 的信息,我在他们的另一个页面上发现的内容“非常有帮助”:Currency is not supported You are using当前不支持的货币。
有问题的货币是挪威克朗,而欧元似乎工作正常。
知道如何解决这个问题吗?
最佳答案
请检查您的 Paypal 沙箱帐户地址区域。可能对 NOK 无效。有关详细信息,您可以在此处查看:- https://developer.paypal.com/docs/classic/api/currency_codes/
关于php - Paypal API - CURRENCY_NOT_ALLOWED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38094876/