Learn how to embed Whop’s checkout flow on your website
ref
prop.
submit
submit
method on the checkout element.
getEmail
getEmail
method on the checkout element.
setEmail
setEmail
method on the checkout element.
planId
theme
light
, dark
or system
.
sessionId
hidePrice
false
hideTermsAndConditions
true
to hide the terms and conditions in the embedded checkout form.
Defaults to false
skipRedirect
true
to skip the final redirect and keep the top frame loaded.
Defaults to false
onComplete
skipRedirect
to true
utm
utm_
fallback
prefill
hideEmail
true
to hide the email input in the embedded checkout form. Make sure to display the users email in the parent page when setting this attribute.
Defaults to false
prefill
attribute or the setEmail
method
to control the email input.disableEmail
true
to disable the email input in the embedded checkout form.
Defaults to false
prefill
attribute or the setEmail
method
to control the email input.<head>
of your page:
id
to the checkout container:
submit
submit
method on the checkout element.
getEmail
getEmail
method on the checkout element.
setEmail
setEmail
method on the checkout element.
data-whop-checkout-plan-id
To get your plan id, you need to first create a plan in the Manage Pricing section on your whop page.
data-whop-checkout-theme
light
, dark
or system
.
data-whop-checkout-theme-accent-color
tomato
red
ruby
crimson
pink
plum
purple
violet
iris
cyan
teal
jade
green
grass
brown
blue
orange
indigo
sky
mint
yellow
amber
lime
lemon
magenta
gold
bronze
gray
data-whop-checkout-session
data-whop-checkout-hide-price
true
to hide the price in the embedded checkout form.
Defaults to false
data-whop-checkout-hide-submit-button
true
to hide the submit button in the embedded checkout form.
Defaults to false
data-whop-checkout-hide-tos
true
to hide the terms and conditions in the embedded checkout form.
Defaults to false
data-whop-checkout-skip-redirect
true
to skip the final redirect and keep the top frame loaded.
Defaults to false
data-whop-checkout-on-complete
data-whop-checkout-skip-redirect
to true
data-whop-checkout-on-state-change
data-whop-checkout-skip-utm
true
to prevent the automatic forwarding of utm parameters
Defaults to false
data-whop-checkout-prefill-email
data-whop-checkout-hide-email
true
to hide the email input in the embedded checkout form. Make sure to display the users email in the parent page when setting this attribute.
Defaults to false
data-whop-checkout-prefill-email
attribute
or the setEmail
method to control the email input.data-whop-checkout-disable-email
true
to disable the email input in the embedded checkout form.
Defaults to false
data-whop-checkout-prefill-email
attribute
or the setEmail
method to control the email input.plan_XXXXXXXXX
with your real Plan ID.
This component will now mount an iframe with the Whop checkout embed. Once the checkout is complete, the user will be redirected to the redirect url you specified in the settings on Whop.
You can configure the redirect url in your whop’s settings or in your company’s settings on the dashboard. If both are specified, the redirect url specified in the whop’s settings will take precedence.
ref
prop.
submit
submit
method on the checkout element.
planId
theme
light
, dark
or system
.
sessionId
hidePrice
false
hideTermsAndConditions
true
to hide the terms and conditions in the embedded checkout form.
Defaults to false
skipRedirect
true
to skip the final redirect and keep the top frame loaded.
Defaults to false
onComplete
skipRedirect
to true
utm
utm_
fallback
prefill
<head>
of your page:
submit
submit
method on the checkout element.
First, attach an id
to the checkout container:
wco.submit
with the id:
data-whop-checkout-plan-id
data-whop-checkout-theme
light
, dark
or system
.
data-whop-checkout-theme-accent-color
tomato
red
ruby
crimson
pink
plum
purple
violet
iris
cyan
teal
jade
green
grass
brown
blue
orange
indigo
sky
mint
yellow
amber
lime
lemon
magenta
gold
bronze
gray
data-whop-checkout-session
data-whop-checkout-hide-price
true
to hide the price in the embedded checkout form.
Defaults to false
data-whop-checkout-hide-submit-button
true
to hide the submit button in the embedded checkout form.
Defaults to false
data-whop-checkout-hide-tos
true
to hide the terms and conditions in the embedded checkout form.
Defaults to false
data-whop-checkout-skip-redirect
true
to skip the final redirect and keep the top frame loaded.
Defaults to false
data-whop-checkout-on-complete
data-whop-checkout-skip-redirect
to true
data-whop-checkout-on-state-change
data-whop-checkout-skip-utm
true
to prevent the automatic forwarding of utm parameters
Defaults to false
data-whop-checkout-prefill-email
Why is my checkout not loading?
plan_XXXXXXXXX
or PLAN_ID_HERE
in the code snippets with your actual Plan ID from the Whop dashboard. Also verify that the script tag is properly loaded in the <head>
section if using HTML/JS.Where do I find my Plan ID?
plan_
) to copy it.Can I embed multiple checkouts on the same page?
How do I change the checkout theme?
theme="dark"
or theme="light"
as a property. For HTML: add data-whop-checkout-theme="dark"
to your div element.Can I hide the price in the embedded checkout?
hidePrice={true}
in React or data-whop-checkout-hide-price="true"
in HTML to hide the price display.What happens after a customer completes checkout?
How do I prevent the redirect after checkout?
skipRedirect={true}
in React or data-whop-checkout-skip-redirect="true"
in HTML to keep users on the same page.Is the embedded checkout mobile-responsive?
Can I customize the checkout's appearance with CSS?
.whop-checkout-wrapper iframe
CSS class, but the checkout content itself cannot be modified for security reasons.Can I pre-fill customer information?
prefill={{ email: "customer@example.com" }}
in React or data-whop-checkout-prefill-email="customer@example.com"
in HTML.