View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011798 | Taler | wallet-core | public | 2026-09-16 13:15 | 2026-09-16 13:16 |
| Reporter | MarcS | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Product Version | 1.7 | ||||
| Summary | 0011798: checkPayForTemplate should return amountAvailable | ||||
| Description | When 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) | ||||
| Tags | No tags attached. | ||||