Skip to main content

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.

Files for django-payments-paybox, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_payments_paybox-0.1.0-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-payments-paybox-0.1.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page