-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathextra.py
More file actions
36 lines (31 loc) · 900 Bytes
/
extra.py
File metadata and controls
36 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import requests
import json
url = 'https://api.oxapay.com/merchants/request/whitelabel'
data = {
'merchant': 'Z699KV-HVW8CT-P2HN9C-3EG0PE',
'amount': 100,
'currency': 'LTC',
'payCurrency': 'LTC',
'network': 'bep20',
'lifeTime': 90,
'feePaidByPayer': 1,
'underPaidCover': 10,
'callbackUrl': 'https://example.com/callback',
'description': 'Order #12345',
'orderId': '12345',
'email': 'payer@example.com'
}
url3 = "https://api.oxapay.com/api/networks"
datia = {
'merchant': 'Z699KV-HVW8CT-P2HN9C-3EG0PE'
}
response1 = requests.post(url3, data=json.dumps(datia))
result0 = response1.json()
print(result0)
ur0l = "https://api.oxapay.com/merchants/allowedCoins"
response = requests.post(ur0l, data=json.dumps(data))
result9 = response.json()
print(result9)
response = requests.post(url, data=json.dumps(data))
result = response.json()
print(result)