Finalize Sofort Transaction

This function is used to credit a wallet using Sofort Payment, when the MONEY-IN has been previously initialized with MoneyInSofortInit function of DIRECTKIT webservice.

How it works

Pre-requisite: the WHITE BRAND has initialized a MONEY-IN using the moneyInSofortInit method of DIRECTKIT. The WHITE BRAND server owns a MONEY-IN link now:

  1. The WHITE BRAND server redirects the user to the returned link of MoneyInSofortInit
  2. On this payment web page the user can enter the account data
  3. The MONEY-IN transaction is saved and the user is redirected to your WHITE BRAND web site.

Answer

The WHITE BRAND return URL receives 2 different responses:

  • When the CLIENT terminates its payment or when the payment is canceled by the user, a notification (callback) is sent from Lemon Way's server to the WHITE BRAND URL. Data are transmitted in POST.
  • When the CLIENT terminates its operation, he is redirected to the WHITE BRAND URL with data in a GET
For security reasons, in any case of return by the POST, your server has to double check the payment using the GetMoneyInTransDetails method of DIRECTKIT to make sure the payment was done.


POST Answer:

Item

Description

Example

response_code

Answer code:

  • 0000: success
  • 3000: error

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

755

response_transactionAmount

Amount of the payment transaction

34.00

response_transactionMessage

Comment

pizza

response_code

Description

2001

Command not recognized

2002

Operation canceled by user

2003

Authentication failed on Webkit

2004

Bad format Request

3000

Server Error

4000

Unknown Error


GET answer:

Item

Description

Example

response_wkToken

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

rhjzekdzejkd