Skip to content

feat(payment): Refactor code in order to use newly added skipRedirect… #2900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bc-sebastianszafraniec
Copy link
Contributor

@bc-sebastianszafraniec bc-sebastianszafraniec commented Jun 18, 2025

…ConfirmationAlert

What/Why?

In this PR the PaymentMethod interface and mocks are updated to meet new skipRedirectConfirmationAlert property requirement.
skipRedirectConfirmationAlert is boolean and is not optional.

Checkout-js part bigcommerce/checkout-js#2374 <-- more context in PR description
BCAPP part https://github.com/bigcommerce/bigcommerce/pull/63372

Testing / Proof

Tested manually

@bigcommerce/team-checkout @bigcommerce/team-payments

@bcsnyk
Copy link
Contributor

bcsnyk commented Jun 18, 2025

🎉 Snyk checks have passed. No issues have been found so far.

code/snyk check is complete. No issues have been found. (View Details)

@@ -14,4 +14,5 @@ export default interface PaymentMethod<T = any> {
initializationData?: T;
returnUrl?: string;
initializationStrategy?: InitializationStrategy;
skipRedirectConfirmationAlert: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this interface is being used a lot in checkout-js.
Did you test this version of SDK in checkout-js?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, and I will also test it with all affected payment providers in checkout-js PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants