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 hashes)

Uploaded Source

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