Django payeer integration app. Official docs: https://payeercom.docs.apiary.io
Install with pip:
$ pip install django-payeer
App settings:
PAYEER = {
'ACCOUNT': 'P1000000',
'API_ID': '12345',
'API_PASS': 'qwerty',
'LANGUAGE': 'en' # optional, default: 'ru'
}
from payeer.api import payeer_api
from payeer.constants import CURRENCY_USD
data = payeer_api.merchant(
order_id=123,
amount=10,
currency=CURRENCY_USD,
description='Test')
payeer_api.merchant returns:
{
'location': '...', # redirect url
'signature': '...', # generated signature
'description': '...' # generated description
}
Obtain wallet balance.
payeer_api.get_balance()
You can check the existence of an account number prior to transfer in the Payeer system.
payeer_api.check_user('P1000000')
If during deposit/transfer/withdrawal the withdrawal currency curIn is different from the receiving currency curOut, the amount will be converted based on Payeer’s internal echange rates, which can be obtained using the following method.
(N - get deposit rates Y - get withdrawal rates)
payeer_api.get_exchange_rate('Y')
This method returns a list of payment systems that are available for payout.
payeer_api.get_pay_systems()
App require this packages:
- django
- Andriy Onishchuk