diff options
Diffstat (limited to 'src/webex')
-rw-r--r-- | src/webex/messages.ts | 5 | ||||
-rw-r--r-- | src/webex/pages/pay.tsx | 2 | ||||
-rw-r--r-- | src/webex/wxApi.ts | 14 | ||||
-rw-r--r-- | src/webex/wxBackend.ts | 6 |
4 files changed, 1 insertions, 26 deletions
diff --git a/src/webex/messages.ts b/src/webex/messages.ts index 27d85a1f3..78a1a1fd0 100644 --- a/src/webex/messages.ts +++ b/src/webex/messages.ts @@ -69,10 +69,6 @@ export interface MessageMap { request: { proposalId: number; sessionId?: string }; response: walletTypes.ConfirmPayResult; }; - "check-pay": { - request: { proposalId: number }; - response: walletTypes.CheckPayResult; - }; "exchange-info": { request: { baseUrl: string }; response: dbTypes.ExchangeRecord; @@ -205,7 +201,6 @@ export interface MessageMap { request: { talerPayUri: string }; response: walletTypes.PreparePayResult; }; - "get-diagnostics": { request: { }; response: walletTypes.WalletDiagnostics; diff --git a/src/webex/pages/pay.tsx b/src/webex/pages/pay.tsx index c266f6d48..9041f5d1c 100644 --- a/src/webex/pages/pay.tsx +++ b/src/webex/pages/pay.tsx @@ -24,7 +24,7 @@ */ import * as i18n from "../../i18n"; -import { CheckPayResult, PreparePayResult } from "../../walletTypes"; +import { PreparePayResult } from "../../walletTypes"; import { renderAmount, ProgressButton, registerMountPage } from "../renderHtml"; import * as wxApi from "../wxApi"; diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 61dc2ca69..65c14ac48 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -29,13 +29,10 @@ import { DenominationRecord, ExchangeRecord, PreCoinRecord, - ProposalDownloadRecord, - PurchaseRecord, ReserveRecord, } from "../dbTypes"; import { BenchmarkResult, - CheckPayResult, ConfirmPayResult, ReserveCreationInfo, SenderWireInfos, @@ -45,10 +42,6 @@ import { WalletDiagnostics, } from "../walletTypes"; -import { - MerchantRefundPermission, -} from "../talerTypes"; - import { MessageMap, MessageType } from "./messages"; @@ -218,13 +211,6 @@ export function payback(coinPub: string): Promise<void> { } /** - * Check if payment is possible or already done. - */ -export function checkPay(proposalId: number): Promise<CheckPayResult> { - return callBackend("check-pay", { proposalId }); -} - -/** * Pay for a proposal. */ export function confirmPay(proposalId: number, sessionId: string | undefined): Promise<ConfirmPayResult> { diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 0cfaf2346..564ee24f0 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -132,12 +132,6 @@ async function handleMessage( detail.sessionId, ); } - case "check-pay": { - if (typeof detail.proposalId !== "number") { - throw Error("proposalId must be number"); - } - return needsWallet().checkPay(detail.proposalId); - } case "exchange-info": { if (!detail.baseUrl) { return Promise.resolve({ error: "bad url" }); |