MoneyInMbwayInit: Initialize MB WAY Payment

Version

Description

1.0


Payment Process

    • You call the DirectKit API, provide a phone number to initialize the payment
    • The payment order is sent to the customer's smartphone
    • The customer pays with his smartphone
    • You will be notified after the payment is settled

Request

  

XML

<MoneyInMbwayInit 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>
  <phone>string</phone>
</MoneyInMbwayInit>

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"
    "phone":"string"
}

Element

Description

Required

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 final client

Yes

2 decimals

15.00

amountCom

Your fee

Yes

2 decimals

1.00

comment

Comment regarding the transaction

Yes

[0 :140] char

Commande number 245

returnUrl

Your 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] char

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

autoCommission

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

Yes

[1] char

0 : no (by default)
1 : yes

phonePhone numbers of the final clientYes9 digits513212744

Response


XML

<?xml version="1.0" encoding="utf-8"?>
<EUPAGOINIT>
	<ID>String</ID>
	<reference>String</reference> 
</EUPAGOINIT>
  

JSON

{  
    "EUPAGOINIT":{ 
        "ID":"String",
        "reference":"String"
    }
}

Element

Description

Example

ID

Transaction ID. You'll need this ID to confirm the transaction

589

reference

References in format: entitades.referencias

00000.425