MoneyInNeosurf: Credit a Wallet with a Neosurf, MyNeosurf and Neocode Card

You need a specific contract in order to use this functionality. Please contact us.

Version

Description

1.0


How it works

By calling this method, our system credits the wallet and debits a Neosurf card, in real-time. Your server has to send us the wallet ID to credit, the ticket ID of your Neosurf Card, the amount, and a comment.

Request


XML

<MoneyInNeosurf xmlns="Service_mb">
  <wlLogin>string</wlLogin>
  <wlPass>string</wlPass>
  <language>string</language>
  <version>string</version>
  <walletIp>string</walletIp>
  <walletUa>string</walletUa>
  <wallet>string</wallet>
  <amountTot>string</amountTot>
  <amountCom>string</amountCom>
  <comment>string</comment>
  <idTicket>string</idTicket>
  <isNeocode>string</isNeocode>
  <wkToken>string</wkToken>
</MoneyInNeosurf>

JSON

{   
    "wlLogin":"string",
    "wlPass":"string",
    "language":"string",
    "version":"string",
    "walletIp":"string",
    "walletUa":"string",
    "wallet":"string",
    "amountTot":"string",
    "amountCom":"string",
    "comment":"string",
    "idTicket":"string",
    "isNeocode":"string",
    "wkToken":"string"
}

Item

Description

Required

Format

Example

wallet

Payment account ID to credit

Yes

[0 : 256] char

33612345678

amountTot

Amount to pay on the card

Yes

2 decimals

15.00

amountCom

Your fee

No

2 decimals

2.00

comment

Comment regarding the payment

No

[0 :140] char

Order number 2457765AX2, champagne brut

idTicket

Ticket Identifier

Yes

[0:32] num

2651261983

isNeocode

1: if it's a Neocode Card.
0: if it's a Neosurf or Myneosurf Card.

Yes

[1] char

0

wkToken

ID of the operation generated by your your server. This ID can be used as a search field when looking for operation details

No

[0:50] char

Dze8778

Answer


XML

<?xml version="1.0" encoding="utf-8"?>
<TRANS>
	<HPAY>
		<ID>string</ID>
		<MLABEL>string</MLABEL>
		<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>
 

JSON

{  
    "TRANS":{  
        "HPAY":{  
            "ID":"string",
            "MLABEL":"string",
            "DATE":" string ",
            "SEN":" string ",
            "REC":" string ",
            "DEB":" string ",
            "CRED":" string ",
            "COM":" string ",
            "MSG":" string ",
            "STATUS":" string"
        }
    }
}

Item

Description

Example

ID

Transaction ID

255

MLABEL

Not Used


DATE

Request Date

10/09/2011 18:09:27

SEN

Empty in this case


REC

Payment account to credit

Pizza56

DEB

0.00 in this case

0.00

CRED

Amount to credit to the payment account (total less fee)

15.00

COM

Your fee

2.00

MSG

Comment

Command number 245

STATUS

3 if a successful payment

3