diff options
| author | Sebastian <sebasjm@gmail.com> | 2023-07-03 14:01:23 -0300 |
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2023-07-03 14:01:23 -0300 |
| commit | d98f048fd65c46cd774eabdef8599efb75153ac3 (patch) | |
| tree | 2eb01beff87efc6eba97cd46aa56d9c1038f7e1d /packages/taler-wallet-webextension/src/cta/Payment/state.ts | |
| parent | f407ab202317c188085cce4df90c3e24da3d4e31 (diff) | |
fix 7741: add sessionid
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment/state.ts')
| -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; } |
