How to Add Shopify App Plans with Free Trial, Monthly Charges, and Save Plan Details in DB (Shopify

Hi everyone,

I’m building a Shopify app using Shopify Remix and need some guidance on how to implement app subscription plans with the following conditions:

I want to offer 3 plans:- Basic – Free

  • Advance – $9.99/month

  • Premium – $19.99/month

  • All paid plans should have a 7-day free trial.

Requirements:1. When a user installs the app, they should be redirected to a plan selection page.

  1. Once they select a plan, it should:

    • Create a recurring subscription with Shopify.

    • Redirect them to the Shopify approval screen.

    • On approval, save the plan details in MongoDB using the following schema:

const planSchema = new mongoose.Schema({
shop: String,
plan: String,
amount: Number,
isTrial: Boolean,
subscriptionId: String,
startedAt: Date,
activatedAt: Date,
});

Tech Stack:- Backend: Node.js (Express-style setup inside Shopify Remix)

  • Frontend: Shopify Remix (using App Bridge + Polaris)

  • Database: MongoDB with Mongoose


My questions:1. Is it possible to implement this fully using Shopify Remix and Node.js or Shopify Remix?

  1. If yes, what’s the best way to:

    • Handle the redirect to plan page post-installation?

    • Create subscription plans via Shopify Billing API?

    • Track and store plan data in MongoDB?

  2. If anyone has done this before, could you please share sample code or guidance?

Any help or direction will be highly appreciated!

Thanks in advance :folded_hands:


1 Like