Skip to main content

SDK Bradesco PIX V8

Project description

API Bradesco PIX Recebimento V8 - Python

Recursos

  • Criação de token.
  • Gerar cobrança.
  • Consultar cobrança.
  • Devolução.
  • Consultar devolução.
  • Cadastrar Webhook.
  • Consultar Webhook.
  • Excluir Webhook.

Instalação

pip install bradescoPixCTS

Exemplos

from bradescoPixCTS import *

# Credenciais
client_id = "client_id"
client_secret = "client_secret"
private_key_path = "./private_key.pem"
public_key_path = "./public_key.pem"
chave = "client_pix_key"
environment = Environment(sandbox=True)

# Criar token (validade de 60 minutos)
access_token = AccessToken(client_id, client_secret, public_key_path, private_key_path, environment)

# Criar cobrança: Se o txid não for informado a API cria um txid único
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.charge(payload, txid)

# Consultar PIX: Pode buscar pelo txid ou e2eid
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.getCharge(txid)

# Solicitar devolução: O id é a referencia da devolução é deve ser único
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.refund(payload, e2eid, id)

# Consultar devolução
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.getRefund(e2eid, id)

# Cadastrar Webhook
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.webhook(payload, chave)

# Consultar Webhook
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.getWebhook(chave)

# Excluir Webhook
bradesco_pix = BradescoPixCTS(access_token)
bradesco_pix.deleteWebhook(chave)

Manual

[Bradesco PIX Recebimento V8](./API_Pix_Recebimento _V8.pdf)

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

bradescopixcts-0.2.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file bradescopixcts-0.2.tar.gz.

File metadata

  • Download URL: bradescopixcts-0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for bradescopixcts-0.2.tar.gz
Algorithm Hash digest
SHA256 3a6b7545c48a37675241e74f4af43004b65481bbdb8fc0dc080732dcf1aa04a3
MD5 f99afc45b3f941f8aa7755202c42dafb
BLAKE2b-256 745a89ef91b987e51995ad04faa8917d7b48e34e9aebdea382f6ede4a112cb43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page