In this checkout demo, an API-based hosted payment page is used. The hosted page URL generate API is an authenticated API, so this has to be made S2S (server to server).
If you do not use any underlying server for your website or your site has only static content, then you can use Zoho Creator as the underlying server. Since Zoho Subscriptions and Zoho Creator are integrated by default, you don't have to set up anything.
So, Zoho Creator will act as the back-end server, receive input from your front-end, make API calls to Zoho Subscriptions to create hosted page URL, and then redirects users to that URL. We will provide you with the required Zoho Creator code snippet. For this customizable checkout demo, you just have to replace the placeholder for authtoken and organization ID. You can find the code snippet below:
<%{
authtoken = "{authtoken}";
organizationId = "{organization_id}";
....