JorrandeWit / django-oscar-mollie

Mollie Payment client for Django Oscar http://www.mollie.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Mollie Payment client for Django Oscar http://www.mollie.com

License:BSD 2-Clause "Simplified" License


Languages

Language:HTML 52.7%Language:Python 47.3%