Skip to main content

A client to submit payment orders to the Sermepa service.

Project description

Sermepa client

CI Status PyPi Downloads Coverage Status

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



pip install sermepa

From source:

pip install .

Running tests

$ ./ test

If you want to test your own keys create file 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',


sermepa 1.0.4-dev

  • When sermepa revice an unexpected param in decodeSignedData method not will raise SignatureError

sermepa 1.0.2 (2020-09-16)

  • Accept Ds_ProcessedPayMethod parameter set

sermepa 1.0.1 (2020-06-16)

  • Packaging issues to upload onto pipy

sermepa 1.0.0

  • Suport for Python3
  • Breaking change: all input and output strings of the library are expected to be unicode, not bytes
    • To ease transition whenever a parameter is sent as bytes, utf8 decoding is enforced
  • Accept Ds_Merchant_Cof_Txnid parameter set

sermepa 0.1.3

  • Accept Ds_Card_Type parameter set
  • Accept Ds_Card_Brand parameter set
  • Accept Ds_ErrorCode parameter set

sermepa 0.1.2

  • Adapted to the new 256 encryption schema
  • Full unittesting
  • Specification tables copied into code

sermepa 0.1.1

  • First version by Gisce


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

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

sermepa-1.0.4.tar.gz (12.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page