Skip to main content

A django-payments backend for the ECPay (Taiwan) payment gateway.

Project description

A django-payments <> backend for the ECPay (Taiwan) payment gateway.

Reference documentation can be found at the following address:


  • 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=‘’) : The ECPay payment gateway endpoint. Use ‘’ 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

    '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': ''}),

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-payments-ecpay, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_payments_ecpay-1.0.2-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-payments-ecpay-1.0.2.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page