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

feat(web): use Stripe checkout instead of web elements #6544

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Sep 20, 2024

What changed? Why was the change needed?

Detailed description in related EE PR: https://github.com/novuhq/packages-enterprise/pull/219

@ChmaraX ChmaraX requested a review from a team as a code owner September 20, 2024 13:59
Copy link

linear bot commented Sep 20, 2024

Comment on lines +43 to +54
const checkoutOnSuccess = (data) => {
if (isStripeCheckoutEnabled) {
window.location.href = data.sessionUrl;
} else {
if (upgradeOpen) {
return;
}

setIntentSecret(data.clientSecret);
setUpgradeOpen(true);
}
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All these conditional stuff will get cleaned up when the FF will be removed.

Copy link

LaunchDarkly flag references

🔍 1 flag added or modified

Name Key Aliases found Info
IS_STRIPE_CHECKOUT_ENABLED IS_STRIPE_CHECKOUT_ENABLED

Copy link

pkg-pr-new bot commented Sep 20, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/novuhq/novu/@novu/shared@6544

commit: 035ddef

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.

1 participant