Skip to content

skioo/django-netaxept-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-netaxept-gateway

Build Status PyPI version Requirements Status License: MIT

Requirements

  • Python: 3.6 and over
  • Django: 2.0 and over

Installation

pip install django-netaxept-gateway

Configuration

Add netaxept.apps.NetaxeptConfig to settings.INSTALLED_APPS and run:

./manage.py migrate

Configure NETAXEPT_MERCHANTID and NETAXEPT_TOKEN

By default this library connects to the test netaxept endpoints, to use the production environment you must set:

NETAXEPT_TERMINAL to https://epayment.nets.eu/Terminal/default.aspx

NETAXEPT_WSDL to https://epayment.nets.eu/netaxept.svc?wsdl

IMPORTANT

  • Amounts are in smallest currenty unit. For instance one NOK is represented in netaxept as "100 NOK".

  • Payment objects have a success field that indicate whether the payment was registered without error, it says nothing about whether we got the money or not (To receive money the payment needs to go thru auth then capture , or thru sale).

Netaxept Reference

https://shop.nets.eu/web/partners/home

Read this first: https://shop.nets.eu/web/partners/flow-outline

API details: https://shop.nets.eu/web/partners/appi

Test card numbers: https://shop.nets.eu/web/partners/test-cards

Design

We don't allow payment registration with autoSale because it becomes very difficult to determine the status of the operation when it is carried-out automatically.

TODO

  • Unit tests
  • On prod (where debug is turned off), errors in the admin after invoking the gateway are shown as a useless grey page.

Development

To install all dependencies:

pip install -e .

To run tests:

pip install pytest-django
pytest

About

A django integration for the netaxept payment gateway.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published