aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/transactions.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-02 13:24:51 +0200
committerFlorian Dold <florian@dold.me>2023-05-02 13:24:51 +0200
commit23fca6d8677a1e88dad426691fbe1033595f16a3 (patch)
tree11e68bb93df085d10e12586d47d6c8157211bc06 /packages/taler-wallet-core/src/operations/transactions.ts
parent16d30adf0d57f6d954230c437e56e8a8700ef2ae (diff)
downloadwallet-core-23fca6d8677a1e88dad426691fbe1033595f16a3.tar.xz
wallet-core: report pay-merchant DD37 state
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index 02b0b56ba..c122bb651 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -88,6 +88,7 @@ import {
import { getExchangeDetails } from "./exchanges.js";
import {
abortPay,
+ computePayMerchantTransactionState,
expectProposalDownload,
extractContractData,
processPurchasePay,
@@ -1030,7 +1031,7 @@ async function buildTransactionForPurchase(
return {
type: TransactionType.Payment,
- txState: mkTxStateUnknown(),
+ txState: computePayMerchantTransactionState(purchaseRecord),
amountRaw: Amounts.stringify(contractData.amount),
amountEffective: Amounts.stringify(purchaseRecord.payInfo.totalPayCost),
totalRefundRaw: Amounts.stringify(totalRefund.raw),