A django-payments backend for the Redsys payment gateway
Project description
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.
- For example: EUR: '978', GBP: '826', USD: '840' (source: https://en.wikipedia.org/wiki/ISO_4217#Active_codes).
- endpoint (default:'https://sis-t.redsys.es:25443/sis/realizarPago': desired endpoint.
- Sandbox endpoint is default. Production endpoint is https://sis.redsys.es/sis/realizarPago
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-payments-redsys-0.3.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0162940a717083f5e15b9955d174221406ae70415526972462f95f6fa1431cba |
|
MD5 | 131e34a1ad237c4f980543452eb96a58 |
|
BLAKE2b-256 | bc16e6cac04919c7741dec743256ecaff9598533f971b60d5c761133e9fa806b |