Skip to content

ParticulateSolutions/django-girosolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django GiroSolution

Implementation of GiroCheckout API. 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:

    pip install django-girosolution
  2. 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.

  3. Include the notification View in your URLs:

    # urls.py
    from django.conf.urls import include, url
    
    urlpatterns = [
        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:

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.

About

django girosolution wrapper for girocheckout

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages