MoneyInTrustlyInit: Initialize Trustly Payment

Version

Description

> 1.2

Nouveaux champs obligatoires : -finalCustomerFirstName - finalCustomerLastName

Cinematics

You will need 2 integration points in your code:

  • A call to DirectKit (DirectkitXML or DirectkitJSON2) to initialize the wallet credit data and obtain the redirection URL.

  • Redirection from your website to the redirection URL (to the Trustly site) to finalize the process.

  • See Finalize Trustly transaction

Request


XML

<MoneyInTrustlyInit 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>
  <finalCustomerEmail>string</finalCustomerEmail>
  <finalCustomerFirstName>string</finalCustomerFirstName>
  <finalCustomerLastName>string</finalCustomerLastName>
</MoneyInTrustlyInit>




  

JSON

{
"p":{   
    "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",

    "finalCustomerEmail":"string",

    "finalCustomerFirstName":"string",

    "finalCustomerLastName":"string"
}
}
 


Element

Description

Mandatory

Format

Example

wallet

Payment account ID to credit

Yes

[0 : 256] char

33612345678 or taxi67

wkToken

Unique 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 URL.

Yes

[1 : 50] char

5652772

amountTot

Amount to debit from the card

Yes

2 decimals

15.00

amountCom

Your fee

Yes

2 decimals

1.00

comment

Comment regarding the transaction

Yes

[0 :140] char

Order number 2457765AX2

returnUrl

Your back URL, called by WebKit to terminate the operation

Yes

[1 : max] char

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

autoCommission

If yes:

  • [amountCom] will be ignored and will be replaced with Lemonway's fee

  • [amount] will be debited from the card
  • You will not receive any fee

  • Lemonway will take our own fee on [wallet]

Yes

[1] char

0: No (by default) 
1: Yes

finalCustomerEmail

End-user email

Yes

[0:255]

jean.wakanda@email.com

finalCustomerFirstName

End-user first name

Yes

[2:50]

WadeWinston

finalCustomerLastname

End-user Last name

Yes

[2:50]

Wilson

Response

  

XML

<?xml version="1.0" encoding="utf-8"?>
<TRUSTLYINIT>
	<ID>String</ID>
	<actionUrl>String</actionUrl> 
</TRUSTLYINIT>




   
  

JSON

{  
    "d": {
        "__type": "WonderLib.MoneyInTrustlyInitResult",
    		"TRUSTLY":{ 
        		"ID":"String",
        		"actionUrl":"String"
    			} , 
 "E":null
	}
}