diff options
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-peer.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts b/packages/taler-wallet-core/src/operations/pay-peer.ts index 6e5f1b89b..ff01342f8 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer.ts @@ -1425,9 +1425,16 @@ export async function checkPeerPullPaymentInitiation( throw Error("no exchange found for initiating a peer pull payment"); } + const wi = await getExchangeWithdrawalInfo( + ws, + exchangeUrl, + Amounts.parseOrThrow(req.amount), + undefined, + ); + return { exchangeBaseUrl: exchangeUrl, - amountEffective: req.amount, + amountEffective: wi.withdrawalAmountEffective, amountRaw: req.amount, }; } |