Paggcerto Python API
The Paggcerto Python API provides convenient access to the Paggcerto API from applications written in the Python language.
Quick Install
This lib can be found on pip. To install it, use:
$ pip install paggcerto-python
Usage
Export environment variables
export PAGGCERTO_API_USER=...
export PAGGCERTO_API_PASSWORD=...
export PAGGCERTO_API_USE_SANDBOX=True
Creating a Client
import python_http_client
from paggcerto import PaggcertoAPIClient, Client, PersonType, SexType, PaymentMethodType
api = PaggcertoAPIClient()
client = Client(
cpfCnpj="31618850075",
name="Maria Joao dos Santos",
sex=SexType.F,
dateOfBirth="01/25/1978",
phone="7927667035",
cellphone="79993764596",
email="saragabriellyribeiro_@zf.com",
typePerson=PersonType.F,
zipCode="49030-720",
address="Avenida Tancredo Neves",
number="10",
complement="Próximo ao conjunto inácio barbosa",
neighborhood="Inacio Barbosa",
city="Aracaju",
uf="SE",
note="O cliente possui apenas um dependente.",
paymentMethod=PaymentMethodType.C
)
try:
response = api.client.core.client.register.post(request_body=client.get())
print(response.to_dict['client']['publicId'])
except python_http_client.HTTPError as e:
print(e.to_dict)
Adding a credit card
import python_http_client
from paggcerto import PaggcertoAPIClient, CreditCard, Expiration
api = PaggcertoAPIClient()
credit_card = CreditCard(
numberCard="4329626344167265",
name="Maria Joao dos Santos",
cvv="345",
publicIdClient="MAY0uoO7mTpO4tBnY"
expiration=Expiration(month="11", year="21")
)
try:
response = api.client.core.card.register.post(request_body=credit_card.get())
print(response.to_dict['card']['publicId'])
except python_http_client.HTTPError as e:
print(e.to_dict)
Documentation
Metadata
Release files for paggcerto-python 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paggcerto-python-0.0.3.tar.gz | 3.9 kB | Without provenance | Details for paggcerto-python-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paggcerto_python-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for paggcerto_python-0.0.3-py2.py3-none-any.whl |
Total release size: 8.9 kB
Release files / paggcerto-python-0.0.3.tar.gz
| Download URL | paggcerto-python-0.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
135047a825d2f135c7c17f40220f9e1892af4945484a4c140b20f51266fcb40e
|
|
BLAKE2b-256 checksum How to use checksums |
1cb1c0117e0d049fada88aa24daf415090ffa14694767e4b29f5d986f14b43ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Release files / paggcerto_python-0.0.3-py2.py3-none-any.whl
| Download URL | paggcerto_python-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
747dec17c3f2293ba7fb1c2611cca37df2c1c6814636471cd4dc179e40023a99
|
|
BLAKE2b-256 checksum How to use checksums |
90f00c972c09ff9449a9b0c3ea0a11a2e594b34f39f2f0597c11c2f0cac8012a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Security for paggcerto-python 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.