Skip to main content

Module for integration with Gerencianet API

Project description

# gn-api-sdk-python

> A python library for integration of your backend with the payment services
provided by [Gerencianet](

[![Build Status](](
[![Coverage Status](](
[![Code Climate](](


:warning: **Gerencianet API is under BETA version, meaning that it's not available for all users right now. If you're interested, you can always send an email to and we'll enable it for your account**

## Installation

Install with Pip:

$ pip install gerencianet

## Basic usage

# encoding: utf-8

from gerencianet import Gerencianet

credentials = {
'client_id': 'client_id',
'client_secret': 'client_secret',
'sandbox': True

gn = Gerencianet(credentials)

body = {
'items': [{
'name': "Product 1",
'value': 1000,
'amount': 2
'shippings': [{
'name': "Default Shipping Cost",
'value': 100

print gn.create_charge(body=body)


## Examples

You can run the examples inside `docs/examples` with
`$ python docs/examples/`:

$ python docs/examples/

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

## Tests

To run the tests, just run *pytest*:

$ py.test

## Additional documentation

### Charges

- [Creating charges](/docs/
- [Paying a charge](/docs/
- [Detailing charges](/docs/
- [Updating informations](/docs/
- [Resending billet](/docs/
- [Adding information to charge's history](/docs/

### Carnets

- [Creating carnets](/docs/
- [Detailing carnets](/docs/
- [Updating informations](/docs/
- [Resending the carnet](/docs/
- [Resending carnet parcel](/docs/
- [Adding information to carnet's history](/docs/

### Subscriptions

- [Creating subscriptions](/docs/
- [Paying a subscription](/docs/
- [Detailing subscriptions](/docs/
- [Updating informations](/docs/

### Marketplace

- [Creating a marketplace](/docs/

### Notifications

- [Getting notifications](/docs/

### Payments

- [Getting installments](/docs/

### All in one

- [Usage](/docs/

## Changelog


## Contributing

Bug reports and pull requests are welcome on GitHub at 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](LICENSE).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gerencianet, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size gerencianet-0.0.1.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page