Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

MultiSafepay Payments Gateway integration for Django

Project description


Payment gateway integration for MultiSafepay. MultiSafepay is a large payment gateway based in The Netherlands that supports many international payment methods.

MultiSafepay offers two methods for payments, see

  • Fast checkout requires customers to create a MultiSafePay account. You only have to pay a transaction fee, but the account system is not very user-friendly.
  • Connect provides direct payments. As a merchant, you have to pay a monthly subscription.


Install via pip:

pip install django-multisafepay


In the MultiSafepay merchant site settings, add a new website. Use those settings to configure the application:

The account ID, provided by MultiSafepay.
The site ID, found in the MultiSafepay website settings panel.
The site security code, found in the MultiSafepay website settings panel.
Whether or not to run in testing mode. Defaults to True.

Add to

urlpatterns += patterns('',
    url(r'^api/multisafepay/', include('django_multisafepay.urls')),

As recommendation, temporary log all events from this package as well:

    # ...

    'handlers': {
        # ...

        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
    'loggers': {
        # ...

        'django_multisafepay': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': True,


Creating a new payment transaction:

from django_multisafepay.client import MultiSafepayClient
from import Transaction, Customer
from django.shortcuts import redirect

def pay(request):

    client = MultiSafepayClient()
    reply = client.start_checkout(
        transaction = Transaction(

        customer = Customer(


    return redirect(reply.payment_url)
  • For the Fast Checkout, use the start_checkout() method.
  • For the Connect method, use the redirect_transaction() method.

Both methods return an URL to redirect the user to.

Fetching status:

client = MultiSafepayClient()
statusreply = client.status(self.transaction_id)


  • checkout-shopping-cart
  • custom-fields
  • shipping
  • iDEAL issuers request (simple to add)

Project details

Release history Release notifications

History Node


This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_multisafepay-1.0-py2-none-any.whl (25.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 May 27, 2015
django-multisafepay-1.0.tar.gz (15.8 kB) Copy SHA256 hash SHA256 Source None May 27, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page