Skip to content

Instantly share code, notes, and snippets.

@alexandervlpl
alexandervlpl / mollie-apiv2-example.py
Created August 10, 2018 13:57
Example: Python Mollie API v2 request (with multicurrency support)
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',