DengiOnline

2017-07-29 03:29:17

PAYSYSTEMS action

Note!

PAYSYSTEM action is out of date! We strongly recommend using COMMISSION action instead of it.

Request Parameters

To request the list of available services you only need to send the standard set of the required parameters.

Response Parameters

The GSG System response in XML format apart from the basic parameters contains the following nodes:

Parameter

Description

Format

Tag “paysystem” (which wraps a payment system description) contains the following tags:

id

Payment provider’s ID

integer

tag

Payment provider’s mnemonic ID

alias

string (255)

title

Payment provider’s name

string (255)

jname

Legal entity title

string (255)

(the string may be empty)

min_amount

Minimal payment amount accepted by provider

decimal (11.4)

delimiter — point

max_amount

Maximal payment amount accepted by provider

decimal (11.4)

delimiter — point

account_name

Hint for recipient ID

string

account_regexp

Regular expression for recipient ID validation.

For example, /^\d{10}$/ (expression for phone number)

string

currency_id Paysystem currency

string / integer
ISO 4217 number-3

Tag “params” contains the following tags, specific for the payment recipient:

name

Parameter name; in payment request - tag name in params node

For example, cardholder’s first name, last name

string

descr

Parameter description

For example,  bank card Expiration Date (in MMYY format)

string

regexp

Regular expression for parameter validation

For example, /^[\d]+$/ (for cardholder’s phone number in international format).

string

Example request

<?xml version="1.0" encoding="UTF-8"?>
<request>
    <action>paysystems</action>
    <project>1234</project>
    <timestamp>1358429485</timestamp>
    <sign>d5fc59667fdae3f97e7527beed553d80</sign>
</request>

Example response (success)

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <reference>25235</reference>
    <timestamp>1358429487</timestamp>
    <paysystems>
        <paysystem>
            <id>23</id>
            <tag>webmoneywmz</tag>
            <title>WebMoney WMZ</title>
            <min_amount>1.00</min_amount>
            <max_amount>0.00</max_amount>
            <jname></jname>
            <account_name>Wallet number</account_name>
            <account_regexp>/^[zZ][\d]{12}$/</account_regexp>
            <currency_id>417</currency_id>
        </paysystem>
        <paysystem>
            <id>31</id>
            <tag>skype</tag>
            <title>Skype — USD account replenishment</title>
            <min_amount>0.00</min_amount>
            <max_amount>15000.00</max_amount>
            <jname></jname>
            <account_name>Skype login</account_name>
            <account_regexp>/^[a-zA-Z0-9\-\.\_]+$/</account_regexp>
            <region>us</region>
        </paysystem>
        ...
    </paysystems>
</response>

Example response (fail)

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>14</status>
    <reference>25237</reference>
    <timestamp>1358430240</timestamp>
</response>