Skip to main content
PyPayment

Unified Interface for Payment APIs

PyPI Python 3 Lint Ruff Gitmoji

Documentation: https://timnekk.github.io/PyPayment/

Source Code: https://github.com/TimNekk/PyPayment


PyPayment is a wrapper for payment provider APIs

Main idea – unified interface for every provider

This library simplifies payment integration

Supported Providers

Installation

Install the latest version with PyPI

pip install -U pypayment

Quickstart

# Choose payment provider. For example, Qiwi
from pypayment import Payment, QiwiPayment, PaymentStatus

# Authorize payment provider
QiwiPayment.authorize("my_secret_key")

# Create a payment and get its url
payment: Payment = QiwiPayment(amount=100)
print(payment.url)  # https://oplata.qiwi.com/form/?invoice_uid=<payment_unique_id>

# Wait for payment to be completed
while payment.status != PaymentStatus.PAID:
    input("Press Enter to update payment status...")

    # Use `update()` method to update payment's `status` and `income`
    payment.update()

print("Payment is completed!")
print(payment.income)  # 90.0 (if commission is 10%)

[!NOTE] For more details see documentation

Contributing

Contributions are welcome! Here's how you can help:

  1. Fork it
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request
  6. Get your code reviewed
  7. Merge your code
  8. Get a 🌟

License

This project is licensed under the MIT License - see the LICENSE file for details

Release files for pypayment 1.8.1

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

Source distribution (sdist)

Source distribution for pypayment 1.8.1
File Size Uploaded
pypayment-1.8.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypayment 1.8.1
File Interpreter ABI Platform
pypayment-1.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.5 kB

Release files / pypayment-1.8.1.tar.gz

Download URL pypayment-1.8.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
604366b59b5911159c37946f344c2fb9c6c9abde33d0b5246a2bc6d56ec66367
BLAKE2b-256 checksum
How to use checksums
7efb4ed3ef9671b7ef27989f4f2c640257c7ed93e46090799baad67be80a941a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure

Release files / pypayment-1.8.1-py3-none-any.whl

Download URL pypayment-1.8.1-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fdd2e716db7aefbda14474caeeae0ab189de4857b933ee97be18edc8dc03e8a
BLAKE2b-256 checksum
How to use checksums
9cae1fc70ce0f378abc56e6e0806cc01912a3f7ee155aebea1e7e72c4d3ceb84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

1.8.1 This release

2 release files

1.8.0

2 release files

1.7.17

2 release files

1.7.16

2 release files

1.7.15

2 release files

1.7.14

2 release files

1.7.13

2 release files

1.7.12

2 release files

1.7.11

2 release files

1.7.10

2 release files

1.7.9

2 release files

1.7.8

2 release files

1.7.7

2 release files

1.7.6

2 release files

1.7.5

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

1 release file

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