diff options
author | Florian Dold <florian@dold.me> | 2022-06-21 12:40:12 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-07-08 11:08:30 +0200 |
commit | b214934b75418d0d01c9556577d9594f1db5a319 (patch) | |
tree | d8ec18217a16e6b89859b30003a4a825fc63a66e /packages/taler-wallet-core/src/wallet.ts | |
parent | 05cdbfb534bb194dbe6bdf049113ebea8139234f (diff) | |
download | wallet-core-b214934b75418d0d01c9556577d9594f1db5a319.tar.xz |
wallet-core: P2P push payments (still incomplete)
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index c7b94138e..d072f9e96 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -47,6 +47,7 @@ import { codecForGetWithdrawalDetailsForAmountRequest, codecForGetWithdrawalDetailsForUri, codecForImportDbRequest, + codecForInitiatePeerPushPaymentRequest, codecForIntegrationTestArgs, codecForListKnownBankAccounts, codecForPrepareDepositRequest, @@ -143,6 +144,7 @@ import { processDownloadProposal, processPurchasePay, } from "./operations/pay.js"; +import { initiatePeerToPeerPush } from "./operations/peer-to-peer.js"; import { getPendingOperations } from "./operations/pending.js"; import { createRecoupGroup, processRecoupGroup } from "./operations/recoup.js"; import { @@ -1049,6 +1051,10 @@ async function dispatchRequestInternal( await importDb(ws.db.idbHandle(), req.dump); return []; } + case "initiatePeerPushPayment": { + const req = codecForInitiatePeerPushPaymentRequest().decode(payload); + return await initiatePeerToPeerPush(ws, req); + } } throw TalerError.fromDetail( TalerErrorCode.WALLET_CORE_API_OPERATION_UNKNOWN, |