Skip to main content

Handle Cancel & Approve

After you create a payment and redirect the customer to the checkout page, one of two things happens.

Cancel​

When the customer clicks Cancel, they are redirected to the cancelUrl you provided when creating the payment.

Approve​

After the customer approves the payment on the provider's (Gateway's) own page, they are redirected to the successUrl you provided when creating the payment.

info

A redirect to successUrl means the customer completed the approval flow — it is not proof the payment settled. Confirm the final status via the webhook before fulfilling an order.

:::tip Next step Move on to Receive Webhooks to get the authoritative payment status. :::