Skip to main content

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

depayco-1.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

depayco-1.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file depayco-1.1.0.tar.gz.

File metadata

  • Download URL: depayco-1.1.0.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

Hashes for depayco-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ec6dc40797fa7de921bcfa80360da7848ad8be71a11fc0dd973fc17acb1e142c
MD5 5341c68aefcd0186a4d7c860e4f8109e
BLAKE2b-256 e544d5056e0ca02d5854b1ce313747d5a52211d2d5ba248bf6c79c894f4890b9

See more details on using hashes here.

File details

Details for the file depayco-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: depayco-1.1.0-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

Hashes for depayco-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb8d24aeb63d7958313d874790197703c9130e0a5c9998a9ac113f36db15613
MD5 f8ca97941b36cfa03895bda13f1a5e2f
BLAKE2b-256 254624c8feae1012395fccfdcb8de503df3a157b8a926efc5c566c6042f77709

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page