Close the Checkout widget
Once the checkout process is finished, the customer will be prompted with a message screen according to the final state. In such a screen (still inside the Checkout widget), the customer will be able to close the widget —which will trigger the client-side callback .onClose()
, defined when opening the Checkout widget—, and you (the merchant) will take over and redirect the customer to the corresponding page in your site, depending on the Order's final status.