display the default asset during the Mpesa topup

This commit is contained in:
Alfred Kamanda 2026-02-17 13:36:38 +03:00
parent c50c53c758
commit a346adb8f9
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -525,7 +525,7 @@ func (h *MenuHandlers) SendMpesaMinLimit(ctx context.Context, sym string, input
kshFormatted, _ := store.TruncateDecimalString(ksh, 0) kshFormatted, _ := store.TruncateDecimalString(ksh, 0)
res.Content = l.Get( res.Content = l.Get(
"Enter the amount of Mpesa to send: (Minimum %s Ksh)\n", "Enter the amount of credit to receive: (Minimum %s Ksh)\n",
kshFormatted, kshFormatted,
) )
@ -594,9 +594,11 @@ func (h *MenuHandlers) SendMpesaPreview(ctx context.Context, sym string, input [
estimateStr := fmt.Sprintf("%f", estimateValue) estimateStr := fmt.Sprintf("%f", estimateValue)
estimateFormatted, _ := store.TruncateDecimalString(estimateStr, 2) estimateFormatted, _ := store.TruncateDecimalString(estimateStr, 2)
defaultAsset := config.DefaultMpesaAsset()
res.Content = l.Get( res.Content = l.Get(
"You will get a prompt for your M-Pesa PIN shortly to send %s ksh and receive ~ %s cUSD", "You will get a prompt for your M-Pesa PIN shortly to send %s ksh and receive ~ %s %s",
inputStr, estimateFormatted, inputStr, estimateFormatted, defaultAsset,
) )
return res, nil return res, nil