Python package for Payme (Paycom) payment integration
Project description
Payme Python Package
Python package for integrating with Payme (Paycom) payment system in Uzbekistan.
Installation
pip install payme
Requirements
- Python 3.7+
- Django 3.0+
- requests 2.25.0+
- djangorestframework 3.12.0+
Quick Start
Basic Usage
from payme import Payme
# Initialize Payme client
payme = Payme(
payme_id="your_payme_id",
payme_key="your_payme_key", # Optional, required for receipts
is_test_mode=True # Set to False for production
)
# Create a card
response = payme.cards_create(
number="8600123456789012",
expire="1225",
save=False
)
# Create a receipt
receipt = payme.receipts_create(
account={"order_id": "12345"},
amount=100000,
description="Test payment"
)
Django Integration
- Add
paymeto yourINSTALLED_APPS:
INSTALLED_APPS = [
...
'payme',
]
- Include Payme URLs in your
urls.py:
from django.urls import path, include
urlpatterns = [
...
path('payme/', include('payme.urls')),
]
- Configure webhook handlers in your settings:
PAYME_SETTINGS = {
'MERCHANT_ID': 'your_merchant_id',
'SECRET_KEY': 'your_secret_key',
'ACCOUNT_PARAMS': ['order_id'],
'CALLBACK_CLASS': 'your_app.callbacks.PaymeCallback',
}
Features
- Card management (create, verify, check, remove)
- Receipt management (create, pay, cancel, check)
- Payment link generation
- Django webhook integration
- Transaction tracking
Documentation
For detailed documentation, please visit the GitHub repository.
License
MIT License
Support
For issues and questions, please open an issue on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
payme_pkg_clone-1.0.0.tar.gz
(19.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file payme_pkg_clone-1.0.0.tar.gz.
File metadata
- Download URL: payme_pkg_clone-1.0.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad1031e9ab1089ae2342df15c8cc303d3b3061c82da88d57cb3be2b71f0fad2
|
|
| MD5 |
09cb479ef382dc583a15f6203fd18de2
|
|
| BLAKE2b-256 |
801fa51a145827fe4342257c877f86f2afc320678b579564b2328c09e75f4a80
|
File details
Details for the file payme_pkg_clone-1.0.0-py3-none-any.whl.
File metadata
- Download URL: payme_pkg_clone-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7608ae71170663816aa7573a974463f060387ba2b091b70d61c9c533b81b973
|
|
| MD5 |
45f74f02ca576757bdc7916e7a57edc5
|
|
| BLAKE2b-256 |
5ddecacb62e3baff9c52864335e3dc7ffe514a0240daac6903bc7944fc48fbad
|