Skip to content

SDK em Python integrada às APIs Efí Pay preparada para emissão de cobranças Pix com QR Code e Pix Copia e Cola, boletos, carnês, cartão de crédito, assinatura, link de pagamento, marketplace, iniciação de pagamento Pix via Open Finance, pagamento de boletos, dentre outras funcionalidades.

License

efipay/sdk-python-apis-efi

Repository files navigation

SDK Python para APIs Efí Pay

A python library for integration of your backend with the payment services provided by EfiPay.

Installation

Install with Pip:

$ pip install efipay

Tested with

python 3.11

Basic usage

# encoding: utf-8

from efipay import EfiPay

credentials = {
    'client_id': 'client_id',
    'client_secret': 'client_secret',
    'sandbox': True,
    'certificate': 'insira-o-caminho-completo-do-certificado'
}

efi = EfiPay(credentials)

body = {
    'calendario': {
        'expiracao': 3600
    },
    'devedor': {
        'cpf': '12345678909',
        'nome': 'Francisco da Silva'
    },
    'valor': {
        'original': '123.45'
    },
    'chave': '71cdf9ba-c695-4e3c-b010-abb521a3f1be',
    'solicitacaoPagador': 'Cobrança dos serviços prestados.'
}

response =  efi.pix_create_immediate_charge(body=body)
print(response)

Examples

You can run the examples inside examples with $ python -m examples/pix/cob/pix_create_immediate_charge:

$ python -m examples/pix/cob/pix_create_immediate_charge

Just remember to set the correct credentials inside examples/credentials/credentials.py before running.

Tests

To run the tests, just run pytest:

$ py.test

Additional documentation

The full documentation with all available endpoints is in https://dev.gerencianet.com.br/.

Changelog

CHANGELOG

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/efipay/sdk-python-apis-efi. This project is intended to be a safe, welcoming space for collaboration.

License

The library is available as open source under the terms of the MIT License.

About

SDK em Python integrada às APIs Efí Pay preparada para emissão de cobranças Pix com QR Code e Pix Copia e Cola, boletos, carnês, cartão de crédito, assinatura, link de pagamento, marketplace, iniciação de pagamento Pix via Open Finance, pagamento de boletos, dentre outras funcionalidades.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages