Skip to content

Som-Energia/sermepa

 
 

Repository files navigation

Sermepa client

CI Status PyPi Downloads Coverage Status

A python client library for sending payment orders to the Sermepa/RedSys payment service.

Installation

From pypi.org

pip install sermepa

From source:

pip install .

Running tests

$ ./setup.py test

If you want to test your own keys create file config.py with:

# This one should be your private one
redsys = dict(
   merchantcode = '123456789',
   merchantkey = 'blablablablablablablablablabla',
)

# This is a common one but you can have your own test key
redsystest = dict( # Clave para tests
   merchantcode = '999008881',
   merchantkey = 'sq7HjrUOBfKmC576ILgskD5srU870gJ7',
)

Changelog

CHANGES.md

TODO

  • Accept all new parameters in specification
  • Recover pypi project
  • Review error handling
  • Production api test should depend on the concrete key