Skip to main content

A library to provide payment gateway for MultisafePay Payment

Project description

MultisafePay Payment Redirect View

This app provides order related data to the Multisafe Payment extension when plugged-in to project zero.

Installation

Add the package to requirements.txt file and install it via pip:

pip install multisafepay-payment

Configuration

1. Adding App

Include the following lines in your omnife_base.settings file:

INSTALLED_APPS.append('multisafepay_payment')

PZ_SERVICE_CLASS = "omnife.core.service.Service"
HASH_SECRET_KEY = "your-hash-secret-key"
MULTISAFEPAY_EXTENSION_URL = "extension url"
MULTISAFEPAY_PAYMENT_METHODS = {"msext_paypal": "PAYPAL", "msext_bancontact": "MISTERCASH"} 

Explanation of Settings

Setting Name Description
MULTISAFEPAY_PAYMENT_METHODS A setting that maps payment option slugs to Multisafe payment methods.
{"payment_option_slug": "Gateway ID"}
For the full list of available Gateway IDs, visit: https://docs.multisafepay.com/reference/gateway-ids
MULTISAFEPAY_EXTENSION_URL The URL where the Multisafe Payment extension is hosted.
HASH_SECRET_KEY A secret key used for security.

2. Add URL Pattern

Add url pattern to omnife_base.urls like below:

urlpatterns = [
    # ...
    path('payment-gateway/multisafepay/', include('multisafepay_payment.urls')),
]

Running Tests

python -m unittest discover

Python Version Compatibility

This package is compatible with the following Python versions:

  • Python 3.9

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

multisafepay_payment-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

multisafepay_payment-1.0.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file multisafepay_payment-1.0.0.tar.gz.

File metadata

  • Download URL: multisafepay_payment-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for multisafepay_payment-1.0.0.tar.gz
Algorithm Hash digest
SHA256 89fd140bfd7f49e0fd3485ce460a11c288316a00361109169b4566017c284c70
MD5 13e13a48a87ca427d0bc1f2cc9f4c778
BLAKE2b-256 03759a17d4cbef8269672d8ea63617d0b6f73f2683f79ecdd579d14d4f047c06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multisafepay_payment-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8275a3f3056ada175cbe6235443bb94330b809a8e6e9c5071c660e51887a75b0
MD5 391410721c53875a0d7964ee6e96d955
BLAKE2b-256 fc19c5375dbe97c3a9c902e280cf73ffac1a48176fbea3574939012c13b159dd

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