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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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