GithubHelp home page GithubHelp logo

serhiyromanov / mp-payeer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pmaigutyak/mp-payeer

0.0 0.0 0.0 20 KB

Payeer integration app for Python/Django

License: ISC License

Makefile 0.46% Python 99.54%

mp-payeer's Introduction

MP-Payeer

Django payeer integration app. Official docs: https://payeercom.docs.apiary.io

Installation

Install with pip:

$ pip install django-payeer

App settings:

PAYEER = {
    'ACCOUNT': 'P1000000',
    'API_ID': '12345',
    'API_PASS': 'qwerty',
    'LANGUAGE': 'en' # optional, default: 'ru'
}

Usage

from payeer.api import payeer_api
from payeer.constants import CURRENCY_USD

Merchant

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
}

Balance Check

Obtain wallet balance.

payeer_api.get_balance()

Checking Existence of Account

You can check the existence of an account number prior to transfer in the Payeer system.

payeer_api.check_user('P1000000')

Automatic Conversion Rates

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')

Getting Available Payment Systems

This method returns a list of payment systems that are available for payout.

payeer_api.get_pay_systems()

Requirements

App require this packages:

  • django

Donators

  • Andriy Onishchuk

mp-payeer's People

Contributors

pmaigutyak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.