Skip to content

Instantly share code, notes, and snippets.

@alexandervlpl
alexandervlpl / mollie-apiv2-example.py
Created Aug 10, 2018
Example: Python Mollie API v2 request (with multicurrency support)
View mollie-apiv2-example.py
import urllib2
import json
MOLLIE_API_KEY = "123"
# Construct a request:
payment_data = {
'amount': { 'currency': 'USD', 'value': '2.50'},
'description': 'something',
'redirectUrl': 'https://mysite.com/redirect',