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.1.tar.gz (21.5 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.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file payme_pkg_clone-1.0.1.tar.gz.

File metadata

  • Download URL: payme_pkg_clone-1.0.1.tar.gz
  • Upload date:
  • Size: 21.5 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.1.tar.gz
Algorithm Hash digest
SHA256 a7b606c40dbf2824e07b84a22e342ba9307318e4b2912145283db73400e4523d
MD5 0efa1c5123be896f74841b80ebf09df8
BLAKE2b-256 8787f37461c8ffb97aea3a9bf96cdb9633a2024a9cbd03017487cba6f6bb53e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for payme_pkg_clone-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3057c5af617cb79f7ba38e8bc59cb2c1f2c3aa768ae9409228e7ed597caaeb13
MD5 d445053f8ec60fa733434edf9ae0e3e2
BLAKE2b-256 06c5f4fd48a1a9e6c7f8e52148dfb95500bc819a37292848282aca4d744b0982

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