Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/particulatesolutions/django-girosolution
django girosolution wrapper for girocheckout
https://github.com/particulatesolutions/django-girosolution
Last synced: 2 months ago
JSON representation
django girosolution wrapper for girocheckout
- Host: GitHub
- URL: https://github.com/particulatesolutions/django-girosolution
- Owner: ParticulateSolutions
- License: mit
- Created: 2019-07-29T15:10:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T08:11:51.000Z (3 months ago)
- Last Synced: 2024-10-18T10:38:53.877Z (3 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Django GiroSolution
============================Implementation of [GiroCheckout API](https://api.girocheckout.de).
The following doc explain how to set up the GiroCheckout API for django.## How to install django-giropay?
There are just two steps needed to install django-giropay:
1. Install django-girosolution to your virtual env:
```bash
pip install django-girosolution
```2. Configure your django installation with the following lines:
```python
# django-girosolution
INSTALLED_APPS += ('django_girosolution', )GIROPAY = True
GIROPAY_ROOT_URL = 'http://example.com'# Those are dummy test data - change to your data
GIROPAY_MERCHANT_ID = "from-payment-provider"
GIROPAY_PROJECT_ID = "from-payment-provider"
GIROPAY_PROJECT_PASSWORD = b"from-payment-provider"
```There is a list of other settings you could set down below.
3. Include the notification View in your URLs:
```python
# urls.py
from django.conf.urls import include, urlurlpatterns = [
url('^girocheckout/', include('django_girosolution.urls')),
]
```## What do you need for django-giropay?
1. An merchant account for GiroCheckout
2. Django >= 2.2## Usage
### Minimal Checkout init example:
```python
from django_girosolution.wrappers import GirosolutionWrapper
girosolution_wrapper = GiropayWrapper()girosolution_transaction = girosolution_wrapper.start_transaction(
merchant_tx_id='first-test',
amount=1000, # 10 Euro
purpose='first test'
)
```## Copyright and license
Copyright 2021 Particulate Solutions GmbH, under [MIT license](https://github.com/ParticulateSolutions/django-giropay/blob/master/LICENSE).