Skip to content

API tool for wrapping Omise API, developed with Python

Notifications You must be signed in to change notification settings

jakyns/omise-api-tool

Repository files navigation

Omise API Tool

Omise API Tool developing for making user to be more convenient calling Omise API in some scenarios developed by Python. This repository uses pipenv to manage all dependencies from Pipfile.

Dependencies

Installation

Copy environment file .env.xxx to .env according to your environment and add necessary values.

Initiate virtual environment and generate Pipfile and Pipfile.lock by running:

pipenv lock

Install dependencies and get into virtual environment.

pipenv install && pipenv shell

Pipenv will automatically loads environment varibles from .env variables, if they exist.

Usage

flow charge

Python script for generating token, create customer with card then create first charge

>>> import omise
>>> python flow_charge.py

charges wave

Python script for creating amount of charges as you want

>>> import omise
>>> python charges_wave.py {customer} {charges_amount}

cards manufacture

Python script for creating amount of cards as you want

>>> import omise
>>> python cards_manufacture.py {customer} {cards_amount}

About

API tool for wrapping Omise API, developed with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages