Integrate FlexyPe checkout into Hydrogen and other headless/React storefronts built on Shopify
The FlexyPe Checkout SDK is a lightweight browser script that opens checkout from any storefront built on Shopify — including Shopify Hydrogen and other headless or React frontends. Load the script, then call a global window.FlexyPeCheckout object to open or close checkout.
Complete the Shopify onboarding first. It’s mandatory — your store must be onboarded and your domain registered with FlexyPe before you can integrate on any storefront.
Contact the FlexyPe team for your script URL and to register your store domain before you start.
Once loaded, the global window.FlexyPeCheckout object becomes available with open and close methods.
In a Hydrogen or React app, add the tag to your root HTML document (e.g. the <head> in your root route / document component) so it loads once for the whole app.
FlexyPe detects your store from the domain the script runs on. That domain must match the store domain you registered with us during onboarding — otherwise checkout won’t open.
Production: no extra config needed. The SDK uses your live domain automatically.
Local development: add a data-shop-domain attribute to the script tag with your registered domain so the SDK can detect the store while running on localhost.