Metadata-Version: 2.1
Name: juno-python
Version: 0.1.6
Summary: Juno Python
Home-page: https://github.com/mjr/juno-python
Author: Manaia Junior
Author-email: manaiajr.23@gmail.com
License: MIT
Keywords: Payment,Juno
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.24.0)

## Juno Python Library
[![PyPI version](https://badge.fury.io/py/juno-python.svg)](https://badge.fury.io/py/juno-python)
<!-- [![Build status](https://travis-ci.org/mjr/juno-python.svg?branch=master)](https://secure.travis-ci.org/juno/juno-python) -->
<!-- [![Coverage](https://coveralls.io/repos/mjr/juno-python/badge.svg?branch=master&service=github)](https://coveralls.io/github/mjr/juno-python) -->

The Juno Python library provides integration access to the Juno Gateway.

## Installing

This lib can be found on [pip](https://pypi.python.org/pypi/juno-python). To install it, use:

```
$ pip install juno-python
```

## Documentation

* [API Guide](https://dev.juno.com.br/api/)

## Quick Start Example

```python
import juno

juno.init(
    client_id="CLIENT_ID_JUNO",
    client_secret="CLIENT_SECRET_JUNO",
    resource_token="RESOURCE_TOKEN_JUNO",
    sandbox=False,
)

CREDIT_CARD_CHARGE = {
    "charge": {
        "description": "Description",
        "amount": "100.00",
        "references": [""],
        "payment_types": ["CREDIT_CARD"],
    },
    "billing": {
        "name": "Name Test",
        "document": "00000000000", # Add a valid CPF
    },
}

result = juno.charge.create(CREDIT_CARD_CHARGE)

if result.is_success:
    print(f"Success: {result.charge.id}")
else:
    for error in result.errors:
        print(f"Error: {error}")
```

## Support
If you have any problem or suggestion please open an issue [here](https://github.com/mjr/juno-python/issues).

## License

Check [here](LICENSE).


