#06 Stripe API - Stripe with Devise, Create Stripe API records from Rails
Github Repo:
https://github.com/corsego/shoplify
Heroku Demo:
https://shoplify.herokuapp.com/
install gem devise
https://github.com/corsego/shoplify/commit/895542c432e38a30270cdefb7c92ab6fbcdc6481
user is assigned stripe_customer_id after create
https://github.com/corsego/shoplify/commit/5ede7fd7080ae5f68efcfcce47b50acaed289d15
assign checkout to current_user.stripe_customer_id
https://github.com/corsego/shoplify/commit/5f847af0a9fdad8a022a56df2b03f5ca9ee460d9
add stripe_product_id to products
https://github.com/corsego/shoplify/commit/8d9fa78420534c71fc3255d496637d35615fd114
add stripe_price_id to products, checkout session for specific product
https://github.com/corsego/shoplify/commit/5e786e2e2e1f079907c0f749362932b25f976457
skip devise authentication for webhooks controller
https://github.com/corsego/shoplify/commit/35a98719a848b54465482094cb89f460d22c626a
0:00 Introduction
4:22 Install Gem Devise
8:02 Associate User to Stripe Customer
14:15 Associate User to Stripe Checkout Session
17:50 Associate Products with Stripe Products,
28:08 Associate Products with Stripe Prices, Checkout for specific Price
36:13 Update Webhooks to work with Devise
0
Featured in playlists
![#05 Stripe API - Pay Now Button with Stripe Checkout API](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTkyOSwicHVyIjoiYmxvYl9pZCJ9fQ==--2da52bf6cd329ad269d1e7ca15f5a9e3434282cc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
![#06 Stripe API - Stripe with Devise, Create Stripe API records from Rails](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTkxMCwicHVyIjoiYmxvYl9pZCJ9fQ==--2f93a6713a1573238bca43c343581730c3f03101/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
![#07 Stripe API - Hijack Stripe Checkout Session, Payment Success URL](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTkyNSwicHVyIjoiYmxvYl9pZCJ9fQ==--a718db349c0c2468bf2a86c7550e08dde32af478/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
Build an app where user can add items (and choose quantity) to the shopping card and checkout by processing a payment via Stripe.
Also available on Udemy: https://www.udemy.com/course/complete-guide-to-payments-with-ruby-on-rails-stripe-api/
Recommended based on what you are watching now
![#166 PWA (Progressive Web Apps) in Rails 8](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjA1OCwicHVyIjoiYmxvYl9pZCJ9fQ==--d9daa3042f4e7fd1d8223e8aa24e80d59b07c206/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
#166 PWA (Progressive Web Apps) in Rails 8
![#01 Gem Boring Generators - 10x your initial development speed](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg3NSwicHVyIjoiYmxvYl9pZCJ9fQ==--fa034ea77c6a193f768929dd1488c33a2c09d210/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)