Initialize PayTrail Payment

MoneyInPayTrailInit

How it works

You will need 2 integration points on your code:

One call to DirectKit to init PayTrail payment to credit the wallet
One redirection from your website to the return URL by PayTrail

See: Finalize PayTrail Transaction

XML

<MoneyInPayTrailtInit 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>
</MoneyInPayTrailtInit >
<?xml version="1.0" encoding="utf-8"?>
<PAYTRAILINIT>
    <ID>String</ID>
    <actionUrl>String</actionUrl> 
</PAYTRAILINIT>
   

JSON

{   
    "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"
}
{  
    "PAYTRAILINIT":{  
        "ID":"String",
        "actionUrl":"String"
    }
}
 

Request Input Description

ItemDescriptionMandatoryFormatExample
walletWallet ID to creditYes[0 : 256] char33612345678 ou taxi67
wkTokenUnique ID of the call created by your server that will be used returned by Lemonway at the end of the operation, using a POST on your URLYes[1 : 50] char5652772
amountTotAmount to debitYes2 decimals15
amountComYour feeNo2 decimals1
commentComment regarding the transactionNo[0 :140] charOrder number 2457765AX2
returnUrlYour return URL, called by iDeal to terminate the operation and on which the callback will be sent, with data in POST parameters. Yes[1 : max] charhttps://www.yoursite.com/payment_return.php/?id=367GBD
This URL must contain a unique ID so you know which operation is related to the return.
autoCommissionIndicate if a fee is taken directly from the amount to pay.Yes[1] char0: No (by default) 
If Yes: [amount] is debited, and creditWallet receives [amount-Lemonway fee] 1: Yes
Else amountCom value is used

Response Output Description

ItemDescriptionExample
IDID of the transaction. You will this value to confirm the transaction589
actionUrlRedirect URL for the CLIENT on the PayTrail page paymenthttps://payment.paytrail.com/payment/load/token/9jt1D3SeQYZhirUAKvAgHppxPvJqLGYC1rB7XAj5svkVYeanSydHi7ZTzvMVaRAz

|