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:

  1. The WHITE BRAND 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 the WHITE BRAND site.
  4. POST data is sent to the white mark concerning the status of the transaction (x2)

Answer

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

Élément

Description

Exemple

response_code

Answer code:

  • 0000: success

  • 3000: error

  • 2002: cancellation

0000

response_wkToken

wkToken sent by the WHITE BRAND when initializating the MONEY-IN

rhjzekdzejkd

response_msg

Comment on answer code

 

response_transactionId

Lemon Way transaction ID

972

response_transactionAmount

Amount of the payment transaction

42.00

response_transactionMessage

Comment

banana


GET Answer:

Élément

Description

Exemple

response_wkToken

wkToken went by the WHITE BRAND in entry of MONEY-IN initialization

rhjzekdzejkd