The customer's redirect to the online store page
Once the payment is processed by the Payment gateway, the customer is redirected to the online store page. The URL address the customer is returned to is specified during register.do / registerPreAuth.do API call:
- The customer returns to
returnUrl
(which must be passed during the order registration) in case of successful payment. - The customer returns to
failUrl
in case of unsuccessful payment.
Finally, the redirect URL looks like as follows:
https://mybestmerchantreturnurl.com?orderId=98839115-2ce0-7066-99b7-ae7300d72620&lang=en
where orderId
and lang
paramaters values are automatically affixed to returnUrl
by the Payment gateway.
Moreover, there are two variants this affix may be presented in the redirect URL:
?orderId=xxx&lang=xx
&orderId=xxx&lang=xx
where:
-
orderId
value stands formdOrder
value and has string format; -
lang
value stands forlanguage
value and has string format.