Payment Cancellation API

  • Payments can be cancelled as long as their status is ‘requires_payment_method’ or ‘requires_action’.

  • If the payment status is ‘processing’ or ‘succeeded’, contact the admin to request a refund.

  • Payments will automatically be cancelled after 24 hours if not completed.

    Note: The payment timeout can be configured based on the respective bank account settings.

Payment Cancellation Flow Diagram

Step-by-Step Explanation:

  1. Start: The beginning of the payment cancellation process.
  2. Check Payment Status: The system checks the payment status.
    1. If Status is 'requires_payment_method' or 'requires_action': Proceed to cancel the payment.
    2. If Status is 'processing' or 'succeeded': Contact the admin to request a refund.
  3. Cancel Payment: The payment is cancelled via API.
  4. Automatic Cancellation: The payment will be automatically cancelled after 24 hours if not completed.
  5. End: The payment cancellation process is finished.