Mollie API client for Django Oscar
Payment gateway integration between Mollie API client and Django Oscar.
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')),
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.