When you add a card payment to a WooCommerce store, one early choice shapes everything that follows does the customer pay on a page that belongs to the payment provider, or on a form that sits inside your own checkout page? These are the redirect and iFrame styles, and store owners often pick one without knowing what it changes.
This redirect vs iFrame checkout guide explains the difference in plain language, covers security, customer experience and testing for each and gives you a short way to decide. It uses the PCI Security Standards Council’s published FAQ on the subject and the way our CCAvenue plugin offers both styles. It does not replace advice from your payment provider or acquirer.
| Choice | Best when |
|---|---|
| Redirect checkout | Your site runs many plugins and scripts and you want the form off your page |
| iFrame checkout | Your site is lean and tightly managed and a seamless brand experience matters most |
| Either | Test on phones, keep scripts tidy and ask your acquirer which questionnaire applies |
What redirect and iFrame checkout mean
In a redirect checkout, the customer clicks to pay and your store sends them to a page hosted by the payment provider. They enter their details there, the bank may ask for approval and the customer returns to your store when finished. The payment form is not on your page.
In an iFrame checkout, the provider’s payment form is shown inside a frame on your own page. The customer stays on your site’s address and design, but the form content still comes from the provider. Your page and the provider’s frame sit together.
Both are hosted solutions. Card details go to the provider, not to your server, which is the main reason stores use them instead of building their own card form.
How the two styles compare
| Point | Redirect | iFrame |
|---|---|---|
| Where the form lives | On the provider’s page | Inside your checkout page |
| Look and feel | Provider’s design | Closer to your design |
| Customer sees | A change of site | Your site throughout |
| Page scripts around the form | Not on the payment page | Your page’s scripts surround it |
| PCI script criterion | Applies differently per the PCI FAQ | Applies to your page per the PCI FAQ |
The table is a summary, not a rulebook. Your provider’s documentation always comes first.
What the PCI Council says
The PCI Security Standards Council published FAQ 1588 in February 2025 about how an e-commerce merchant meets the SAQ A eligibility criterion for scripts. According to the official FAQ, the criterion applies to merchants whose page includes a provider’s embedded payment page or form, such as an iFrame. Those merchants must confirm that their site is not susceptible to script attacks, either by using techniques similar to requirements 6.4.3 and 11.6.1 or by obtaining confirmation from a compliant provider that its embedded page protects against them.
The FAQ lists redirects, whether by HTTP redirect, meta redirect or JavaScript, as a different case where the criterion does not apply in the same way. It does not say what other duties redirect merchants have, so ask your acquirer. Our PCI DSS WooCommerce guide explains the details.
The case for redirect checkout
A redirect checkout puts the card form outside your page, so a malicious script on your site cannot read what the customer types into it. It is usually simpler for compliance, and the payment page is maintained by the provider, including changes to bank approval steps. For stores with many plugins, themes and marketing scripts, that separation is worth a lot.
The cost is experience. The customer leaves your design and may worry about it, especially if the provider’s page looks different from your brand. A clear message before the redirect, such as “You will pay securely on our payment provider’s page”, reduces surprise. Our cart abandonment guide explains why trust at this step matters.
The case for iFrame checkout
An iFrame keeps the customer on your site, which feels smoother and keeps your branding, trust details and support options on screen. It can reduce the feeling of being sent away, and it makes it easier to keep a consistent layout on a phone.
The cost is responsibility. Because the form sits on your page, the scripts on that page matter. According to the PCI FAQ, you need to show that your page is protected from script attacks. That means keeping a tight list of scripts, patching quickly and following your provider’s instructions for embedding the form. It also needs more testing across devices and browsers.
What changes on a phone
Customers often switch to a banking app to approve a payment, then return to the browser. Both styles must handle that round trip, and both can fail if a page reloads or loses its state. Test on real phones, on mobile data, and switch between apps during the test. Our guides to UAE online payment authentication and RBI authentication rules explain why app approval is becoming common.
How our plugin offers both
TechBella Payment Gateway Pro supports redirect and iFrame checkout and connects WooCommerce to your own CCAvenue merchant account. The free plugin also supports both styles, with the India region and the classic checkout. Pro adds the UAE region and the Blocks checkout. Both update the order status from the gateway result and include sandbox mode and debug logging.
The plugin does not hold card numbers on your server, and it does not make your store compliant by itself. It is an independent plugin, not an official CCAvenue product, so confirm your eligibility with CCAvenue in writing.
How to decide
Ask five questions.
- How many third-party scripts run on your checkout page, and who controls them?
- Who in your team can maintain a tight script list and respond quickly to security notices?
- How important is a seamless brand experience for your customers?
- What does your acquirer say about the questionnaire for each style?
- Which style performs better in your own tests, with your own customers?
If you have many plugins and little security time, a redirect is usually the calmer choice. If your site is lean and tightly managed and your brand experience matters most, an iFrame can work well.
How to test both styles
Use your gateway’s sandbox on a staging copy. Run a successful payment, a decline, a cancel and a closed page in each style, on a laptop and a phone. Compare completion rates and timing, and read the order notes for the results. Our sandbox testing guide lists the tests, and our debug log guide shows how to read the output.
Common mistakes
- Choosing iFrame for looks without checking the script duties.
- Choosing redirect without telling customers what will happen.
- Leaving old marketing scripts on the checkout page.
- Testing only on a laptop.
- Assuming the provider’s compliance covers your page.
- Changing style without re-testing the whole flow.
Key takeaways on redirect vs iFrame checkout
- In redirect vs iFrame checkout, the main difference is where the payment form lives.
- The PCI Council treats redirect and iFrame merchants differently for the script criterion.
- Redirect is simpler for compliance, and iFrame feels smoother for customers.
- Test either style on phones with app switching before you go live.
- Ask your acquirer which questionnaire applies to your redirect vs iFrame checkout choice.
A summary of the redirect vs iFrame checkout decision
Redirect vs iFrame checkout is a trade between simplicity of security and smoothness of experience. Choose with your acquirer’s advice and test both. If you would like help comparing them on your store, our WooCommerce development team can set up both styles on staging and measure the difference.
A worked example with a typical store
Imagine a store with a customised theme, a page builder, a chat widget, two analytics tools and a marketing pixel on every page. Ten scripts run on the checkout, and three of them nobody can explain. In this setup an iFrame checkout means all ten scripts surround the payment form, and the team would need to inventory and protect each one. A redirect checkout removes the card form from that page, so the team can still clean up the scripts, but the card form is not exposed to them.
Now imagine a lean store with a lightweight theme, one analytics tag and an owner who reviews scripts monthly. An iFrame might suit this store well, because the page is small enough to control and the branded experience helps conversions. The same plugin can serve both stores. The difference lies in the people and processes behind it, and that is why your own answers to the five questions matter more than any rule of thumb.
What to tell customers before the redirect
A single sentence near the pay button reduces drop-off. Say where the customer is going, who runs the page and what they will see. For example, “You will be taken to our secure payment provider to complete your payment, then brought back to your order confirmation.” Keep the tone calm and plain. Do not use pop-ups or countdown timers at this step.
Make sure the return page shows the order number and a clear next step, so customers who come back from a bank app are not left wondering whether the payment worked.
Accessibility and responsiveness
Whichever style you choose, the payment step must work with a keyboard and a screen reader, at different text sizes and on small screens. For an iFrame, check that the frame resizes correctly and that focus moves into it and out again. For a redirect, check that the provider’s page is usable on a phone. Our WCAG 2.2 checklist lists the checks to run. A payment form that a customer cannot use is a lost sale, and in some places a legal risk.
Need a CCAvenue gateway for WooCommerce?
TechBella Payment Gateway Pro connects WooCommerce to your own CCAvenue merchant account, with the UAE region, Blocks checkout and compatibility updates. It is an independent plugin, not an official CCAvenue product.
Frequently Asked Questions
Is redirect checkout safer than iFrame checkout?
Redirect moves the payment form off your page, which narrows the script criterion in the PCI FAQ. It is a security benefit, not a guarantee of compliance, and your acquirer confirms what applies.
Can I switch between redirect and iFrame later?
Usually yes, if your plugin supports both, but you should retest the whole flow on staging and check your PCI questionnaire again.
Does an iFrame checkout hold card numbers on my server?
With a hosted iFrame the card details go to the provider, but your page still surrounds the form, so your page’s scripts and security still matter.
Which style do customers prefer?
It varies by customers and brand. Test both on your own store and compare completion rates.
