diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/state.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/state.ts b/packages/taler-wallet-webextension/src/cta/Payment/state.ts index 4468438d1..d171ecbac 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/state.ts @@ -141,25 +141,11 @@ export function useComponentState({ } async function doPayment(): Promise<void> { - // if (payStatus.status !== "payment-possible") { - // throw TalerError.fromUncheckedDetail({ - // code: TalerErrorCode.GENERIC_CLIENT_INTERNAL_ERROR, - // when: new Date().toISOString(), - // hint: `payment is not possible: ${payStatus.status}`, - // }); - // } const res = await api.wallet.call(WalletApiOperation.ConfirmPay, { proposalId: payStatus.proposalId, }); // handle confirm pay if (res.type !== ConfirmPayResultType.Done) { - // throw new BackgroundError("Could not confirm payment", res.lastError) - // // throw TalerError.fromUncheckedDetail({ - // // code: TalerErrorCode.GENERIC_CLIENT_INTERNAL_ERROR, - // // when: new Date().toISOString(), - // // hint: `could not confirm payment`, - // // payResult: res, - // // }); onSuccess(res.transactionId); return; } |