A Python package to interact with the Banco Inter's Pix API
Project description
InterPixPy
This library provides developers with a simple way to interact with the Banco Inter's Pix API.
Requirements
Python 3 or higher
Installation
pip install inter-pixpy
Usage
import interpixpy
sdk = interpixpy.SDK(
client_id="your_app_client_id",
client_secret="your_app_client_secret",
grant_type="grant_type",
scope="your_app_scope",
cert_path="path_to_your_cert_file",
key_path="path_to_your_key_file",
)
cob_payload = {
"calendario": {"expiracao": 3600},
"devedor": {
"cpf": "00000000000",
"nome": "Xoblinha da Silva",
},
"valor": {"original": "100.00"},
"chave": "99999999999999",
"solicitacaoPagador": "Pagamento dos serviços prestados.",
}
result = sdk.cob().create(cob_payload)
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
inter_pixpy-0.0.3.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for inter_pixpy-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21cc73ffe37bd4c77c752e2d23bf4f1a51b5198525db46ebbe5f77f5fe58b38b |
|
MD5 | 85843adbabb3905464715084b1fe880d |
|
BLAKE2b-256 | f8301be80fbae44469a5fe8f9923653c1974c8d8a075f51cc18ea86fc6e7c330 |