https://github.com/cgsmith/easycredit-sdk-python
Allows for EasyCredit calls to Rautenkauf API
https://github.com/cgsmith/easycredit-sdk-python
Last synced: 12 months ago
JSON representation
Allows for EasyCredit calls to Rautenkauf API
- Host: GitHub
- URL: https://github.com/cgsmith/easycredit-sdk-python
- Owner: cgsmith
- License: mit
- Created: 2023-10-31T11:36:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T12:02:50.000Z (over 2 years ago)
- Last Synced: 2025-03-28T19:07:31.116Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyCredit API SDK (Python)
EasyCredit REST integration.
Please note this is a **non-official** Amazon Pay Python SDK and can only be used for API calls to the EasyCredit
endpoint.
For more details about the API, please check
the [Official Documentation for Installment Purchases](https://developer.easycredit-ratenkauf.de/documentation/api-dokumentation-v3/).
```python
>>> from easy_credit import Client
>>> c = Client(webshop_id='YOUR_ID',token='AUTH_TOKEN')
>>> c.get_transaction('1.de.4145.1-0303135329-211').is_authorized()
True
>>> c.response.json().get('descision').get('decisionOutcome')
'EWZEN7'
>>> c.response.text # returns text from response object
'{"decision":{"transactionId" ...'
>>> c.response.json()
{'decision': {'transactionId' ... }
```
## Requirements
* Python 3.x
* requests
## Installation
Use PyPI to install the latest release of this SDK.
```shell
pip install EasyCreditClient
```
## Configuration
You will need to generate the API crednetials from the [easyCredit Partner Portal](https://partner.easycredit-ratenkauf.de).
```python
from easy_credit import Client
client = Client(
webshop_id='YOUR_ID',
token='AUTH_TOKEN'
)
```