Introducing the Chargebee CLI

Checkout URL is not working

Problem Statement

This article helps you understand why the checkout URL is not working.

Scope

The checkout URL isn't working

The purchase link isn't working

Summary

This could happen due to incorrect URLs for your current Product Catalog version. The first step is to know which version of the Product Catalog you are using (Legacy Product Catalog or Latest Product Catalog). You can get to know if you are using Legacy Product Catalog or Latest Product Catalog by checking how to tell whether your site is on PC 1.0 or PC 2.0. Once you know which version you are using then we can check the URL format.

Solution

Finding the version of Product Catalog

How to check if your site is on PC 1.0 or PC 2.0

URL format for Legacy Product Catalog

If you are using Legacy Product Catalog then your checkout URL should be similar to - https://{sitename}.chargebee.com/hosted_pages/plans/ See Hosted checkout (Legacy Product Catalog) for more information.

URL format for Latest Product Catalog

If you are using Latest Product Catalog then your checkout URL should be similar to - https://{sitename}.chargebee.com/hosted_pages/checkout?subscription_items[item_price_id][0]={plan-id}

Also, every plan details page in Latest Product Catalog has a dynamic payment URL on each price point page, so you can share a payment link. Navigate from the Product Catalog > Plans index page > Plan details page > Customer-Facing Info > Get Payment Link. See How to create an item-specific checkout URL for PC 2.0 for more details.