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
- Python 3.13
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multisafepay_payment-2.0.0.tar.gz.
File metadata
- Download URL: multisafepay_payment-2.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10e691a275691057e28778b60f3fedf6aea8b6bab65b1b5a735ac013e907b160
|
|
| MD5 |
5ef6dabf92891e34bb694d2b5eb9efef
|
|
| BLAKE2b-256 |
3c237fcaf0940421b76f6b32de2e2a26ffbb0c4db2e2980351b20b6934b38cf2
|
File details
Details for the file multisafepay_payment-2.0.0-py3-none-any.whl.
File metadata
- Download URL: multisafepay_payment-2.0.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4ea482296d921346b2567f3701ce20ace39500c18aad85c8babc75118d99931
|
|
| MD5 |
3eef29532a9bda2261c73991a6ee3dd5
|
|
| BLAKE2b-256 |
bb8ae0975d01129ee5fd82670766e8f53e82ae6c63b9d50e5725f7f001618ca4
|