Overview
You can embed the Whop checkout on your Framer site so customers can purchase directly from your page. There are two ways to do this, but only one supports Apple Pay.Recommended: Custom Code in headers
This method loads the Whop checkout SDK directly on your page — no intermediate iframe. Apple Pay, Google Pay, and all payment methods work correctly.Step 1 — Add the SDK script to your site headers
- In Framer, open Site Settings (gear icon in the top-right).
- Go to the General section and scroll down to Custom Code.
- In the End of
<head>tag field, paste:
- Save your settings.
Step 2 — Create a Code Component
- In the Framer editor, go to Assets > Code and click + to create a new code component.
- Name it something like
WhopCheckout. - Replace the contents with:
- Replace
plan_XXXXXXXXXwith your actual Plan ID. - Drag the component onto your page and resize it as needed.
Step 3 — Add any optional attributes
You can add any of the available data attributes to thediv element. For example:
Step 4 — Set up Apple Pay (optional)
If you want Apple Pay on your custom domain:- Follow the Apple Pay setup guide to verify your domain.
- Make sure you added your domain in Dashboard > Settings > Checkout > Apple Pay for embedded checkout > Payment domains.
- Publish your Framer site — Apple Pay will appear for customers using Safari or iOS.
Alternative: Embed component (no Apple Pay)
Using Framer’s built-in Embed component is simpler but does not support Apple Pay. Framer renders Embed content inside asrcdoc iframe, which Safari blocks from initiating Apple Pay sessions.
If you don’t need Apple Pay, you can use this method:
- Drag an Embed component onto your Framer page.
- Paste the full HTML embed code:
- Replace
plan_XXXXXXXXXwith your Plan ID.
Card payments, bank transfers, iDEAL, and other non-Apple Pay methods will still work with this method. Only Apple Pay is affected by the
srcdoc iframe restriction.Frequently asked questions
Why isn't Apple Pay showing on my Framer site?
Why isn't Apple Pay showing on my Framer site?
You are most likely using the Embed component, which wraps your code in a
srcdoc iframe. Safari requires all ancestor frames to be secure (HTTPS) for Apple Pay, and srcdoc iframes have a null origin which Safari treats as insecure. Switch to the Custom Code method to fix this.How do I know which method I'm using?
How do I know which method I'm using?
Open your Framer site in Safari, right-click the checkout area, and choose Inspect Element. If the checkout iframe is nested inside another iframe with
srcdoc, you’re using the Embed component method. If it’s a direct child of the page, you’re using the Custom Code method.Can I use the Custom Code method on Framer's free plan?
Can I use the Custom Code method on Framer's free plan?
Custom Code in site settings requires a paid Framer plan. If you’re on the free plan, you’ll need to upgrade or use the Embed component method (without Apple Pay).
Does Google Pay work with the Embed component?
Does Google Pay work with the Embed component?
Google Pay uses a different browser API and may work in Chrome regardless of the iframe setup. However, the Custom Code method is still recommended for the most reliable experience across all payment methods.

