-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.py
64 lines (59 loc) · 1.55 KB
/
example.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# from chimopy.payout.pay import Pay
from chimopy.mobile.transact import Transaction
from chimopy.info import Info
from chimopy.accounts import Account, SubAccount
pay_array_of_objects = [
{
"email": "[email protected]",
"valueInUSD": 1
},
{
"twitter": "@TWITTERNAME",
"valueInUSD": 1
}
]
bank_payout = [
{
"countryToSend": "Kenya",
"account_bank": "044",
"account_number": "0690000032",
"valueInUSD": 10,
"reference": "",
"fullname" : "John Doe"
}
]
airtime_payload = [
{
"countryToSend": "Kenya",
"phoneNumber": "+254712345678",
"valueInUSD": "5"
},
{
"countryToSend": "Kenya",
"phoneNumber": "+254787654321",
"valueInUSD": "5"
}
]
momos = [
{
"countryToSend": "Kenya",
"phoneNumber": "+254712345678",
"valueInUSD": 3,
"reference": "",
"momoCode": "MPS"
}
]
key='66561c9cf6c6a7b1f0343c3b9a30cfc01aabe533ee093c73c8e9523a988b138f',
url='https://chimoney-backend-api-sandbox.onrender.com'
# obj = Pay(
# api_key, api_url
# )
info = Account('66561c9cf6c6a7b1f0343c3b9a30cfc01aabe533ee093c73c8e9523a988b138f', 'https://chimoney-backend-api-sandbox.onrender.com')
# response = obj.chimoney(
# pay_array_of_objects
# )
response = info.delete_transaction(
chi_ref='12314243',
sub_account='123123'
)
print(response)