taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 75298771d4fd07e5c57cb08480e805469ebf511a
parent d6f82b421eab6ad383a705353ae2159c1ca5cc94
Author: Florian Dold <florian@dold.me>
Date:   Fri, 10 Jul 2026 15:54:37 +0200

wallet-core: return choiceIndex in transaction info

Diffstat:
Mpackages/taler-util/src/types-taler-wallet-transactions.ts | 5+++++
Mpackages/taler-wallet-core/src/pay-merchant.ts | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/packages/taler-util/src/types-taler-wallet-transactions.ts b/packages/taler-util/src/types-taler-wallet-transactions.ts @@ -763,6 +763,11 @@ export interface TransactionPayment extends TransactionCommon { * this is the transaction ID of the original payment. */ repurchaseTransactionId?: TransactionIdStr; + + /** + * If applicable, the choice that the user selected. + */ + choiceIndex?: number; } export interface OrderShortInfo { diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts @@ -288,6 +288,7 @@ export class PayMerchantTransactionContext implements TransactionContext { info: undefined, contractTerms: undefined, refundQueryActive: false, + choiceIndex: purchaseRec.choiceIndex, }; }