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:

  1. Your site redirects the user to the Trustly URL
  2. On the online payment page, the user follows step by step the actions to be taken (choice of bank, account, etc.).
  3. The money-in transaction is recorded and the user is redirected to your site.
  4. POST data is sent to you concerning the status of the transaction (x2)

Answer

  • 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 :

Element

Description

Example

response_code

Answer code:

  • 0000: success

  • 3000: error

  • 2002: cancellation

0000

response_wkToken

wkToken sent by you when initializing the money-in

rhjzekdzejkd

response_msg

Comment on answer code


response_transactionId

Lemonway transaction ID

972

response_transactionAmount

Amount of the payment transaction

42.00

response_transactionMessage

Comment

banana


GET Answer:

Element

Description

Example

response_wkToken

wkToken sent by you in the entry of money-in initialization

rhjzekdzejkd