MoneyInSofortInit: initialize Sofort payment

Version

Description

1.0

How it works

You will need 2 integration points on your code:

  • One call to DIRECTKIT to init Sofort payment to credit the wallet
  • One redirection from your WHITE BRAND web site to the return URL by Sofort


Please refer to Finalize Sofort Transaction

Request

<MoneyInSofortInit xmlns="Service_mb">

  <wlLogin>string</wlLogin>

  <wlPass>string</wlPass>

  <language>string</language>

  <version>string</version>

  <walletIp>string</walletIp>

  <walletUa>string</walletUa>

  <wallet>string</wallet>

  <wkToken>string</wkToken >

  <amountTot>string</amountTot>

  <amountCom>string</amountCom>

  <comment>string</comment>

  <returnUrl>string</returnUrl>

  <autoCommission>string</autoCommission>

</MoneyInSofortInit>

  
    "wlLogin":"string",
    "wlPass":"string",
    "language":"string",
    "version":"string",
    "walletIp":"string",
    "walletUa":"string",
    "wallet":"string",
    "wkToken":"string",
    "amountTot":"string",
    "amountCom":"string",
    "comment":"string",
    "returnUrl":"string",
    "autoCommission":"string"
}

Item

Description

Mandatory

Format

Example

wallet

Wallet ID to credit

Yes

[0 : 256] char

33612345678 ou taxi67

wkToken

Unique ID of the call created by your WHITE BRAND server that will be used returned by Lemon Way at the end of the operation, using a POST on your WHITEBRANB URL

Yes

[1 : 50] char

5652772

amountTot

Amount to debit from the card

Yes

2 decimals

15.00

amountCom

WHITE BRAND fee

No

2 decimals

1.00

comment

Comment regarding the transaction

No

[0 :140] char

Order number 2457765AX2

returnUrl

WHITE BRAND return URL, called by Sofort to terminate the operation and on which the callback will be sent, with data in POST parameters.
This url must contain a unique ID so you know which operation is related to the return.

Yes

[1 : max] char

https://www.yoursite.com/payment_return.php/?id=367GBD

autoCommission

Indicate if a fee is taken directly from the amount to pay.
If Yes: [amount] is debited from the card, and creditWallet receives [amount-Lemon Way fee]
Else amountCom value is used

Yes

[1] char

0: No (by default)
1: Yes

Answer

<?xml version="1.0" encoding="utf-8"?>
<SOFORTINIT>
	<ID>String</ID>
	<actionUrl>String</actionUrl> 
</SOFORTINIT>
{  
    "SOFORTINIT":{  
        "ID":"String",
        "actionUrl":"String"
    }
}

Item

Description

Example

ID

ID of the transaction. You will this this value to confirm the transaction

589

actionUrl

Redirect URL for the CLIENT on the Sofort page payment

https%3A%2F%2Fwww.sofort.com%2Fpayment%2Fgo%2Fa47c876018e0ffa51e462aad0793ac10f71ee9e1