# API Bradesco PIX Recebimento V8 - Python
## Recursos
* [x] Criação de token.
* [x] Gerar cobrança.
* [x] Consultar cobrança.
* [x] Devolução.
* [x] Consultar devolução.
* [x] Cadastrar Webhook.
* [x] Consultar Webhook.
* [x] Excluir Webhook.
## Instalação
```bash
pip install bradescoPixCTS
```
## Exemplos
```python
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)
Raw data
{
"_id": null,
"home_page": "https://pypi.org/user/monetizze/",
"name": "bradescoPixCTS",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "bradesco",
"author": "Monetizze",
"author_email": "payments@monetizze.com.br",
"download_url": "https://files.pythonhosted.org/packages/74/5a/89ef91b987e51995ad04faa8917d7b48e34e9aebdea382f6ede4a112cb43/bradescopixcts-0.2.tar.gz",
"platform": null,
"description": "# API Bradesco PIX Recebimento V8 - Python\n\n## Recursos\n\n* [x] Cria\u00e7\u00e3o de token.\n* [x] Gerar cobran\u00e7a.\n* [x] Consultar cobran\u00e7a.\n* [x] Devolu\u00e7\u00e3o.\n* [x] Consultar devolu\u00e7\u00e3o.\n* [x] Cadastrar Webhook.\n* [x] Consultar Webhook.\n* [x] Excluir Webhook.\n\n## Instala\u00e7\u00e3o\n```bash\npip install bradescoPixCTS\n```\n\n## Exemplos\n\n```python\nfrom bradescoPixCTS import *\n\n# Credenciais\nclient_id = \"client_id\"\nclient_secret = \"client_secret\"\nprivate_key_path = \"./private_key.pem\"\npublic_key_path = \"./public_key.pem\"\nchave = \"client_pix_key\"\nenvironment = Environment(sandbox=True)\n\n# Criar token (validade de 60 minutos)\naccess_token = AccessToken(client_id, client_secret, public_key_path, private_key_path, environment)\n\n# Criar cobran\u00e7a: Se o txid n\u00e3o for informado a API cria um txid \u00fanico\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.charge(payload, txid)\n\n# Consultar PIX: Pode buscar pelo txid ou e2eid\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.getCharge(txid)\n\n# Solicitar devolu\u00e7\u00e3o: O id \u00e9 a referencia da devolu\u00e7\u00e3o \u00e9 deve ser \u00fanico\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.refund(payload, e2eid, id)\n\n# Consultar devolu\u00e7\u00e3o\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.getRefund(e2eid, id)\n\n# Cadastrar Webhook\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.webhook(payload, chave)\n\n# Consultar Webhook\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.getWebhook(chave)\n\n# Excluir Webhook\nbradesco_pix = BradescoPixCTS(access_token)\nbradesco_pix.deleteWebhook(chave)\n\n```\n\n## Manual\n\n[Bradesco PIX Recebimento V8](./API_Pix_Recebimento _V8.pdf)\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "SDK Bradesco PIX V8",
"version": "0.2",
"project_urls": {
"Homepage": "https://pypi.org/user/monetizze/"
},
"split_keywords": [
"bradesco"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "745a89ef91b987e51995ad04faa8917d7b48e34e9aebdea382f6ede4a112cb43",
"md5": "f99afc45b3f941f8aa7755202c42dafb",
"sha256": "3a6b7545c48a37675241e74f4af43004b65481bbdb8fc0dc080732dcf1aa04a3"
},
"downloads": -1,
"filename": "bradescopixcts-0.2.tar.gz",
"has_sig": false,
"md5_digest": "f99afc45b3f941f8aa7755202c42dafb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5905,
"upload_time": "2024-05-08T20:39:12",
"upload_time_iso_8601": "2024-05-08T20:39:12.675276Z",
"url": "https://files.pythonhosted.org/packages/74/5a/89ef91b987e51995ad04faa8917d7b48e34e9aebdea382f6ede4a112cb43/bradescopixcts-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-08 20:39:12",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bradescopixcts"
}