Purchase Screen

The Purchase Screen in the Browse, Purchase, and Manage Classes feature template collects all the information to successfully purchase a class utilizing the Stripe component.

This screen is where your users will complete the purchase process for the offering they would like. It contains a Stripe component, which is found in the Component Marketplace.

You will need a Stripe account to utilize the Stripe Component

The Components

Text Component β€” 2 Components

The β€œLabel” text component uses a custom formula β€” the class price + the service fee ($3.13, in this case). If you do not want to charge a service fee, remove the custom formula and select the Current Class > Price in the text box.

A similar calculation with a custom formula is done in the Text component that displays the total transaction cost.

Stripe Component β€” Stripe Payment

Follow the instructions in this help doc to set up your Stripe component. Here, you can control the amount paid, the charge description, the receipt email, and the actions that happen after a successful payment.

⚑ Submit Button Actions

Each action happens in the order they are listed on the screen. These actions will only occur if the payment is successful.

  1. A Create Action to create a record in the Transaction Collection. A mix of Text and Magic Text fills in the associated Transaction Properties.

  2. An Update Action to update the Class record and subtract an available spot.

  1. A Link Action to the β€˜Congrats’ Screen.

Tips & Tricks

You can test the purchase flow without setting up the Stripe Component utilizing this section:

The β€˜DEMO β€œPAY”’ button is set up with the same settings and actions as the Stripe Component; however, no real purchase will have been made. To collect money for your classes, ensure your Stripe Component is set up.

Once you are finished testing with the β€˜DEMO β€œPAY”’ button, delete the button & the gray help text for your published app.

Last updated