CancelUrl

The Payment API allows for the end user to get redirected to a specific URL after the transaction is cancelled.

How to use Cancel URL

When posting a pre-transaction a cancelUrl parameter needs to be provide in the request body like so:

Example cancelURL
{
	...
	"cancelUrl": "https://pay.customer.com?transactionId={{TransactionId}}&referenceId={{ReferenceId}}&paymentTransactionId={{PaymentTransactionId}}"
	...
}

URL Parameters

It is possible to append additional information about the transaction by adding URL query string parameters in the cancelUrl. Available parameters that will be resolved are as shown in the code block above:

  • TransactionId
  • ReferenceId
  • PaymentTransactionId


Feeling lost? Click on this link! Portal page