By platform

Stripe Checkout is not able to run in an iframe

The Pay button does nothing, or a blank box sits where the payment page should be. Stripe's hosted payment page refuses to open inside another page's frame, so the buyer never reaches it.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why is Stripe Checkout not able to run in an iframe?

Stripe Checkout is a hosted payment page, and it refuses to load inside a frame on another page, a standard browser protection against clickjacking, so the buyer sees a blank box or a browser error where the payment should be. The likeliest cause is that the checkout button sits in an embed, a widget or a site builder's frame, and the redirect happens inside it. Send the whole browser tab to the Checkout page your server created, instead of opening it in the frame. A simulated visitor reaches the handoff and shows the blank or refused step, but it stops before the payment page, so it cannot show the payment form.

What this looks like in a report

Who
Dario, buying a set of wooden coasters for a housewarming
How they arrived
Found the coasters on a shop page embedded in a home decor blog
Where they stopped
Pay button, after entering the address

“I pressed Pay and the box stayed empty with a grey message. I did not want to type my card into a blank box on a blog, so I closed it and bought the coasters from somewhere else.”

The fix. Create the Checkout session on the server and send the browser's top-level page to its address, not into the frame. Move the checkout button out of any embed or widget, or open the payment page in a new tab when it has to stay inside one.

An illustration. Run a test to see your own.See a real sample report

The redirect runs inside a frame that refuses the payment page

The buyer fills in the cart, presses Pay, and the page dims for a moment. Then the box where the payment page should be stays blank, or a browser message says the page cannot be shown. The buyer sees no Stripe address, no card form and no error from your store, so they assume checkout is broken and leave. The frame that holds it is not, because the code asked the frame to move to the payment page, and the payment page refused. An owner who tests inside a preview that is itself framed sees the same blank box, while one who opens the live page directly does not.

  • Open the store's checkout in a plain tab, not from an embed or an editor preview. Does Pay reach the payment page?
  • Read the address bar after Pay. Does it show the payment provider's address, or does the box stay on your page?
  • Check whether the checkout button sits inside an embed, a widget or a builder's custom block.
  • Read the console after Pay for a refused frame message or a blocked navigation.
  • Confirm the code that creates the Checkout session runs on your server, not only in the browser.

Why a hosted payment page will not open in a frame

A frame is a box that shows another page inside yours. Stripe's hosted Checkout page is served by Stripe, and it sets a browser rule that stops other sites from placing it inside their frames. The rule exists so that nobody can trick a buyer into clicking a hidden payment page, which is called clickjacking. Your code cannot switch it off, and no setting in your store turns it on. The page you see inside a frame stays blank or shows an error because the browser refused to draw it, not because the session failed. That difference matters for the fix, because a new session will fail in the same frame.

Where the frame comes from

Frames show up wherever a site includes another page: an embedded widget, a booking tool, a no-code embed block, a chat window with a checkout inside, or the preview inside a site editor. The checkout button can look like part of your page while the code runs one level down. To find the frame, open the page directly in a plain browser tab and compare the address bar. If Pay works there and fails inside the embed, the frame is the cause. The fix is to move the handoff to the top-level page, not to rewrite the payment code.

The fix: a server session and a top-level move

Create a Checkout session on your server with the cart and the amount, then return its address to the browser. The browser then moves the whole tab to that address, which is a top-level navigation. If the button runs in a sandboxed frame, the browser may refuse even that move, so the button has to sit on the top-level page. After the buyer pays, Stripe sends them back to a return address you set. Keep that return address on your store's domain, and show the order status from your server rather than from inside the frame.

What Mimiq's simulated visitor shows at the handoff

Mimiq's simulated visitor follows the cart and the address, presses the button that starts payment, and the report shows where it landed: the payment provider's page, a blank box or a refused frame, with a screenshot. It stops there, because it cannot enter a card or pay. That is enough to find a handoff failure. It cannot show the payment form, the card errors or the success page, so after the fix, test a real payment on your own account in your provider's test mode.

Mimiq is independent and not affiliated with the platforms it names. Names belong to their owners.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

An embed or a new widget can wrap checkout in a frame again

A new embed block, a booking widget or a theme update can place the Pay button inside a frame without any change to the payment code. The payment step then breaks while the cart still works. Rerun the visitor task on the live address after each change, and check that the Pay step lands on the payment provider's page in the same tab. A quick check after every new embed keeps a blank box from reaching buyers.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Can Stripe Checkout open in a popup or a modal?

A separate popup window can open the hosted page, because a window is not a frame on your page. A modal inside your page is a frame, so the hosted page will not load there. Many stores open Checkout in the same tab, which avoids the problem and is easier for buyers to follow.

Does a simulated test reach the Stripe payment page?

It reaches the handoff and shows whether the buyer lands on the payment page or on a blank frame. It stops before any card is entered, so it cannot show the payment form or the card messages. The test does not predict how many buyers finish paying. Use a test payment on your own account for the rest.

Why does checkout work in my own browser?

Your own test may open the store in a plain tab, while buyers arrive through an embed, a booking widget or a preview. Test the exact address and the path a buyer takes, including the link they clicked, so the frame shows up in your test too.

Do I need a developer for this?

Usually yes, because the Checkout session is created on your server and the browser must move the top-level page to it. A site builder's built-in checkout may already handle this, so first check whether the frame comes from your own code or from a block you added.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .