Ich benutze Paypal Rest API (Billing Plan und Billing Agreement API), um Abonnement-Zahlung in meiner PHP-Anwendung zu implementieren.Paypal ist nicht in der Lage LIST Agreement Transactions für eine Vereinbarungs-ID
Alle API funktioniert perfekt. Nur die API funktioniert nicht, die verwendet wird, um Transaktionen zwischen zwei Daten für eine Vereinbarung zu suchen.
Ich habe meine Anfrage überprüft, es ist das gleiche wie in offiziellen API doc. https://developer.paypal.com/docs/api/payments.billing-agreements#billing-agreements_transactions
ich PHP und cURL bin mit api wie diese zu nennen:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.sandbox.paypal.com/v1/payments/billing-agreements/<Agreement-id>/transaction?start_date=2017-06-15&end_date=2017-06-17");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = array();
$headers[] = "Content-Type: application/json";
$headers[] = "Authorization: Bearer <My-Access-Token>";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
curl_close ($ch);
echo '<pre>';
print_r($result);
?>
immer diese Antwort bekommen:
{
name: "MALFORMED_REQUEST",
message: "The requested resource was not found",
information_link: "https://developer.paypal.com/webapps/developer/docs/api/#MALFORMED_REQUEST",
debug_id: "4cf777ecda3b"
}
plz help,