django-payments provider for PayBox.money
Project description
django-payments-paybox
⚠️⚠️⚠️ Not Ready This package in development. Do not use it.
This is django-payments provider for PayBox.money.
Installation
pip install django-payments-paybox
Or with poetry
poetry add django-payments-paybox
Dependencies
This package require next deps:
django-payments
Configuration example
In settings.py
you must connect this provider
PAYMENT_VARIANTS = {
"default": (
"django_payments_provider.PayboxProvider",
{
"secret": "your_secret",
"merchant_id": 1000000, # your merchant_id
"site_url": "https://your_site.dev",
"testing_mode": 1, # enabled by default
},
)
}
Required methods in payment model
from payments.models import BasePayment
class Payment(BasePayment):
def get_failure_url(self):
return "https://your_site.dev/failure/"
def get_success_url(self):
return "https://your_site.dev/success/"
def get_process_url(self):
path = super().get_process_url()
return f"https://your_site.dev{path}"
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
Built Distribution
Close
Hashes for django-payments-paybox-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0a90b3cc659668d2c54264e2d900b2e3fbc54592a030c9c7c1c8949bce52788 |
|
MD5 | 0a72f6583b1454b470da81438abb6f26 |
|
BLAKE2b-256 | ef4361b322a8b9eff47ce896d5596973b888b6be10709717d00d2e01986f87e1 |
Close
Hashes for django_payments_paybox-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f305810bb9153af26adf05a2077eba3b1c3acd7790f5626cb0c402880dbf737 |
|
MD5 | e7b9a5be274c0c8e82d07a10b300c133 |
|
BLAKE2b-256 | 23cd337936f3dbc9032b3783e63b6a6586e53d567bbf911ba226193de1047098 |