小编Vij*_*try的帖子

将Paypal付款状态定为"DEAD"

我正在使用沙盒凭证在使用卡进行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"
}
Run Code Online (Sandbox Code Playgroud)

然后,我试图通过支付ID使用rest API调用获取完整详细信息,并在付款响应中获得"DEAD"状态.请检查以下回复

{
  "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": …
Run Code Online (Sandbox Code Playgroud)

android paypal paypal-sandbox paypal-rest-sdk

6
推荐指数
1
解决办法
191
查看次数

标签 统计

android ×1

paypal ×1

paypal-rest-sdk ×1

paypal-sandbox ×1