Skip to content

ggindinson/anypay_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

A small API wrapper for AnyPay bank system made for a project.

  • Creating a payment

  • Getting payments list

Installation

Install AnyPay API with pip

  pip install anypay_api
  cd my-project

Usage/Examples

Creating a payment

from anypay_api import PayApi
api = PayApi(API_ID, API_KEY, PROJECT_ID)
async def create_payment():
    payment = await api.create_payment(pay_id, amount, currency, desc, method, method_currency)
    print(payment.payment_url)  - https://anypay.io/pay/de13d3493-4508-4c6a-90d4

Getting a payment

from anypay_api import PayApi
api = PayApi(API_ID, API_KEY, PROJECT_ID)
async def create_payment():
    payments = await api.get_payments(payout_id)
    print(payments.total)  - 2

Feedback

I would be very pleased for a star ⭐️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages