Skip to content

Add headless APM Payment redirect mode#252

Merged
roshan-gorasia-cko merged 2 commits intomasterfrom
chore/headless-redirect-mode
Mar 30, 2026
Merged

Add headless APM Payment redirect mode#252
roshan-gorasia-cko merged 2 commits intomasterfrom
chore/headless-redirect-mode

Conversation

@roshan-gorasia-cko
Copy link
Copy Markdown
Contributor

Description

Solution

Demo

Checklist

  • I bumped the version of the project using yarn bump-version
  • I have checked the code for any potential issues
  • I tested my changes in the browser

Notes

Jira Issue

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “headless” mode for the APM web redirect step so integrators can skip the intermediate “Continue to payment” / Pay button UI and automatically launch the PSP redirect flow when the redirect view is shown.

Changes:

  • Introduces redirect.enableHeadlessMode option in the APM context/options (defaulting to false).
  • Updates the Redirect view to auto-trigger the redirect on mount and render a minimal loader UI in headless mode.
  • Documents the new redirect configuration in the APM UI system docs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/apm/views/Redirect.ts Adds headless-mode loader UI + auto-redirect on mount.
src/apm/index.ts Initializes redirect.enableHeadlessMode with a default and merges user config.
src/apm/Context.ts Extends APM flow configuration types with redirect.enableHeadlessMode.
docs/apm-ui-system.md Documents the new redirect option in the configuration example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@roshan-gorasia-cko roshan-gorasia-cko force-pushed the chore/headless-redirect-mode branch 3 times, most recently from 9b658c5 to 4e9698f Compare March 27, 2026 19:07
@roshan-gorasia-cko roshan-gorasia-cko force-pushed the chore/headless-redirect-mode branch from 4e9698f to 6c87beb Compare March 27, 2026 19:09
jakubjasinsky
jakubjasinsky previously approved these changes Mar 30, 2026
@roshan-gorasia-cko roshan-gorasia-cko merged commit 99d8e64 into master Mar 30, 2026
5 checks passed
@roshan-gorasia-cko roshan-gorasia-cko deleted the chore/headless-redirect-mode branch March 30, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants