我用信用卡付款时,Paypal不接受INR货币 https://api.sandbox.paypal.com/v1/payments/payment (POST方法)
我正在尝试使用PayPal支持的 INR 货币付款,但出现不支持货币错误
注意:使用印度Paypal帐户和主要货币是INR
**Request:**
{
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card_token": {
"credit_card_id": "CARD-7MR51074AF730652RL4J724Y",
"expire_month": 0,
"expire_year": 0
}
}
]
},
"transactions": [
{
"amount": {
"currency": "INR",
"total": "11.61"
},
"description": "Monthly Subscription"
}
]
}
**Response:**
{
"name": "CURRENCY_NOT_ALLOWED",
"message": "Currency is not supported.",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "809873b4c9820"
}
我正在尝试使用Spring Boot,对PayPal有依赖性。
<dependency>
<groupId>com.paypal.sdk</groupId>
<artifactId>rest-api-sdk</artifactId>
<version>LATEST</version>
</dependency>
感谢前进。
答案 0 :(得分:0)