Skip to content

samueljansem/interpixpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages