Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

"ORDERS" -- Got Http response code 404 when accessing #1346

Open
fasolano opened this issue Mar 9, 2020 · 0 comments
Open

"ORDERS" -- Got Http response code 404 when accessing #1346

fasolano opened this issue Mar 9, 2020 · 0 comments

Comments

@fasolano
Copy link

fasolano commented Mar 9, 2020

General information

  • SDK/Library version:
  • Environment: Sandbox and Production
  • PayPal-Debug-ID values:
  • Language, language version, and OS:

Issue description

I got "Got Http response code 404 when accessing https://api.sandbox.paypal.com/v1/payments/orders/60355843MY413270N."

$result = \PayPal\Api\Order::get($orderID, $apiContext);

finding in the API documentation i found the right url is "https://api.sandbox.paypal.com/v1/checkout/orders/8SC68793353299025" the difference evidently is "payments" --- "checkout" so I gone to the document "lib/PayPal/Api/Order.php" on the line 377 and change it to
$json = self::executeCall( "/v1/checkout/orders/$orderId", "GET", $payLoad, null, $apiContext, $restCall ); and it works, now I can get the orders created from the JS SDK, there are another lines where you need change the path (403, 427 and 452).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant