【发布时间】:2017-06-16 14:38:32
【问题描述】:
我在使用沙盒凭据使用卡进行 PayPal 付款时收到以下回复。
{
"client": {
"environment": "sandbox",
"paypal_sdk_version": "2.14.6",
"platform": "Android",
"product_name": "PayPal-Android-SDK"
},
"response": {
"create_time": "2017-01-31T08:12:40Z",
"id": "PAY-*************",
"intent": "sale",
"state": "created"
},
"response_type": "payment"
}
然后我尝试使用休息 API 调用通过付款 ID 获取完整详细信息,并在付款响应中获取“死亡”状态。请查看以下回复
{
"id": "PAY-*************",
"create_time": "2017-01-31T08:12:40Z",
"update_time": "2017-01-31T08:13:22Z",
"state": "DEAD",
"intent": "sale",
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"number": "xxxxxxxxxxxx1111",
"expire_month": "11",
"expire_year": "2025"
}
}
]
},
"transactions": [
{
"amount": {
"total": "2.00",
"currency": "USD",
"details": {
"subtotal": "2.00"
}
},
"description": "New Product",
"related_resources": []
}
],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-*************",
"rel": "self",
"method": "GET"
}
]
}
谁能帮我理解我为什么会得到这个?如何解决这个问题?
【问题讨论】:
-
嘿!你是怎么解决这个问题的?
标签: android paypal paypal-sandbox paypal-rest-sdk