netseasy - Django gateway for the payemnt solution Easy from Nets
Project description
This is a django gateway for the ‘Easy’ payment solution from Nets. The EasyAPI is a REST-API and supports webhooks to send updates back to Django.
Installation
For the current stable version:
pip install netseasy
For the development version:
pip install -e git+git@gitlab.com:norsktest/netseasy.git
Setup
You need to set these values in your settings.py:
EASY_CHECKOUT_URL = "https://test.checkout.dibspayment.eu/v1/checkout.js?v=1" EASY_PAYMENT_URL = "https://test.api.dibspayment.eu/v1/payments/" EASY_WEBHOOK_URL = "https://your.local.server/payment EASY_CTX = EasyContext(<EASY_SECRET_KEY>, <EASY_CHECKOUT_KEY>')
To test the solution in development, you must use a http tunnel using Ngrok (ngrok.com) or similar in order to get the webhooks to work. Running in dev, the EASY_WEBHOOK_URL setting must be set to your ngrok (or similar) address.
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
netseasy-0.1.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for netseasy-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cbb527d14da1143030f8efadbf3a574c3dc71634cff14312ea543680bee58dc |
|
MD5 | 49a1870fdd016921028f056d02545f22 |
|
BLAKE2b-256 | 2b4aad91f128f0aa3527e05eb9d8958f24e202da0e2f77ee9dbae4a354e671d2 |