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.

Source Distribution

django-payments-paybox-0.2.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

django_payments_paybox-0.2.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file django-payments-paybox-0.2.3.tar.gz.

File metadata

  • Download URL: django-payments-paybox-0.2.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for django-payments-paybox-0.2.3.tar.gz
Algorithm Hash digest
SHA256 03066682077f934413bb83e82c4cdfad969c705f00b7bf8b60d184110a1410ab
MD5 ae670f96e6dad39569321513373ce83b
BLAKE2b-256 eb985176c7d662d8b76169a43632555725431270816248704ed90373248b99a7

See more details on using hashes here.

File details

Details for the file django_payments_paybox-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_payments_paybox-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1533264fed4c6198d69354d447c03cbf22c37c0692e3ac2f35bcab7fb905a361
MD5 2fb83913efefe8f446503f7607a800ba
BLAKE2b-256 bd316473c9db2d46618d15c8ba961657b4965c12e85aac209806e43056d4cef1

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