skip to Main Content

We use the Paypal’s v2 API: https://developer.paypal.com/docs/api/orders/v2/.

I would like to cancel/destroy the order which have CREATED status and the payment older than 10 minutes.

Do you have any Idea?
I tried to call /v2/checkout/orders/{token} with DELETE method, but this method do not available.

2

Answers


  1. Orders are valid for 72 hours once created by API, and 3 hours if the customer loads the checkout/begins an approval flow. Orders cannot be cancelled.

    If they no longer interest you after 10 minutes, simply forget about the order, and do not capture it.

    Login or Signup to reply.
  2. actually if you need that feature please use version1 URLs, which has delete operation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search