diff options
| author | Sebastian <sebasjm@gmail.com> | 2022-09-16 16:03:58 -0300 |
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2022-09-16 16:03:58 -0300 |
| commit | 59d235e8d29159bc8caccf8bee6a2bca8b0b90dc (patch) | |
| tree | 551261c860b1989dc0b1a05ddcfd53d20e561626 /packages/taler-wallet-webextension/src/cta/Payment/index.ts | |
| parent | 6ddb2de84245ae3914c92b2b2eb7399e7f04500e (diff) | |
redirect after success #7357
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment/index.ts')
| -rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/index.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/index.ts b/packages/taler-wallet-webextension/src/cta/Payment/index.ts index b20f91b0c..1dd84fd7e 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/index.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/index.ts @@ -35,6 +35,7 @@ export interface Props { talerPayUri?: string; goToWalletManualWithdraw: (amount?: string) => Promise<void>; cancel: () => Promise<void>; + onSuccess: (tx: string) => Promise<void>; } export type State = @@ -43,7 +44,6 @@ export type State = | State.Ready | State.NoEnoughBalance | State.NoBalanceForCurrency - | State.Completed | State.Confirmed; export namespace State { @@ -86,13 +86,6 @@ export namespace State { balance: AmountJson; } - export interface Completed extends BaseInfo { - status: "completed"; - payStatus: PreparePayResult; - payResult: ConfirmPayResult; - paymentError?: TalerError; - balance: AmountJson; - } } const viewMapping: StateViewMap<State> = { @@ -101,7 +94,6 @@ const viewMapping: StateViewMap<State> = { "no-balance-for-currency": BaseView, "no-enough-balance": BaseView, confirmed: BaseView, - completed: BaseView, ready: BaseView, }; |
