Skip to main content

AnyPay API Wrapper

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anypay_wrapper-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

anypay_wrapper-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page