add a CATCH for low amounts and API errors
This commit is contained in:
parent
3108cb2f22
commit
bfef77e20e
@ -10,6 +10,9 @@ INCMP > 88
|
||||
INCMP < 98
|
||||
INCMP _ 0
|
||||
INCMP quit 99
|
||||
LOAD get_mpesa_max_limit 0
|
||||
LOAD get_mpesa_max_limit 89
|
||||
RELOAD get_mpesa_max_limit
|
||||
CATCH . flag_incorrect_voucher 1
|
||||
CATCH low_withdraw_mpesa_amount flag_low_swap_amount 1
|
||||
CATCH low_withdraw_mpesa_amount flag_api_call_error 1
|
||||
INCMP mpesa_max_limit *
|
||||
|
||||
1
services/registration/low_withdraw_mpesa_amount
Normal file
1
services/registration/low_withdraw_mpesa_amount
Normal file
@ -0,0 +1 @@
|
||||
Available amount {{.get_mpesa_max_limit}} is too low, please choose a different voucher:
|
||||
6
services/registration/low_withdraw_mpesa_amount.vis
Normal file
6
services/registration/low_withdraw_mpesa_amount.vis
Normal file
@ -0,0 +1,6 @@
|
||||
MAP get_mpesa_max_limit
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP _ 0
|
||||
INCMP quit 9
|
||||
1
services/registration/low_withdraw_mpesa_amount_swa
Normal file
1
services/registration/low_withdraw_mpesa_amount_swa
Normal file
@ -0,0 +1 @@
|
||||
Kiasi kinachopatikana {{.get_mpesa_max_limit}} ni cha chini sana, tafadhali chagua sarafu tofauti:
|
||||
Loading…
Reference in New Issue
Block a user