A django-payments backend for the ECPay (Taiwan) payment gateway.
Project description
A django-payments <https://github.com/mirumee/django-payments> backend for the ECPay (Taiwan) payment gateway.
Reference documentation can be found at the following address: https://www.ecpay.com.tw/Content/files/ecpay_011.pdf
Parameters
merchand_id : Merchant Identification number assigned by ECPay (required).
hash_key : Hash Key assigned by ECPay (required).
hash_iv : Hash IV assigned by ECPay (required).
endpoint (default=‘https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut/V5’) : The ECPay payment gateway endpoint. Use ‘https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5’ for the production environment (required).
merchand_name : Merchant Identification number assigned by ECPay (optional).
expiration_days : Validity of payment process. Between 1 to 60 days, defaults to 3 days. (optional).
client_back_url : URL to which the customer is redirect to after payment (optional).
choose_payments : Default payment type. Can be one of ‘ALL’, ‘ATM’, ‘WebATM’, ‘CVS’, ‘BARCODE’, ‘Credit’, ‘AndroidPay’ and defaults to ‘ALL’ (optional).
excluded_payments : Array of excluded payments options. Options are ‘ATM’, ‘WebATM’, ‘CVS’, ‘BARCODE’, ‘Credit’, ‘AndroidPay’ (optional).
Usage example
Add the following lines to your configuration in settings.py:
PAYMENT_VARIANTS = {
'default': ('payments_ecpay.ECPayProvider', {
'merchand_id': '2000132',
'merchand_name': 'Shop Name',
'hash_key': '5294y06JbISpM5x9',
'hash_iv': 'v77hoKGq4kWxNNIS',
'expiration_days': 3,
'excluded_payments': ['Credit', 'AndroidPay'],
'endpoint': 'https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5'}),
}
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
Built Distribution
Hashes for django-payments-ecpay-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c77c67fa6ad8053faa219f520b58ca865774bb142c63aa08edc642c99ee79d3d |
|
MD5 | 3c5b898b9d4a0802e7dd5f8179e60561 |
|
BLAKE2b-256 | 69a37b1a61cee85a0fa13e2234ca9eee6a71d7d4ac65b861cdb41805c7e34a69 |
Hashes for django_payments_ecpay-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e06dcb61dca7c6de77b2425304dc2555b530295866e4fd3d24f2cfa5240f43 |
|
MD5 | b87964338d356f9d76d1540fb4b8b53b |
|
BLAKE2b-256 | 99c41714b7f8f03f6127040fde083c615dd33c56baf77b5344d63c768c721bfc |