Primary Setup:
> Add in your Stripe Secret Key from the Plugins Page.
> Set up your products via Stripe's Product Catalogue module (
https://dashboard.stripe.com/test/products).
> To associate your current user to the stripe's customer account, you should create a field under the 'User' datatype and save the stripe customer id (starting with 'cus_') there.
For a step-by-step workflow build, please see the service URL for the bubble editor.
Example 1: Checkout List of Products
a) Set up product catalogue in stripe and obtain the price IDs of the products you are selling (must be one-off and starts with 'price_').
b) Run workflow 'List of Products' to obtain a Checkout Session URL.
c) Open this Checkout Session URL to redirect your user.
d) After payment is completed and user is redirected back to your site, run the workflow 'Retrieve a Checkout Session' to check that the payment is received and complete the rest of your successful purchase flow.
Example 2: Checkout Subscription
a) Set up product catalogue in stripe and obtain the price IDs of the products you are selling (must be recurring and starts with 'price_').
b) Run workflow 'Checkout Subscription' to obtain a Checkout Session URL.
c) Open this Checkout Session URL to redirect your user.
d) After payment is completed and user is redirected back to your site, run the workflow 'Retrieve a Checkout Session' to check that the payment is received and complete the rest of your successful purchase flow.
Notes: Stripe might take a while to create the invoice. If you do not get the invoice from the step 'Retrieve a Checkout Session', you can run the workflow again at a later date to get the invoice.