Skip to main content
All CollectionsIntegrationsBuilding with Recurpay
Integrate your Bundle app with Recurpay
Integrate your Bundle app with Recurpay

How to integrate Recurpay with any bundle app in just few hours

Sinchain avatar
Written by Sinchain
Updated over a week ago

Bundle apps not only help the merchants increase Average Order Value (AOV) but also eases the customers decision making by bundling the right products together.

While merchants today are easily able to build bundle of products for One-Time purchase, there is no easy way when they try to subscribe. As a subscription app, we could have chosen to build the feature ourselves but we know we couldn't have done it better than you so here is a simple process on integrating Recurpay with your bundle app:

Note: The steps are only for Shopify and not for any other Ecommerce platforms.

Showing the subscription plan options for all products in bundle on product/cart page:

  1. Do a GET request for the respective product by calling the product js API to get the selling plan details from Shopify

    https://{{shop.permanent_domain}}/products/{{product.handle}}.js

  2. The response received from the above API call will have the selling plan info which needs to be shown to the end customer.
    https://shopify.dev/api/ajax/reference/product#selling-plan-example

    Loop the selling_plan_groups object and fetch the selling_plans. The selling plans is an array of objects which will contain the plan name and discount that needs to be shown to the end customer. Create a dropdown with all the selling plan names as an option and show it to the end customer.

    Recurpay automatically creates and manage subscription selling plans on Shopify store so you need not use our direct APIs for the integration.

  3. While calling add.js or change.js API from Shopify, pass the selected selling plan id.

    https://shopify.dev/api/ajax/reference/cart#add-a-selling-plan
    Eg: https://{{shop.permanent_domain}}/cart/add.js

  4. In case you are looking to change the one-time product to a subscription, you can simply call the change.js API to update the line item with the selling plan id or vice versa.

    https://shopify.dev/api/ajax/reference/cart#update-selling-plans
    Eg: https://{{shop.permanent_domain}}/cart/change.js

Do you know? By following the above steps, you will not only integrate with Recurpay but with almost all other subscription apps too!

One of the important criteria for all merchant should be to have the same subscription plan created for all products which are part of bundle, you can call this condition out in your integration doc or app dashboard to avoid confusions or unnecessary support tickets.


Facing any issue with integrations? Click the green chat button or write us at help@recurpay.com

Did this answer your question?