Here is a quick step-by-step guide to generate a link for Shopify checkout with the subscription products.
SAMPLE URL
The above URL contains a few dynamic values that need to be replaced whenever you generate a checkout URL for different products.
{variant_id} = This needs to be replaced with the variant for which you are generating the URL. To find variant id use the below doc:
{quantity} = This needs to be replaced with the quantity of product.
{selling_plan_id} = This needs to be replaced with the selling plan id of the product for which you are generating the checkout. Every selling plan might have different id's like monthly subscriptions, weekly subscriptions etc. To get the selling plan id
you can use the below API URL and search for selling_plan_id for the respective plan:
Replace the {product_id} with dynamic value, a guide to check the product id of any product -
Note: Please change the myshopify and recurpay url to your actual store URL. |