Skip to content

ma1onso/depayco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ed3b6b · Feb 21, 2020

History

24 Commits
Jan 26, 2020
Jan 2, 2020
Dec 11, 2019
Jan 26, 2020
Feb 21, 2020
Jan 26, 2020

Repository files navigation

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 of dictionaries

Buy me a coffee