我的 Paypal 交易已通过验证(API),但我的账户余额为 0.00 美元

Paypal transaction to me is verified (by API), but my account balance is $0.00

昨天的 Paypal 交易已通过验证(由 API (https://api.paypal.com/v1/payments/payment/)),但我的账户余额为 0.00 美元。

今天同样的 API 回答了我 ----> ["name"]=> string(19) "INVALID_RESOURCE_ID" ["message"]=> string(39 ) "The requested resource ID was not found" ["information_link"]=> 字符串(54) "https://developer.paypal.com/docs/api/payments/#errors" ["debug_id"]=> 字符串(13) "b39d1f444064e"

余额又是 0 美元。如何修复它,我的在线商店中有经过验证的付款,他们在付款期间通过 API 查询获得 "verified" 状态。.现在该怎么办?在哪里搜索问题?

(在此之前,沙盒版本运行良好)。

付款执行:

if($test_mode_paypal)
        $execute_url = 'https://api.sandbox.paypal.com/v1/payments/payment/'.$pay_key.'/execute';
    else
        $execute_url = 'https://api.paypal.com/v1/payments/payment/'.$pay_key.'/execute';

    $header = array();
    $header[] = 'Content-type: application/json';
    $header[] = 'Accept: application/json';
    $header[] = 'Authorization: Bearer '.$accessToken;
    $data ='{
      "payer_id":"'.$payer_id.'"
    }';
    //open connection
    $curl = curl_init();
    //set connection properties
    curl_setopt($curl, CURLOPT_URL, $execute_url);
    curl_setopt($curl, CURLOPT_POST, false);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    curl_setopt($curl, CURLOPT_HTTPHEADER,$header);
    //execute post
    $response = curl_exec($curl);
    //close connection
    curl_close($curl);

    $result = json_decode($response);


    $response_arr = array();
    if($result->state == 'approved')
    {
        $response_arr['status'] = 'ok';
        $response_arr['message'] = $response;
        return $response_arr;
    }

听起来像你 created the payment but you never executed it