ajostergaard / django-payments-redsys

A Redsys backend for django-payments.
GNU General Public License v3.0
15 stars 11 forks source link
django-payments redsys saleor

django-payments-redsys

A RedsysSermepa payment gateway backend for django-payments.

Install

pip install django-payments-redsys

Parameters

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