🛒
Stripe Checkout (Shopping Cart) Plugin
  • 👋Introduction
  • Installing the Plugin
  • Configuring Stripe API Keys
  • Setting up your Database
  • Adding items to the shopping cart
  • Creating Checkout Sessions
  • Embedding payment forms in your app
  • Adding Shipping Rates
  • Automatically Create Stripe Customer ID's
  • Saving down details of a transaction
  • Stripe Tax
  • Discounts
  • Support Queries
Powered by GitBook
On this page

Adding items to the shopping cart

PreviousSetting up your DatabaseNextCreating Checkout Sessions

Last updated 1 year ago

The most straightforward implementation of a shopping cart involves the following steps:

  1. Create a "Product" page that showcases a product and has an "Add to cart" button

  2. Create a workflow on the "Add to cart" button that:

    • Creates a new "Cart Item"

    • Adds this "Cart Item" to the current user's shopping cart

      • I recommend putting on a conditional statement so that the workflow only runs when the current user is logged in

You can see an example of this in action in .

In the above example I'm using a Repeating Group with the Type of contet set to "Cart Item" and the Data source to "Current User's shopping cart" (which is itself a list of cart items).

You'll then need to create a "Checkout" page where the current user's cart items are listed. ().

demo app example
my demo app
Example of Product Page
Example of Checkout Page