Docs
You want to add Chargebee shortcodes as buttons on your WordPress site. You may also need to know which deprecated shortcodes are still supported.
Option 1: Use the Checkout Subscription Shortcode in WordPress.
Option 2: Use the drop-in script to load checkout when a button is clicked. The checkout opens on your page when the customer clicks Subscribe.
Account Portal: [cb_account_portal class="btn"]Account[/cb_account_portal]
Product Subscribe: [cb_product_subscribe_hosted class="btn" product_id="cbdemo_grow"]Subscribe[/cb_product_subscribe_hosted]
These can be used for restrictions or sign-up flows:
Was this article helpful?