Implementation of GiroCheckout API. The following doc explain how to set up the GiroCheckout API for django.
There are just two steps needed to install django-giropay:
-
Install django-girosolution to your virtual env:
pip install django-girosolution
-
Configure your django installation with the following lines:
# 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.
-
Include the notification View in your URLs:
# urls.py from django.conf.urls import include, url urlpatterns = [ url('^girocheckout/', include('django_girosolution.urls')), ]
- An merchant account for GiroCheckout
- Django >= 2.2
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 2021 Particulate Solutions GmbH, under MIT license.