Skip to content
Python wrapper for the MultiSafepay API
Python
Branch: master
Clone or download
Solaiman-MultiSafepay Update README.md
Changed mail address
Latest commit 1564532 Aug 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
multisafepay - Added Ordertypes Jun 20, 2019
.gitignore - Added option to set LIVE or TEST API mode Jun 18, 2019
LICENSE Initial commit Jun 18, 2019
README.md Update README.md Aug 21, 2019

README.md

Python wrapper for the MultiSafepay API

This wrapper simplifies working with the MultiSafepay API and allows you to integrate MultiSafepay within your Python application.

About MultiSafepay

MultiSafepay is a collecting payment service provider which means we take care of the agreements, technical details and payment collection required for each payment method. You can start selling online today and manage all your transactions from one place.

Requirements

Installation

Clone this git repository and make sure you meet the requirements, installation through pip will be added in a future release.

Usage

Setup the client for testing

from multisafepay.client import Client
msp_client = Client()
msp_client.set_modus('TEST')
msp_client.set_api_key('REPLACE WITH API KEY')

Creating a test order

# The following code will create a iDEAL order
print(msp_client.order.create({
    "type": msp_client.ordertype.REDIRECT,
    "order_id": "my-order-id-1",
    "gateway": msp_client.paymentmethod.IDEAL,
    "currency": "EUR",
    "amount": "1000",
    "description": "Test Order Description",
    "payment_options": {
        "notification_url": "https://www.example.com/client/notification?type=notification",
        "redirect_url": "https://www.example.com/client/notification?type=redirect",
        "cancel_url": "https://www.example.com/client/notification?type=cancel"
    },
    "customer": {
        "locale": "en_US"
    }
}))

Click here for more examples.

Support

If you have any issues, problems or questions you can create an issue on this repository or contact us at integration@multisafepay.com

Mistakes and improvements

If you spot mistakes or want to contribute in improving this wrapper, feel free to create pull requests

API Documentation

Click here for the MultiSafepay API documentation.

License

MIT License

You can’t perform that action at this time.