Redirect buyer for purchase approval

DocsLimited

Last updated: Oct 24th, 2:36am

  1. After you create the order, extract the payer-action link from the links array in the Create order response.
  2. Set your Zip payment button to open this URL when clicked. This sends the buyer to Zip's Hosted Payment Page (HPP).
  3. The buyer logs into their Zip account and reviews the payment schedule (Pay-in-4 instalments or credit options).
    • If the buyer approves the payment:
      1. Upon approval, PayPal automatically captures the full payment amount immediately.
      2. The buyer is redirected to your return_url
      3. The PAYMENT.CAPTURE.COMPLETED webhook is triggered, confirming that the payment has been successfully captured.
    • If the buyer cancels or an error occurs:
      1. The buyer is redirected to your cancel_url.
      2. Order status remains PAYER_ACTION_REQUIRED.