Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 28038af

Browse files
Merge pull request #1 from MultiSafepay/develop
Improved readme
2 parents cc9f45b + 4f035a9 commit 28038af

File tree

1 file changed

+51
-3
lines changed

1 file changed

+51
-3
lines changed

README.md

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,52 @@
1-
# multisafepay-python-wrapper
2-
Python wrapper for the MultiSafepay API
1+
<p align="center">
2+
<img src="https://www.multisafepay.com/img/multisafepaylogo.svg" width="400px" position="center">
3+
</p>
4+
# Python wrapper for the MultiSafepay API
5+
This wrapper simplifies working with the MultiSafepay API and allows you to integrate MultiSafepay within your Python application.
6+
## About MultiSafepay ##
7+
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.
8+
## Requirements
9+
- To use the wrapper you need a MultiSafepay account. You can create a test account on https://testmerchant.multisafepay.com/signup.
10+
- Python 3.6 or higher
11+
- Packages: requests
12+
## Installation
13+
Clone this git repository and make sure you meet the requirements, viinstallation through pip will be added in a future release.
14+
## Usage
15+
Setup the client for testing
16+
```python
17+
from multisafepay.client import Client
18+
msp_client = Client()
19+
msp_client.set_modus('TEST')
20+
msp_client.set_api_key('REPLACE WITH API KEY')
21+
```
22+
Creating a test order
23+
```
24+
# The following code will create a iDEAL order
25+
print(msp_client.order.create({
26+
"type": msp_client.ordertype.DIRECT,
27+
"order_id": "my-order-id-1",
28+
"gateway": msp_client.paymentmethod.KLARNA,
29+
"currency": "EUR",
30+
"amount": "1000",
31+
"description": "Test Order Description",
32+
"payment_options": {
33+
"notification_url": "https://www.example.com/client/notification?type=notification",
34+
"redirect_url": "https://www.example.com/client/notification?type=redirect",
35+
"cancel_url": "https://www.example.com/client/notification?type=cancel"
36+
},
37+
"customer": {
38+
"locale": "en_US"
39+
}
40+
}))
41+
```
42+
Click [here](https://github.com/MultiSafepay/multisafepay-python-wrapper/tree/master/multisafepay/examples) for more examples.
43+
## Support
44+
If you have any issues, problems or questions you can create an issue on this repository or contact us at <a href="mailto:[email protected]">[email protected]</a>.
345

4-
https://jira.multisafepay.com/browse/TECHP-716
46+
## Mistakes and improvements
47+
If you spot mistakes or want to contribute in improving this wrapper, feel free to [create pull requests](https://github.com/MultiSafepay/multisafepay-python-wrapper/pulls)!
48+
49+
## API Documentation
50+
[Click here](https://docs.multisafepay.com/api/) for the MultiSafepay API documentation.
51+
## License
52+
[MIT License](https://github.com/MultiSafepay/multisafepay-python-wrapper/blob/master/LICENSE)

0 commit comments

Comments
 (0)