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 interpixpy
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",
)
cob_payload = {
"calendario": {
"expiracao": 3600
},
"devedor": {
"cpf": "00000000000",
"nome": "Fulano de Tal"
},
"valor": {
"original": "100.00"
},
"chave": "00000000000", # Chave Pix do recebedor
"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.2.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for inter_pixpy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf3b1f3f600436519c7a6b9e94f2ca630b345f11d61b2e0a83ae7d695109541 |
|
MD5 | 0f275a3ca4e8489f5a61a9ab27a33458 |
|
BLAKE2b-256 | 4cd7f96bc1bb04ee45703ee5558d6df659acdf75366b015f008426e0d316a78c |