SendPayment: ON-US payment between Wallets

This function debits a wallet A and credits a wallet B. Wallets are internal to Lemon Way, that's the reason we call those operations "ON US" operations. You can delay this payment of X days.

Version

Description

1.0


How it works

"SendPayment" debits a wallet and credits another, of the amount you set in input.
1. Your WHITE BRAND platform sends the ID of the wallet that is debited, the ID of the wallet that is credited, the amount to pay, and a comment.
2. Lemon Way answers

Request

<SendPayment xmlns="Service_mb">

  <wlLogin>string</wlLogin>

  <wlPass>string</wlPass>

  <language>string</language>

  <version>string</version>

  <walletIp>string</walletIp>

  <walletUa>string</walletUa>

  <debitWallet>string</debitWallet>

  <creditWallet>string</creditWallet>

  <amount>string</amount>

  <message>string</message>

  <scheduledDate>string</scheduledDate>

  <privateData>string</privateData>
  <reference>string</reference>

</SendPayment>

  
    "wlLogin":"string",
    "wlPass":"string",
    "language":"string",
    "version":"string",
    "walletIp":"string",
    "walletUa":"string",
    "debitWallet":"string",
    "creditWallet":"string",
    "amount":"string",
    "message":"string",
    "scheduledDate":"string",
    "privateData":"string",
    "reference":"string"
}

Item

Description

Mandatory

Format

Example

debitWallet

Wallet ID to be debited

Yes

[0 : 256] char

33612345678 ou taxi67

creditWallet

Wallet ID to credit

Yes

[0 : 256] char

33612345678 ou taxi67

amount

Payment amount

Yes

2 decimals

15.00

message

Comment for the payment

No

[0 :140] char

Order number 2457765AX2

scheduledDate

If scheduledDate is set, the following rules will apply:

  • scheduledDate cannot be equal to the current date, Paris time
  • the payment will be inserted but not executed, the status will be pending and necessary checks like user balance or user status will not be checked.
  • at 1am, Paris time, on [scheduledDate], the checks will be performed and the payment will be finalized.

    this feature is available only for some specific white label, contact commercial service for more information.

No

[0 :10] char

yyyy/MM/dd

privateData

Data with multiple fields that you can associate to a payment and that you can search with GetPaymentDetails.

  • You can add up to 20 fields
  • field must be concatenated and separated with a semicolon
  • Each field can contain up to 256 chars

No

[0 : 5139] char

My data 1;My data 2;My data 3;;My data 5

referenceIf reference is set, it must be unique in terms of P2P transactionsNo[0 : 36] charAF222233

Answer

<?xml version="1.0" encoding="utf-8"?>
<TRANS_SENDPAYMENT>
	<HPAY>
		<ID>string</ID>
		<DATE> string </DATE>
		<SEN> string </SEN>
		<REC> string </REC>
		<DEB> string </DEB>
		<CRED> string </CRED>
		<COM> string </COM>
		<MSG> string </MSG>
		<STATUS> string</STATUS>
	</HPAY>
</TRANS_SENDPAYMENT> 
{  
    "TRANS_SENDPAYMENT":{  
        "HPAY":{  
            "ID":"string",
            "DATE":" string ",
            "SEN":" string ",
            "REC":" string ",
            "DEB":" string ",
            "CRED":" string ",
            "COM":" string ",
            "MSG":" string ",
            "STATUS":" string"
        }
    }
}

Item

Description

Example

ID

Request ID

255

DATE

Request Date

10/09/2011 18:09:27

SEN

Debited Wallet

Pizza56

REC

Beneficiary Wallet

pizza

DEB

Amount to debit

15.00

CRED

Amount to credit

15.00

COM

Fee

0.00

MSG

Comment

Order number 2457765AX2

STATUS

3: success
0: pending (delayed payment)

3