View Issue Details

IDProjectCategoryView StatusLast Update
0011798Talerwallet-corepublic2026-11-04 13:40
ReporterMarcS Assigned ToResolution deadline
ImplementerFlorian Dold ReviewerMarcS  
Release signed byFlorian Dold Deployed byMarcS  
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)4Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityhave not tried
Status integratingResolutionopen 
Product Versiongit (master) 
Target Version1.7 
Summary0011798: checkPayForTemplate should return amountAvailable
DescriptionWhen the user scans a pay-template talerURI, the amount can be nil, which means that the user can type in the amount to pay.
For this, we should show the user how much money they have available.
Instead of creating a new call (like getMaxPeerPushDebitAmount), wallet-core should always (mandatory) return "amountAvailable" (or "maxAmountAvailable") directly from checkPayForTemplate - not only if the requested amount is nil. If a fixed amount is set, wallets can immediately compare it with amountAvailable and show whether the payment is possible or not. If the user can type in an amount, wallets can limit it to amountAvailable.

Future: merchants can return multiple accepted currencies (array). The user first needs to choose an exchange, then type in the amount. Thus amountAvailable also should become an array. Consider using scopeIdx (0011651)
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0011651 feedbackMarcS wallet-core should tag amounts with scopeIdx 

Activities

Florian Dold

2026-11-04 08:53

manager   ~0030228

## taler-typescript-core

commit a4b084464d5895d6694d56f4fd0461e2c23e3039 (HEAD -> master)
Author: Florian Dold <dold@taler.net>
Date: Wed Nov 4 09:28:39 2026 +0100

    wallet-core: return scoped balances for payment templates
    
    Issue: https://bugs.taler.net/n/11798


## taler-docs

commit 763e3f5469c77e0b21401590143192e2963fb41e (HEAD -> master, origin/master, origin/HEAD)
Author: Florian Dold <dold@taler.net>
Date: Wed Nov 4 09:28:39 2026 +0100

    wallet API: document payment template balance snapshots
    
    Issue: https://bugs.taler.net/n/11798

MarcS

2026-11-04 13:40

developer   ~0030254

Looks good, now needs to be used from the wallet(s).

Issue History

Date ModifiedUsernameFieldChange
2026-09-16 11:15MarcSNew Issue
2026-09-16 11:16MarcSRelationship addedrelated to 0011651
2026-09-24 10:28Christian GrothoffAssigned To => Florian Dold
2026-09-24 10:28Christian GrothoffSeverityminor => tweak
2026-09-24 10:28Christian GrothoffStatusnew => implementing
2026-09-24 10:28Christian GrothoffProduct Version1.7 => git (master)
2026-09-24 10:28Christian GrothoffTarget Version => 1.7
2026-11-03 13:52Christian GrothoffImplementer => Florian Dold
2026-11-03 13:52Christian GrothoffReviewer => MarcS
2026-11-03 13:52Christian GrothoffRelease signed by => Florian Dold
2026-11-03 13:52Christian GrothoffDeployed by => MarcS
2026-11-03 13:52Christian GrothoffEstimated effort (hours) => 4
2026-11-04 08:53Florian DoldNote Added: 0030228
2026-11-04 08:53Florian DoldAssigned ToFlorian Dold =>
2026-11-04 08:53Florian DoldStatusimplementing => reviewing
2026-11-04 13:40MarcSStatusreviewing => integrating
2026-11-04 13:40MarcSNote Added: 0030254