Skip to main content

netseasy - Django gateway for the payemnt solution Easy from Nets

Project description

pipeline status https://img.shields.io/badge/docs-darkgreen.svg coverage report

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


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)

Uploaded Source

Built Distribution

netseasy-0.1.1-py2.py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page