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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

Details for the file netseasy-0.1.1.tar.gz.

File metadata

  • Download URL: netseasy-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.5.4

File hashes

Hashes for netseasy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ac67ad8721222a54ad21f15d93fcaf496b512b62bccca861a43f8a3a5895818
MD5 44b821416e353f1a4297c07f1377d70d
BLAKE2b-256 729a4ebcfd4fed2b57ad85d79a293d9a4f557481e58f1efa4b63af73f3a5fe2e

See more details on using hashes here.

File details

Details for the file netseasy-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: netseasy-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.5.4

File hashes

Hashes for netseasy-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4cbb527d14da1143030f8efadbf3a574c3dc71634cff14312ea543680bee58dc
MD5 49a1870fdd016921028f056d02545f22
BLAKE2b-256 2b4aad91f128f0aa3527e05eb9d8958f24e202da0e2f77ee9dbae4a354e671d2

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