Finalize Trustly Transaction
This fonction allows you to finalize a payment account reload by online banking payment (OBeP), the reload having been initiated by the moneyInTrustlyInit function of the webservice via DIRECTKIT.
How it works
Prerequisites: The WHITE MARK has initiated a recharging via the DIRECTKIT moneyInTrustlyInit method. The WHITE MARK is then in possession of a Truslty URL:
- The WHITE BRAND site redirects the user to the Trustly URL
- On the online payment page, the user follows step by step the actions to be taken (choice of bank, account etc.).
- The money-in transaction is recorded and the user is redirected to the WHITE BRAND site.
- POST data is sent to the white mark concerning the status of the transaction (x2)
The return URL (success, failure, cancellation depending on the result of the operation) of the WHITE BRAND receives 2 different returns:
When the CLIENT finishes his payment or when the payment is cancelled, a notification (callback) is sent from the Lemonway server on the URL of the WHITE MARK, with data in parameter POST.
For security reasons, regardless of the response code returned by the POST, the WHITE BRAND should call the DIRECTKIT GetMoneyInTransDetails method to ensure the payment result.
POST Answer :
wkToken sent by the WHITE BRAND when initializating the MONEY-IN
Comment on answer code
Lemonway transaction ID
Amount of the payment transaction
wkToken went by the WHITE BRAND in entry of MONEY-IN initialization