Redirect Response Examples

After a customer completes or cancels a transaction on WCT Pay's hosted payment page, the system will redirect them back to the merchant's website.

The examples include:

  • Completed Payment: Information received when a payment is successfully completed, including payment amount, currency, and status.

  • Canceled Payment: Data returned when a customer cancels the transaction, providing status updates and optional messages.

Use these examples to parse and respond to redirects based on transaction outcomes, enhancing the customer experience post-payment.

Completed Payment

{
    "payment_code": "X8bx9sg9",
    "amount": "0.25",
    "asset": "BTC",
    "status": "completed",
    "payment_status": 3,
    "reference": "abc_payment",
    "pay_with_amount": "0.25 BTC"
}

Cancelled Payment

{
    "payment_code": "X8bx9sg9",
    "status": "cancelled",
    "payment_status": 4,
    "reference": "abc_payment",
    "msg": "User cancelled payment"
}

Last updated