我使用paypal java api进行SGD信用卡付款,但我收到以下错误。
错误代码:400响应: {"名称":" CURRENCY_NOT_ALLOWED","消息":"货币不受支持"," information_link":" https://developer.paypal.com/webapps/developer/docs/api/#CURRENCY_NOT_ALLOWED"," debug_id":" d5473b485675e"}
我的示例请求
{
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"number": "1111111111111111",
"type": "mastercard",
"expire_month": 11,
"expire_year": 2018,
"cvv2": 111,
"first_name": "Joe",
"last_name": "Shopper",
"billing_address": {
"line1": "52 N Main ST",
"city": "Singapore",
"country_code": "SG",
"postal_code": "120210"
}
}
}
]
},
"transactions": [
{
"amount": {
"currency": "SGD",
"total": "7",
"details": {
"shipping": "1",
"subtotal": "5",
"tax": "1"
}
},
"description": "This is the payment transaction description."
}
]
}
答案 0 :(得分:1)
SGD
。
支持的货币:USD, GBP,CAD,EUR and JPY
https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/
新加坡商家接受直接信用卡的唯一选择是使用Hosted Sole Solution