Juno Python
Project description
Juno Python Library
The Juno Python library provides integration access to the Juno Gateway.
Installing
This lib can be found on pip. To install it, use:
$ pip install juno-python
Documentation
Quick Start Example
import juno juno.init( client_id="CLIENT_ID_JUNO", client_secret="CLIENT_SECRET_JUNO", resource_token="RESOURCE_TOKEN_JUNO", sandbox=False, ) CREDIT_CARD_CHARGE = { "charge": { "description": "Description", "amount": "100.00", "references": [""], "payment_types": ["CREDIT_CARD"], }, "billing": { "name": "Name Test", "document": "00000000000", # Add a valid CPF }, } result = juno.charge.create(CREDIT_CARD_CHARGE) if result.is_success: print(f"Success: {result.charge.id}") else: for error in result.errors: print(f"Error: {error}")
Support
If you have any problem or suggestion please open an issue here.
License
Check here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size juno_python-0.2.1-py3-none-any.whl (14.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size juno-python-0.2.1.tar.gz (8.2 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for juno_python-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14d0ca1656a487a36bf305caeeb19616b2b08b30c065d1334f97c8f5f1d34d9f |
|
MD5 | 21f563f5e8f68399faf1a194e31a4a17 |
|
BLAKE2-256 | cef29d79966b92711f19bc199443d22c8f44b7fa755ff461266ff069142238ae |