Commit df1a2f6777709fbeefb5eab3b9819aa44ed8fd7a
1 parent
cda18aea3f
Exists in
master
penanganan saldo kurang
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
main.py
... | ... | @@ -104,10 +104,14 @@ def handleSms(sms): |
104 | 104 | if sms.text.find('Maaf, transaksi gagal') >= 0: |
105 | 105 | pushTopupStatus(LAST_REQUEST_ID, '40', sms.text) |
106 | 106 | return |
107 | - | |
107 | + | |
108 | 108 | elif sms.text.find('PIN yang Anda masukkan salah. Silahkan ulangi kembali') >= 0: |
109 | 109 | pushTopupStatus(LAST_REQUEST_ID, '91', sms.text) |
110 | 110 | return |
111 | + | |
112 | + elif sms.text.find('Maaf, saldo XL-Tunai anda tidak cukup') >= 0: | |
113 | + pushTopupStatus(LAST_REQUEST_ID, '40', sms.text) | |
114 | + return | |
111 | 115 | |
112 | 116 | elif sms.text.find('Maaf, layanan ini hanya untuk nomor tujuan prabayar XL') >= 0: |
113 | 117 | pushTopupStatus(LAST_REQUEST_ID, '14', sms.text) |