Payment systems API

Description

Using the API you can add any payment system with all exchange types available for this payment system.

All the APIs are here: api/changers/

Comment in the code for the example here: api/changers/webmoney/


Files

charge.php - file launched by the payment system after sending funds via html form. Contains all checks for funds transfer and launching files for further exchange.

check.inc.php - file to be launched at step 3 of transaction creation. Contains all necessary checks before starting the exchange. Only the file of the outgoing currency (to be exchanged) is started.

fields.inc.php - file containing the required fields.

functions.inc.php - a file containing all the API functions used.

key.inc.php - a file containing highly classified data. It's rarely used in pay-systems. For Webmoney key file data and path to the key file.

pay.inc.php - a file containing the backsend of funds. Runs from the module file - payout.inc.php.

send.inc.php - a file containing an html form to send to the payment system interfaces.

balance.inc.php - file to obtain an up-to-date account/wallet balance.


Adding a payment system with API

Let's consider an example of adding a payment with already existing API w1 with the currency Ukrainian hryvnia

Go to: Payment Systems - Add

Payment system name - enter the name

System Type - Electronic Currency

Currency name - UAH

System Code - WOUAH

Payment system codes can be viewed on our website

Identifier - for example: w1uah or any other set of lower case Latin characters.

API - select w1

Icon - select w1.png

Stock - enter stock

Incoming system commission - enter the commission, if any

Outgoing system commission - enter the commission, if any

Min Commission - enter the min commission, if any

Max commission - enter the max commission, if any

System currency - select UAH - Ukrainian hryvnia

Exchange Types - select all available

After setting up the payment, be sure to set the types for each of the directions in the section: Rates Choose a source to receive your rates and update them!

Account and Key - enter the account and key in according to the instructions

Text for the Operator Processing type - enter text if this type is enabled. Sample texts see here

As a result, a fully functional payment W1 UAH has been added.


Adding a payment system without API

Let's look at an example of adding a payment without API. For example, a bank (any)

Go to: Payment Systems - Add

Name of the payment system - enter the name. For example, Sberbank

System Type - Bank

Currency name - RUB

System code - SBERRUB

Payment system codes can be viewed on our website

Identifier - for example: sberrub or any other set of lower case Latin characters.

API - select Do not use

Icon - select sberbank.png

Stock - enter stock

Incoming system commission - enter the commission, if any

Outgoing system commission - enter the commission, if any

Min Commission - enter the min commission, if any

Max commission - enter the max commission, if any

System currency - select RUB - Russian ruble

Exchange Types - select all available

After setting up the payment, be sure to set the types for each of the directions in the section: Rates Choose a source to receive your rates and update them!

Text for the Operator Processing type - enter text if this type is enabled. Sample texts see here


Add payment system without API. VISA/MasterCard

Go to: Payment Systems - Add

Payment system name - enter the name. For example Visa/MC

System Type - Bank Card

Currency name - RUB

System Code - CARDRUB

Payment system codes can be viewed on our website

Identifier - for example: visarub or any other set of lower case Latin characters.

API - select Do not use

Icon - select vcmc.png

Stock - enter stock

Incoming system commission - enter the commission, if any

Outgoing system commission - enter the commission, if any

Min Commission - enter the min commission, if any

Max commission - enter the max commission, if any

System currency - select RUB - Russian ruble

Exchange Types - select all available

After setting up the payment, be sure to set the types for each of the directions in the section: Rates Choose a source to receive your rates and update them!

Text for the Operator Processing type - enter text if this type is enabled. Sample texts see here

This way you can add any payment system and/or bank

Last updated