django-oscar-mollie

Mollie payment module for django-oscar


Keywords
Payment, django, django-oscar, ecommerce, ideal, mollie
License
BSD-3-Clause
Install
pip install django-oscar-mollie==0.1

Documentation

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')),

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.