aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/withdraw.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-06-06 09:24:50 -0300
committerSebastian <sebasjm@gmail.com>2024-06-06 10:41:22 -0300
commit920595aa3864615c07aba0ecfc233acf05f3e3e6 (patch)
treedab4f0d64ef57902996d98d46ea3dccd59fb4659 /packages/taler-wallet-core/src/withdraw.ts
parent59b4e069c8f26bee6e6f9918a63cfb7051c5f529 (diff)
downloadwallet-core-920595aa3864615c07aba0ecfc233acf05f3e3e6.tar.xz
update bank api with card fee
Diffstat (limited to 'packages/taler-wallet-core/src/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/withdraw.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
index b2cecea16..24e2861e1 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -862,12 +862,17 @@ export async function getBankWithdrawalInfo(
if (status.amount) {
amount = Amounts.parseOrThrow(status.amount);
}
+ let wireFee: AmountJson | undefined;
+ if (status.card_fees) {
+ wireFee = Amounts.parseOrThrow(status.card_fees);
+ }
return {
operationId: uriResult.withdrawalOperationId,
apiBaseUrl: uriResult.bankIntegrationApiBaseUrl,
currency: config.currency,
amount,
+ wireFee,
confirmTransferUrl: status.confirm_transfer_url,
senderWire: status.sender_wire,
suggestedExchange: status.suggested_exchange,