#James Salcedo
1 messages · Page 1 of 1 (latest)
👋 How can I help?
Hello! So I am trying to work with Stripe's prebuilt checkout page. I am building a shopping cart app, and would like to integrate it with Ruby on Rails instead of Sinatra, and React.js on the front end. If I am creating some models, how would those models interact with the Checkout code? For example, would I be able to make a Product model that would link with the products I create on the Stripe page?
Thanks for waiting! Discord is busy now
Ruby on Rails and Sinatra are just different frameworks and it shouldn't affect Stripe integration.
Your server will create the product and prices via API or Dashboard first and store the price ID that maps to your own product information in your database. When the customer selects the product to purchase, your system will find the corresponding Stripe price ID, which can then be used to create a Checkout Session
The steps will be:
- Create product and price: https://stripe.com/docs/products-prices/manage-prices
- Follow checkout guide to create a Checkout Session: https://stripe.com/docs/checkout/quickstart
Thanks for the help and resources, I appreciate it! I will go through all of this and if I am still having issues I will reach back out!