If a customer’s bank authorization expires or is invalidated (for example, due to a password change or a security update at the bank), you must re-authenticate the customer to continue processing payments.
Trustly provides a mechanism to detect these scenarios and relaunch the Lightbox to restore connectivity without requiring the customer to re-enter all their details.
Before you attempt to refresh an authorization, ensure you have the following data from the original transaction:
merchantReference.When you attempt a capture or a data refresh request, you may receive a failure response indicating that the session is no longer valid.
Monitor your API responses and event notifications for the following statuses:
SW057 (Expired Split Token)SW051 (Invalid or corrupt Split Token)When you encounter these errors, you must prompt the customer to re-authenticate.
To refresh the authorization, you must launch the Trustly Lightbox again using the specific parameters associated with the original transaction. This flow differs slightly from the initial setup because you are updating an existing connection rather than creating a new one.
The following table lists the parameters required to relaunch the Lightbox for a refresh flow.
Call the establish method from the appropriate SDK with the required parameters to trigger the refresh flow.
Once the customer successfully completes the workflow, Trustly issues a new Authorize event with a fresh splitToken. You must update your system with this new token for future requests.