Skip to content

Commit

Permalink
fix(demo): fix terminal for confirmed payment intent
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Mar 19, 2024
1 parent 35d064b commit b776408
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demo/angular/src/app/terminal/terminal.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ const happyPathItems: ITestItems [] = [
},
{
type: 'event',
name: TerminalEventsEnum.Completed,
name: TerminalEventsEnum.ConfirmedPaymentIntent,
},
{
type: 'event',
name: TerminalEventsEnum.CollectedPaymentIntent,
},
];

Expand Down Expand Up @@ -221,6 +225,8 @@ export class TerminalPage {
throw e;
});
await this.helper.updateItem(this.eventItems,'cancelCollect', true);
} else {
await StripeTerminal.confirmPaymentIntent();
}

this.listenerHandlers.forEach(handler => handler.remove());
Expand Down

0 comments on commit b776408

Please sign in to comment.