|
|
@@ -47,6 +47,20 @@ export default function IntegrationsRedirect() {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ // Check if any valid integration parameters are present
|
|
|
+ // If not, redirect to landing page
|
|
|
+ const hasShopRenterParams = srInstall && shopname;
|
|
|
+ // Future: Add checks for other platforms here
|
|
|
+ // const hasShopifyParams = ...
|
|
|
+ // const hasWooCommerceParams = ...
|
|
|
+
|
|
|
+ if (!hasShopRenterParams) {
|
|
|
+ // No valid integration parameters found, redirect to landing page
|
|
|
+ console.log('[Integrations] No valid integration parameters found, redirecting to landing page');
|
|
|
+ navigate('/');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// Detect ShopRenter installation
|
|
|
if (srInstall && shopname) {
|
|
|
// If we have HMAC parameters, validate them first
|