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

Commit d98ff88

Browse files
Changed sample app code
1 parent adeb437 commit d98ff88

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

app.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
from multisafepay.client import Client
22

33
msp_client = Client()
4+
#fill in TEST API key here
45
msp_client.set_api_key('')
56

6-
data = {}
7-
print(msp_client.order.create(data))
7+
print(msp_client.order.create({
8+
"type": "redirect",
9+
"order_id": "my-order-id-1",
10+
"gateway": msp_client.paymentmethod.EPS,
11+
"currency": "EUR",
12+
"amount": "1000",
13+
"description": "Test Order Description",
14+
"payment_options": {
15+
"notification_url": "https://www.example.com/client/notification?type=notification",
16+
"redirect_url": "https://www.example.com/client/notification?type=redirect",
17+
"cancel_url": "https://www.example.com/client/notification?type=cancel"
18+
},
19+
"customer": {
20+
"locale": "en_US"
21+
}
22+
}))
823

24+
print(msp_client.gateways.gateways(country='NL',currency='100'))

0 commit comments

Comments
 (0)