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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zage-0.3.2.tar.gz.
File metadata
- Download URL: zage-0.3.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021b5ceaac7d56624141e470d6949e6f9c2eebfd61793eab1f5a53bb00530627
|
|
| MD5 |
82e959c01e06d5ce42bcef40a441bcf0
|
|
| BLAKE2b-256 |
da00d248e90c52c4f81ef706a23929d7a582f94115c1bcf19de7665a16365005
|
File details
Details for the file zage-0.3.2-py2.py3-none-any.whl.
File metadata
- Download URL: zage-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b89a2ec4703e8431914d53390344cb946e62fa2bcbab108df13159057b7ef8dc
|
|
| MD5 |
1f31d5684a44ed81d6671161a535bd96
|
|
| BLAKE2b-256 |
c8390268301dfba96a6953803133199dad34f0157cf6821a27b72f0f42683d43
|