Prefill coupon codes on a checkout
Share your checkout with a coupon code applied
Want to run a discount on a checkout without sharing a promotion code? You can prefill coupon codes on a checkout so that the discount will be applied directly.
Applying discount codes when using payment links
Add a coupon to a link by adding it to the URL with query parameter coupon
. That looks like this:
https://checkoutpage.co/c/checkoutpage/sponsor-the-podcast-10-episodes?coupon=20off
In other words, add ?coupon={COUPON_CODE}
to the end of your page's URL.
Applying discount codes when using the pop-up
When using the pop-up with a URL, you can use the query parameters like above:
<a
class="cp-button"
href="https://checkoutpage.co/c/checkoutpage/sponsor-the-podcast-10-episodes?coupon=20off"
>
Buy now
</a>
When using the pop-up with data attributes, you can use the data attribute data-coupon
to add a coupon code to a page:
<button
class="cp-button"
data-seller="checkoutpage"
data-checkout="sponsor-the-podcast-10-episodes"
data-coupon="{COUPON_CODE}"
>
Buy now
</button>