Return URLs for Success or Failure

Smart Checkout can return the user to the merchants website. The URLs cover both, successful or failed payment.

One can define static URLs in SecuOffice, or pass dynamic URLs to the Smart Transaction. The dynamic URLs override the static ones.

Here an example how to pass both individual return URLs:

HTML
<form class="sc-autobasket-form"
data-sc-contract-id="GCR_2H69XY35227V2VKP9WRA3SJ0W95RP0"
data-sc-intent="order"
data-sc-url-success="https://www.example.com/survey?sessid=1X23Y4Z5"
data-sc-url-failure="https://www.example.com/basket?sessid=1X23Y4Z5&reason=FAILED_CHECKOUT"
data-sc-url-abort="https://www.example.com/basket?sessid=1X23Y4Z5&reason=ABORTED_CHECKOUT"
>

Each return URL can have up to 2000 characters.

If there is a success URL, the user is offered a back-to-shop-link:

images/download/attachments/87393716/image2020-1-23_13-26-48.png

The abort URL is used when the user aborts the checkout process.

images/download/attachments/87393716/image2020-1-23_13-34-54.png

Please do not forget: It is cannot be guaranteed that the user really opens the URL.

If no abort URL is available the failure URL is used. If there is also no failure URL it is not offered to abort the process.

The failure URL is also used in the rare case of an unrecoverable error.