Payment gateway integration between Mollie API client and Django Oscar.
The easiest way to install is with pip.
$ pip install django-oscar-mollie
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')),
If your site runs on HTTPS, turn this on by enabling the following setting:
OSCAR_MOLLIE_HTTPS = True
Please visit the sandbox to see how to integrate Mollie into your Oscar application.
The following needs to be added to this application.
- Support Refunding payments
BSD (Berkeley Software Distribution) License. Copyright (c) 2017, Jorran de Wit.