Django integration with epayco.co
Project description
Introduction
Django integration with epayco.co
Installation
-
pip install depayco
. -
Set depayco on INSTALLED_APPS.
-
Run
python manage.py migrate
.
Configurations (settings.py)
EPAYCO_PUBLIC_KEY: String
EPAYCO_SECRET_KEY: String
DEBUG_EPAYCO: Boolean
PLANS
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,
}
)
How to use
python manage.py sync_plans
to create plans on epayco.co
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
depayco-1.0.1.tar.gz
(7.7 kB
view details)
Built Distribution
depayco-1.0.1-py3-none-any.whl
(26.9 kB
view details)
File details
Details for the file depayco-1.0.1.tar.gz
.
File metadata
- Download URL: depayco-1.0.1.tar.gz
- Upload date:
- Size: 7.7 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 | cb744b5bb97e40d9b60fd7628089cc2572d88ede909120b1bac848358e0d4414 |
|
MD5 | 705e746c700079ceb3759a9d7737301a |
|
BLAKE2b-256 | 6c8b63ab502b5b41a427cdc9837c2dc9dc3df62c0c918878064c75bc7be10fe8 |
File details
Details for the file depayco-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: depayco-1.0.1-py3-none-any.whl
- Upload date:
- Size: 26.9 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 | db96b857c9cc9ee38bc8743c1815e28a9cb2932161175d8cf72e2a5879411887 |
|
MD5 | 6a483f02129a421a4f607dad3ab3e956 |
|
BLAKE2b-256 | c4d9538aa82b60d75a947a3b3aa74aeb638a5815e3f4360a6b797e8612d94f32 |