在 Paypal Vault 中使用存储卡时 return 内部服务错误

when using stored card in Paypal Vault it return INTERNAL SERVICE ERROR

我的 code:Using 保险柜有什么问题 api 已保存 paypal 信用卡信息,但当我使用已保存的卡时出现错误

function paypalPaymentViaStoredCreditCard_post()
{
    $access_token = "XXXXXXXX";
    $ch = curl_init();
    $data = '{
        "intent": "sale",
        "payer": {
          "payment_method": "credit_card",
          "funding_instruments":[
            {
              "credit_card_token": {
                "credit_card_id": "CARD-6F0009583J819301DK5DO5JA",
                "payer_id": "BAAAA"
              }
            }
          ]
        },
        "transactions":[
          {
            "amount":{
            "total":"100.00",
            "currency":"USD"
            },
            "description": "This is the payment transaction description."
          }
        ]
      }';


     curl_setopt($ch, CURLOPT_URL, "https://api.sandbox.paypal.com/v1/payments/payment");
     curl_setopt($ch, CURLOPT_POST, true);
     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
     curl_setopt($ch, CURLOPT_HTTPHEADER, array(
     "Content-Type:application/json",
     "Authorization: Bearer " . $access_token,
     "Content-length: " . strlen($data))
     );


    curl_setopt($ch, CURLOPT_USERAGENT, "User-Agent: Some-Agent/1.0");
    $result = curl_exec($ch);
    print_r($result);die;
    if (empty($result)) die("Error: No response.");
    else {
          $json = json_decode($result);
          print_r($json);
          die;
          return $json;
    }
    curl_close($ch);
} 

在此处输出

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

因为我没有从任何人那里得到任何解决方案,所以我一步步深入研究我的代码,发现 solution.there 在我的代码中没有错误只有信用卡没有和负面测试 issue.i 跟随在 Whosebug 上关注 post 并获得成功

PayPal Sandbox returning Internal Service Error