Skip to content
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

Add support for 'payment-flow' query param for the web-sdk bridge #218

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

gregjopa
Copy link
Contributor

This PR adds support for the new payment-flow query parameter for the web-sdk bridge url.

@gregjopa gregjopa requested a review from a team as a code owner October 18, 2024 14:40
@@ -91,17 +91,31 @@ function validateWebSDKUrl({ pathname, query }) {
);
}
// check for extraneous parameters
Object.keys(query).forEach((param) => {
if (param !== "version" && param !== "origin") {
const validWebSDKBridgeParams = ["origin", "version", "payment-flow"];
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add 'debug' here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point @dtjones404! I'll send a follow up PR for adding support for the optional debug param.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dtjones404 here's the follow up PR to add support for the debug query param: #219

@gregjopa gregjopa merged commit b947425 into main Oct 21, 2024
2 checks passed
@gregjopa gregjopa deleted the add-query-param-for-v6-bridge branch October 21, 2024 14:14
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.

4 participants