Skip to main content

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

Environment Variables

To use the class, you need to provide API_KEY and API_ID

API_KEY

API_ID

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 ⭐️

Release files for anypay-wrapper 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anypay-wrapper 1.0.0
File Size Uploaded
anypay_wrapper-1.0.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anypay-wrapper 1.0.0
File Interpreter ABI Platform
anypay_wrapper-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / anypay_wrapper-1.0.0.tar.gz

Download URL anypay_wrapper-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7329cd6661328f27e4882116379423a5b8bc3f9baca7b6e5a67ca083d1536c92
BLAKE2b-256 checksum
How to use checksums
4bd43152aee747dc3bbdc3a91dba74c1be804fa64cf1889e9b8e43511444f589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.11

Release files / anypay_wrapper-1.0.0-py3-none-any.whl

Download URL anypay_wrapper-1.0.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5714d198fca8561e6843813ed77486160d288c8edd590f3a208899835343b04
BLAKE2b-256 checksum
How to use checksums
e274ad1ceaa0f2d91af61e3fde5a3dfea8a80ce9107382068585a4c2d8523ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.11

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page