Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
systemallica committed Dec 26, 2020
1 parent 7b29d9d commit b5f8215
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

[![PyPI version](https://badge.fury.io/py/python-redsys.svg)](https://badge.fury.io/py/python-redsys)

# Welcome to python-redsys!

A simple, clean and less dependant client to handle payments through the
Expand All @@ -16,11 +19,19 @@ response parameters. That's what less dependant means.

## Example using _redirect connection_

### 0. Install python-redsys

You can add python-redsys to your project with pip:
> pip install python-redsys
Or with poetry:
> poetry add python-redsys
### 1. Instantiate the redirect client

```{.sourceCode .python}
```python
from decimal import Decimal as D, ROUND_HALF_UP
from redsys import currencies, languages, parameters, transactions
from redsys import transactions
from redsys.client import RedirectClient

secret_key = "123456789abcdef"
Expand All @@ -30,7 +41,7 @@ client = RedirectClient(secret_key, sandbox)

### 2. Create a request

```{.sourceCode .python}
```python
request = client.create_request()
```

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ classifiers = [
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
]
packages = [
{ include = "redsys" }
]

[tool.poetry.dependencies]
python = "^3.9"
Expand Down

0 comments on commit b5f8215

Please sign in to comment.