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",
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.4.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for inter_pixpy-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056857778b8948d6e286d8c5e1d8ea47b5ab6d95823c99e8ba45eb6a97f6c011 |
|
MD5 | 3fdf2f526c99edc34c79dbc27dbbf584 |
|
BLAKE2b-256 | 00c2ba68f8daf186cf42aec1b185a6cff7e9f14e4e9d79d00d9181a951ba1963 |