forked from urdt/ussd
view a selected voucher and verify the PIN
This commit is contained in:
@@ -4,6 +4,3 @@ MOUT back 0
|
||||
HALT
|
||||
INCMP _ 0
|
||||
INCMP select_voucher 1
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -12,5 +12,5 @@ flag,flag_invalid_amount,18,this is set when the given transaction amount is inv
|
||||
flag,flag_incorrect_pin,19,this is set when the provided PIN is invalid or does not match the current account's PIN
|
||||
flag,flag_valid_pin,20,this is set when the given PIN is valid
|
||||
flag,flag_allow_update,21,this is set to allow a user to update their profile data
|
||||
flag,flag_single_edit,22,this is set to allow a user to edit a single profile item such as year of birth
|
||||
flag,flag_incorrect_voucher,22,this is set when the selected voucher is invalid
|
||||
flag,flag_incorrect_date_format,23,this is set when the given year of birth is invalid
|
||||
|
||||
|
@@ -1,11 +1,15 @@
|
||||
LOAD get_vouchers 0
|
||||
MAP get_vouchers
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
MOUT quit 00
|
||||
MNEXT next 11
|
||||
MPREV prev 22
|
||||
HALT
|
||||
LOAD view_voucher 80
|
||||
RELOAD view_voucher
|
||||
CATCH . flag_incorrect_voucher 1
|
||||
INCMP _ 0
|
||||
INCMP quit 9
|
||||
INCMP > 11
|
||||
INCMP < 22
|
||||
INCMP view_voucher *
|
||||
|
||||
2
services/registration/view_voucher
Normal file
2
services/registration/view_voucher
Normal file
@@ -0,0 +1,2 @@
|
||||
Enter PIN to confirm selection:
|
||||
{{.view_voucher}}
|
||||
11
services/registration/view_voucher.vis
Normal file
11
services/registration/view_voucher.vis
Normal file
@@ -0,0 +1,11 @@
|
||||
RELOAD view_voucher
|
||||
MAP view_voucher
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
LOAD authorize_account 6
|
||||
HALT
|
||||
RELOAD authorize_account
|
||||
CATCH incorrect_pin flag_incorrect_pin 1
|
||||
INCMP _ 0
|
||||
INCMP quit 9
|
||||
INCMP voucher_set *
|
||||
2
services/registration/view_voucher_swa
Normal file
2
services/registration/view_voucher_swa
Normal file
@@ -0,0 +1,2 @@
|
||||
Weka PIN ili kuthibitisha chaguo:
|
||||
{{.view_voucher}}
|
||||
1
services/registration/voucher_set
Normal file
1
services/registration/voucher_set
Normal file
@@ -0,0 +1 @@
|
||||
Success! symbol is now your active voucher.
|
||||
5
services/registration/voucher_set.vis
Normal file
5
services/registration/voucher_set.vis
Normal file
@@ -0,0 +1,5 @@
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP ^ 0
|
||||
INCMP quit 9
|
||||
1
services/registration/voucher_set_swa
Normal file
1
services/registration/voucher_set_swa
Normal file
@@ -0,0 +1 @@
|
||||
Hongera! symbol ni Sarafu inayotumika sasa.
|
||||
Reference in New Issue
Block a user