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.

  • A redirection from the WHITE BRAND 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"
}
}
 


Élément

Description

Obligatoire

Format

Exemple

wallet

Payment account ID to credit

Yes

[0 : 256] char

33612345678 or taxi67

wkToken

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

Yes

[1 : 50] char

5652772

amountTot

Amount to debit from the card

Yes

2 decimals

15.00

amountCom

WHITE BRAND fee

Yes

2 decimals

1.00

comment

Comment regarding the transaction

Yes

[0 :140] char

Order number 2457765AX2

returnUrl

WHITE BRAND 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
  • The WHITE BRAND will not receive any fee

  • Lemonway will take his 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

Réponse

  

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
	}
}