Skip to main content

Python bindings for the Zage API

Project description

Official Zage Bindings for Python

A Python library for Zage's API.

Installation

You can install this package using pip:

python -m pip install zage

Usage

This library must be initialized by specifying your credentials for the desired environment (sandbox or prod).

This is as simple as setting zage.public_key and zage.private_key to the requisite values before making an API call:

import zage

zage.public_key = "test_..."
zage.secret_key = "test_..."

# create a payment token
payment_token = zage.Payments.create_token(
    amount=1000, # in cents
    webhook="https://zage.app/on_success",
    metadata={},
)

print(payment_token)

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

zage-0.3.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

zage-0.3.2-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 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