Compare commits

..

3 Commits

9 changed files with 35 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func (ls *LocalHandlerService) GetHandler(accountService server.AccountServiceIn
ls.DbRs.AddLocalFunc("confirm_pin_change", ussdHandlers.ConfirmPinChange)
ls.DbRs.AddLocalFunc("quit_with_help", ussdHandlers.QuitWithHelp)
ls.DbRs.AddLocalFunc("fetch_custodial_balances", ussdHandlers.FetchCustodialBalances)
ls.DbRs.AddLocalFunc("get_transactions", ussdHandlers.GetTransactions)
return ussdHandlers, nil
}

View File

@ -1045,3 +1045,12 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte)
return res, nil
}
// GetTransactions retrieves the transactions from the API using the "PublicKey"
func (h *Handlers) GetTransactions(ctx context.Context, sym string, input []byte) (resource.Result, error) {
var res resource.Result
res.Content = "Transaction list"
return res, nil
}

View File

@ -0,0 +1 @@
Please enter your PIN to view statement:

View File

@ -0,0 +1,9 @@
LOAD authorize_account 6
MOUT back 0
MOUT quit 9
HALT
RELOAD authorize_account
CATCH incorrect_pin flag_incorrect_pin 1
INCMP _ 0
INCMP quit 9
INCMP transactions *

View File

@ -0,0 +1 @@
Tafadhali weka PIN yako kuona taarifa ya matumizi:

View File

@ -11,5 +11,6 @@ INCMP main 0
INCMP edit_profile 1
INCMP change_language 2
INCMP balances 3
INCMP check_statement 4
INCMP pin_management 5
INCMP address 6

View File

@ -0,0 +1 @@
{{.get_transactions}}

View File

@ -0,0 +1,11 @@
LOAD get_transactions 0
MAP get_transactions
MOUT back 0
MOUT quit 99
MNEXT next 11
MPREV prev 22
HALT
INCMP _ 0
INCMP quit 99
INCMP > 11
INCMP < 22

View File

@ -0,0 +1 @@
{{.get_transactions}}