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

Download files

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

Source Distribution

pypayment-1.8.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypayment-1.8.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file pypayment-1.8.1.tar.gz.

File metadata

  • Download URL: pypayment-1.8.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure

File hashes

Hashes for pypayment-1.8.1.tar.gz
Algorithm Hash digest
SHA256 604366b59b5911159c37946f344c2fb9c6c9abde33d0b5246a2bc6d56ec66367
MD5 b1a9651fa18c35a6ebb9d3631cd5ee61
BLAKE2b-256 7efb4ed3ef9671b7ef27989f4f2c640257c7ed93e46090799baad67be80a941a

See more details on using hashes here.

File details

Details for the file pypayment-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: pypayment-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure

File hashes

Hashes for pypayment-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fdd2e716db7aefbda14474caeeae0ab189de4857b933ee97be18edc8dc03e8a
MD5 d1a99dbbb7214bfe25766e297c0f424c
BLAKE2b-256 9cae1fc70ce0f378abc56e6e0806cc01912a3f7ee155aebea1e7e72c4d3ceb84

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.8.1 This release

2 files

1.8.0

2 files

1.7.17

2 files

1.7.16

2 files

1.7.15

2 files

1.7.14

2 files

1.7.13

2 files

1.7.12

2 files

1.7.11

2 files

1.7.10

2 files

1.7.9

2 files

1.7.8

2 files

1.7.7

2 files

1.7.6

2 files

1.7.5

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.0

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.3

2 files

1.4.2

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page