Finalize Trustly Transaction
This function 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: You initiate recharging via the DirectKit moneyInTrustlyInit method. You then have a Truslty URL:
- Your 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 your site.
- POST data is sent to you concerning the status of the transaction (x2)
The return URL (success, failure, cancellation depending on the result of the operation) you receive 2 different returns:
When the client finishes his payment or when the payment is canceled, a notification (callback) is sent from the Lemonway server on the URL, with data in parameter POST.
For security reasons, regardless of the response code returned by the POST, you should call the DirectKit GetMoneyInTransDetails method to ensure the payment result.
POST Answer :
wkToken sent by you when initializing the money-in
Comment on answer code
Lemonway transaction ID
Amount of the payment transaction
wkToken sent by you in the entry of money-in initialization