为什么成功交易后贝宝沙箱金额没有变化?

时间:2019-04-15 06:13:22

标签: php paypal paypal-sandbox

自最近三天以来,我一直在尝试,无法弄清楚为什么沙盒卖家帐户无法更新金额。但是,交易正以completed状态显示为活动中。

我尝试在goolge上进行了大量搜索,但找不到相关的线程。

以下是Paypal在交易过程后的回复。

{
  "id": "PAYID-L**********8",
  "intent": "sale",
  "state": "approved",
  "cart": "2*******Y",
  "payer": {
    "payment_method": "paypal",
    "status": "VERIFIED",
    "payer_info": {
      "email": "business-buyer@xyz.net",
      "first_name": "test",
      "last_name": "buyer",
      "payer_id": "S**********4",
      "shipping_address": {
        "recipient_name": "test buyer",
        "line1": "Free Trade Zone",
        "city": "Dubai",
        "state": "",
        "postal_code": "971",
        "country_code": "AE"
      },
      "country_code": "AE"
    }
  },
  "transactions": [
    {
      "amount": {
        "total": "21.00",
        "currency": "USD",
        "details": {
          "subtotal": "17.50",
          "tax": "1.30",
          "shipping": "2.20"
        }
      },
      "payee": {
        "merchant_id": "K*******Q",
        "email": "business-facilitator@xyz.net"
      },
      "description": "Paying through paypal.",
      "invoice_number": "5*********2",
      "item_list": {
        "items": [
          {
            "name": "Project - Amount For Balance",
            "sku": "123123",
            "price": "7.50",
            "currency": "USD",
            "quantity": 1
          },
          {
            "name": "Project - Service Fee",
            "sku": "321321",
            "price": "2.00",
            "currency": "USD",
            "quantity": 5
          }
        ],
        "shipping_address": {
          "recipient_name": "test buyer",
          "line1": "Free Trade Zone",
          "city": "Dubai",
          "state": "",
          "postal_code": "971",
          "country_code": "AE"
        }
      },
      "related_resources": [
        {
          "sale": {
            "id": "8**********E",
            "state": "completed",
            "amount": {
              "total": "21.00",
              "currency": "USD",
              "details": {
                "subtotal": "17.50",
                "tax": "1.30",
                "shipping": "2.20"
              }
            },
            "payment_mode": "INSTANT_TRANSFER",
            "protection_eligibility": "ELIGIBLE",
            "protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
            "transaction_fee": {
              "value": "1.01",
              "currency": "USD"
            },
            "parent_payment": "PAYID-L***********08",
            "create_time": "2019-04-14T11:37:37Z",
            "update_time": "2019-04-14T11:37:37Z",
            "links": [
              {
                "href": "https://api.sandbox.paypal.com/v1/payments/sale/8****4E",
                "rel": "self",
                "method": "GET"
              },
              {
                "href": "https://api.sandbox.paypal.com/v1/payments/sale/8VS3*******24E/refund",
                "rel": "refund",
                "method": "POST"
              },
              {
                "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LSZ*******08",
                "rel": "parent_payment",
                "method": "GET"
              }
            ]
          }
        }
      ]
    }
  ],
  "redirect_urls": {
    "return_url": "http://127.0.0.1:8000/payment/execute-paypal-transaction?paymentId=PAYID-LS************08",
    "cancel_url": "http://127.0.0.1:8000/payment/cancel"
  },
  "create_time": "2019-04-14T11:37:37Z",
  "update_time": "2019-04-14T11:37:31Z",
  "links": [
    {
      "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LS*************8",
      "rel": "self",
      "method": "GET"
    }
  ]
}

有人可以请我指导什么原因,以便我修复它。我很感激。非常感谢。

这是贝宝参考图片

enter image description here

0 个答案:

没有答案