-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMoMoSystem.py
More file actions
86 lines (86 loc) · 2.97 KB
/
Copy pathMoMoSystem.py
File metadata and controls
86 lines (86 loc) · 2.97 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#User
dial = input("Enter MoMo dialer: ")
MTNphone_number = "0782440907"
Airtelphone_number = "0755440179"
if dial == "*185#":
print("1. Send Money\n" "2. Withdraw Money")
else:
print("UNKOWN APPLICATION")
exit()
choice = input("Select Choice: ")
if choice == "1":
print("Send Money")
print("1. MTN User")
print("2. Airtel User")
user = input("Select Mobile user: ")
if user == "1":
MTN_number = input("Enter MTN Number that that you are sending to: ")
if MTN_number == MTNphone_number:
Amount = int(input("Enter Amount: "))
if Amount >= 500:
pin = int(input("Enter your MoMo PIN to contiue: "))
if pin > 2021:
print(str(Amount) + " has been sent to " + str(MTNphone_number))
else:
print("Wrong PIN please check your PIN Again")
exit()
else:
print("Please enter Amount above 500/=")
exit()
else:
print("Wrong Number, Please check number again!")
exit()
elif user == "2":
Airtel_number = input("Enter Airtel Number that that you are sending to: ")
if Airtel_number == Airtelphone_number:
Amount = int(input("Enter Amount: "))
if Amount >= 500:
pin = int(input("Enter your Airtel Money PIN to contiue: "))
if pin > 256:
print(str(Amount) + " has been sent to " + str(Airtelphone_number))
else:
print("Wrong PIN please check your PIN Again")
exit()
else:
print("Please enter Amount above 500/=")
exit()
else:
print("Wrong Number, Please check number again!")
exit()
else:
print("UNKOWN APPLICATION")
exit()
elif choice == "2":
print("Withdraw Money")
print("1. MTN User")
print("2. Airtel User")
user = input("Select Mobile user: ")
if user == "1":
amount = int(input("Enter Amount: "))
if amount >= 500:
pin = int(input("Enter your MoMo PIN to contiue: "))
if pin >= 2021:
print(str(amount) + " has been withdrawn!")
else:
print("Wrong PIN please check your PIN Again")
exit()
else:
print("Please enter Amount above 500/=")
exit()
elif user == "2":
amount = int(input("Enter Amount: "))
if amount >= 500:
pin = int(input("Enter your Airtel Money PIN to contiue: "))
if pin >= 256:
print(str(amount) + " has been withdrawn!")
else:
print("Wrong PIN please check your PIN Again")
exit()
else:
print("Please enter Amount above 500/=")
exit()
else:
print("Please select an Option to continue")
exit()
else:
print("UNKOWN APPLICATION")