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",
    "msext_mastercard": "MASTERCARD",
    "msext_visa": "VISA"
} 

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.1.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.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multisafepay_payment-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3e746d0f41d1e10f4e00a2fd3fe68d434c6b11a845a6efae1a3c3d5943ba1765
MD5 e9b670f17d7187b9bdf9f0deec0c2872
BLAKE2b-256 130085b9d64e4017781f2c1f1861b2f5219612de67ee1b2cb5e38e5ea3d1515d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multisafepay_payment-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eaa92ee50448a42eb38ed0a15cabbdb31d84d3c0600070664941875e8210ddb
MD5 694f8ad3b2b3fcc1469142650b1971e7
BLAKE2b-256 cbf128c2c063b31e67e8c8b7e0ab8fd91ec306eddef95f7d66c82d044dd210dd

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