简体   繁体   English

为存储在保管库中的卡充电不适用于Paypal沙箱模式

[英]Charging a card stored in vault not working for paypal sandbox mode

I am integrating paypal in my project. 我正在将贝宝集成到我的项目中。 I am storing card in paypal vault. 我将卡存储在贝宝库中。 It is working fine. 一切正常。 But charging a stored card in totally not working. 但是对已存储的卡进行充电完全不起作用。 Here is what i tried. 这是我尝试过的。

The url i am hitting 我打的网址
https://api.sandbox.paypal.com/v1/payments/payment

The headers i sent 我发送的标题
Content-Type : application/json
Authorization : Bearer A101.cckgmkChgGI1jLstRxxxxxxxx

and the body 和身体

{
  "intent":"sale",
      "payer": {
           "payment_method":"credit_card",
           "funding_instruments":[
              {
                  "credit_card_token":{
                       "credit_card_id":"CARD-62T3953xxxxx",
                       "payer_id":"user12345"
                   }
               }
           ]
       },
"transactions":[
    {
        "amount":{
            "total":"125",
            "currency":"USD"
         },
         "description":"This is test payment"
   }
 ]
}

and the response i am getting 和我得到的回应

{
  "name": "INTERNAL_SERVICE_ERROR",
  "information_link": "https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR",
  "debug_id": "aa518e23593df"
}

and the information link given is not working 并且给出的信息链接不起作用

You should use credit card info in sandbox accounts that created in PayPal App to store to vault. 您应该使用在PayPal应用程序中创建的沙盒帐户中的信用卡信息来存储到Vault。 Then it will work with creating payment. 然后它将与创建付款一起使用。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM