Skip to main content

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

Metadata

Release files for depayco 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depayco 1.1.2
File Size Uploaded
depayco-1.1.2.tar.gz 22.8 kB Details

Release files / depayco-1.1.2.tar.gz

Download URL depayco-1.1.2.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6b605185682437abc21ab8a6c213c855855c7132f628594b7deb60aa095e5f1f
BLAKE2b-256 checksum
How to use checksums
479600cb98f7c4f048bb41ef2c03f163cb9f7ca921c5afac78a0532a1a306e2a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page