Book Image

Shopify Application Development

By : Michael Larkin
Book Image

Shopify Application Development

By: Michael Larkin

Overview of this book

Table of Contents (12 chapters)

High-level requirements


We're going to continue to work in topic branches, write tests, and verify our features before merging them into the master branch for deployment. In this chapter, we're going to complete the following requirements:

  • Add free and paid plans

  • Integrate with the Shopify Billing API

  • Publish our listing in the Shopify App Store

Adding free and paid plans

We're going to offer two options to our users: a free plan that allows the creation of three Contests per month and a paid plan that allows the creation of unlimited Contests. In practice, our application might have multiple plans that offer different levels or features to encourage users to upgrade as their business grows, but for now, we'll keep it simple.

As usual, we'll need to create our topic branch as follows before making any code changes:

git checkout -b ch05_01_plan_options

Facilitating these two plans is simple. We need to add an attribute to the Account model to track whether or not it is a paid one. We will accomplish...