fix of the day, payment + sub + music generation

This commit is contained in:
Thomas Demirdjian
2025-11-17 14:27:15 +01:00
parent 97321cdbda
commit 93f2711574
20 changed files with 761 additions and 398 deletions
+9 -1
View File
@@ -75,7 +75,15 @@ const StripeProvider = ({ children }) => {
if (isWeb) {
if (typeof window !== "undefined") {
window.location.assign(checkoutUrl);
const openedTab = window.open(
checkoutUrl,
"_blank",
"noopener,noreferrer",
);
// Fallback to same-tab navigation if the popup is blocked.
if (!openedTab) {
window.location.assign(checkoutUrl);
}
return;
}
throw new Error("Navigation Stripe impossible dans cet environnement.");