commit c5ed91b66e42f699d1668c360fd38424cae2c708
parent 9264887050d84d0d30d882fd0f0539ca202018e2
Author: Florian Dold <florian@dold.me>
Date: Mon, 1 Jun 2026 12:57:24 +0200
wallet-core: add missing amount in QRR SPC
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/packages/taler-util/src/types-taler-wallet.ts b/packages/taler-util/src/types-taler-wallet.ts
@@ -4017,6 +4017,7 @@ export interface TransferOptionUri {
export interface TransferOptionSwissQrBill {
type: "ch-qr-bill";
+ paytoUri: string;
qrReferenceNumber: string;
qrCodes: QrCodeSpec[];
}
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
@@ -4230,9 +4230,11 @@ async function fetchAccount(
case "CH_QR_BILL": {
const myPayto = addPaytoQueryParams(acct.payto_uri, {
"ch-qrr": opt.qr_reference_number,
+ amount: transferAmount,
});
options.push({
type: "ch-qr-bill",
+ paytoUri: myPayto,
qrReferenceNumber: opt.qr_reference_number,
qrCodes: getQrCodesForPayto(myPayto),
});