Django integration with ePayco (epayco.co)
Project description
Django integration with ePayco (epayco.co), Colombian payment gateway.
Installation
-
pip install depayco
-
Set depayco on INSTALLED_APPS
-
Set secret and public key in
settings
:EPAYCO_PUBLIC_KEY: String
EPAYCO_SECRET_KEY: String
-
Add plans to
settings
file:PLANS = ( { 'id_plan': 'love2d_course', 'name': 'love2d Course', 'description': 'The most beautiful love2d course', 'amount': 29.99, 'currency': 'USD', 'interval': 'month', 'interval_count': 1, 'trial_days': 14, }, { 'id_plan': 'defold_course', 'name': 'defold Course', 'description': 'The most mad defold course', 'amount': 29.99, 'currency': 'USD', 'interval': 'month', 'interval_count': 1, 'trial_days': 14, } )
Note: for create plan in epayco.co run command sync_plans
- Create tables in DB
python manage.py migrate
Commands
python manage.py sync_plans
to create plans on epayco.co
python manage.py sync_subscriptions
to keep update your subscriptions on DB
Configurations
DEBUG_EPAYCO: Boolean
EPAYCO_PUBLIC_KEY: String
EPAYCO_SECRET_KEY: String
PLANS: Tuple
Buy me a coffee
Project details
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
File details
Details for the file depayco-1.1.1.tar.gz
.
File metadata
- Download URL: depayco-1.1.1.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc458b7b9c4646b4342c48dc7cf1b8e8f2404978fb4c274d0c9f2fb4c5db464 |
|
MD5 | 90ceca82e059a9b8f36c282c52f708a3 |
|
BLAKE2b-256 | cc98d95885a9cdc45114f598bdfd315d4b3439995ec3a62c07673c74e9fa14af |
File details
Details for the file depayco-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: depayco-1.1.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f237c03dff969f7a977e1ae1bcd1c3d8acf41ef73ecabac95ede2264734bbd |
|
MD5 | 4f12e009a13eb9d29a192e082ac862ee |
|
BLAKE2b-256 | 2004eb32aead039e24e881bbf11cc5444fcbdc20b427b30a642a7767700a65c5 |