Skip to main content

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.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

depayco-1.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for depayco-1.0.tar.gz
Algorithm Hash digest
SHA256 24ea1d5bcca2ce4b5efe6d98dc2db699144f3036881ffc89c23e59ab3563e4eb
MD5 b4b32dca825616a9ae28ffafb1e0abfb
BLAKE2b-256 359025e38bc6cbf79ce33d4981cff4704ac763426894dc788e9155d87e87fcac

See more details on using hashes here.

File details

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

File metadata

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

Hashes for depayco-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a114d59b785439199cb7f421af7f39026ce735b65a61cdf94fe166882591b51
MD5 ca5ff5009eb21e6f2f0a36422782fe7e
BLAKE2b-256 5d144798b40f0149e0905d5ae1d982c121f355bde7f709a3de2c1cec2389a525

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