Skip to content

fourdigits/django-oscar-mollie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mollie Oscar

Mollie API client for Django Oscar

Payment gateway integration between Mollie API client and Django Oscar.

PyPI version

Installation

The easiest way to install is with pip.

$ pip install django-oscar-mollie

Getting Started

You need to set your Mollie API Key to connect to Mollie.

# settings.py
MOLLIE_API_KEY = 'secret-key-123'

Also, you need to define a mapping from the four possible Mollie responses to your Oscar order statuses.

# settings.py
MOLLIE_STATUS_MAPPING = {
    'Paid': ORDER_STATUS_PAID,
    'Pending': 'Pending Payment',
    'Open': 'Pending Payment',
    'Cancelled': 'Cancelled'
}

You need to make sure your webhook URI is accessible. To do so, include the following into your root URLs conf (you are free to choose whatever regex you may like):

url(r'^mollie/', include('mollie_oscar.urls', namespace='mollie_oscar')),

HTTPS

If your site runs on HTTPS, turn this on by enabling the following setting:

OSCAR_MOLLIE_HTTPS = True

Examples

Please visit the sandbox to see how to integrate Mollie into your Oscar application.

Under Construction

The following needs to be added to this application.

  • Support Refunding payments

License

BSD (Berkeley Software Distribution) License. Copyright (c) 2017, Jorran de Wit.

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.5%
  • Python 47.5%