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

refactor(payment-link): use shouldRemoveBeforeUnloadEvents flag for handling removal of beforeunload events through SDK #7072

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

Conversation

kashif-m
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR enables a flag which enables HyperSwitch SDK to handle removal of beforeunload events based on it's consumption by the integrating merchants.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

This PR enables handling of removal of beforeunload events once checkout form is submitted by the user. Helps keep a clean user experience.

How did you test it?

Tested locally using payment links.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

…andling removal of beforeunload events through SDK
@kashif-m kashif-m self-assigned this Jan 20, 2025
@kashif-m kashif-m requested a review from a team as a code owner January 20, 2025 09:38
Copy link

semanticdiff-com bot commented Jan 20, 2025

Copy link
Contributor

@hrithikesh026 hrithikesh026 left a comment

Choose a reason for hiding this comment

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

No core changes

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

Successfully merging this pull request may close these issues.

[INTEGRATION] update payment link's integration to handle beforeunload events
3 participants