Skip to main content

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

  1. Add payme to your INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'payme',
]
  1. Include Payme URLs in your urls.py:
from django.urls import path, include

urlpatterns = [
    ...
    path('payme/', include('payme.urls')),
]
  1. 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


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)

Uploaded Source

Built Distribution

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

payme_pkg_clone-1.0.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

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

Hashes for payme_pkg_clone-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dad1031e9ab1089ae2342df15c8cc303d3b3061c82da88d57cb3be2b71f0fad2
MD5 09cb479ef382dc583a15f6203fd18de2
BLAKE2b-256 801fa51a145827fe4342257c877f86f2afc320678b579564b2328c09e75f4a80

See more details on using hashes here.

File details

Details for the file payme_pkg_clone-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for payme_pkg_clone-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7608ae71170663816aa7573a974463f060387ba2b091b70d61c9c533b81b973
MD5 45f74f02ca576757bdc7916e7a57edc5
BLAKE2b-256 5ddecacb62e3baff9c52864335e3dc7ffe514a0240daac6903bc7944fc48fbad

See more details on using hashes here.

Supported by

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