dpr
django-payments-redsys
pypi i django-payments-redsys
dpr

django-payments-redsys

A Redsys backend for django-payments.

pypi i django-payments-redsys
Readme

django-payments-redsys

A RedsysSermepa payment gateway backend for django-payments.

Install

pip install django-payments-redsys

Parameters

  • merchant_code (required): Merchant Code - Redsys parameter.
  • terminal (required): Terminal - Redsys parameter.
  • shared_secret (required): Terminal Key - Redsys parameter.
    • "obtained by accessing the Administration Module, Merchant Data Query option in the 'See Key' section"
  • currency (default:'978'): ISO-4217 currency code.
  • endpoint (default:'https://sis-t.redsys.es:25443/sis/realizarPago': desired endpoint.
  • order_number_prefix (default:'0000'): Payment PK is suffixed to this to create Redsys order number
  • signature_version (default:'HMAC_SHA256_V1'): Only supported signature type.

settings.py

PAYMENT_VARIANTS = {
    'redsys': ('payments_redsys.RedsysProvider', {
        'merchant_code': '123456789',
        'terminal': '1',
        'shared_secret': 'qwertyasdf0123456789',
    })
}

CHECKOUT_PAYMENT_CHOICES = [('redsys', 'Redsys')]

if any('redsys' in provider for provider in CHECKOUT_PAYMENT_CHOICES):
    INSTALLED_APPS.append('payments_redsys')

Copyright (C) 2018 AJ Ostergaard

GitHub Stars

10

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
0.3.post1
4yrs ago
0.3
4yrs ago
No alternatives found
No tutorials found
Add a tutorial