This function is used to credit a wallet using a card, when the MONEY-IN has been previously initialized with moneyInWebInit function of DIRECTKIT webservice. 3D-Secure is used if the bank of the user enable 3D Secure.
Please refer to Annex Payment page customization to customize the payment web page.
How it works
Pre-requisite: the WHITE BRAND has initialized a MONEY-IN using the moneyInWebInit method of DIRECTKIT. The WHITE BRAND server owns a MONEY-IN token now:
- The WHITE BRAND server redirects the user to Lemon Way WEBKIT with the MONEY-IN token using a GET
- The WEBKIT does some checking and redirects the user on the card payment page
- On this payment web page the user can enter the card data
- Than a 3D Secure verification is processed if the bank owning the card has a 3D Secure payment for this card
- The MONEY-IN transaction is saved and the user is redirected to your WHITE BRAND web site.
This Request is sent to Lemon Way WEBKIT using the following parameters in the query string:
Money-in token received in output of moneyInWebInit of DIRECTKIT
URL of the CSS to customize the payment page
ISO2 language code for payment page. Non exhaustive lists of accepted codes:
The name of the template to use on the payment page
Only for ATOS v2 contracts.
|No||[1:256] char||Custom template|
<?php /* $wkURL : URL of WEBKIT $moneyInToken : Token retrieved from DIRECTKIT $p : URL of customization CSS, encoded URL $lang : Language to use for the page */ header('Location: '.$wkURL.'?moneyInToken='.$moneyInToken.'&p='.$p.'&lang='.$lang); ?>
The WHITE BRAND return URL (success, error, cancel depending on the response) 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
wkToken sent by the WHITE BRAND when initializating the MONEY-IN
Comment on answer code
Lemon Way transaction ID
Amount of the payment transaction
Command not recognized
Operation canceled by user
Authentication failed on Webkit
Bad format Request
wkToken went by the WHITE BRAND in entry of MONEY-IN initialization.