#05 Stripe API - Pay Now Button with Stripe Checkout API
Github Repo:
https://github.com/corsego/shoplify
Heroku Demo:
https://shoplify.herokuapp.com/
Stripe Dashboard:
https://dashboard.stripe.com/
Stripe Checkout:
https://stripe.com/docs/payments/checkout/migration
initialize app
https://github.com/corsego/shoplify/commit/32240856ab97fd0d34ee7b09a05710762a9e4414
scaffold products
https://github.com/corsego/shoplify/commit/c1cea7f118e2d311826852bcaa5ae5dafd08c874
product validations
https://github.com/corsego/shoplify/commit/f78f741e3c5a1b444db37e412ace0f6eac680c76
install gem stripe
https://github.com/corsego/shoplify/commit/32338a2a5a4c21318b1576544a1a4f955e89100b
stripe checkout session
https://github.com/corsego/shoplify/commit/0011a727b1272fb96ae0d8b5618b67975fdf11a8
add_sales_count_to_products
https://github.com/corsego/shoplify/commit/67625c3d2297bc926e3abd4f864e32ada1100cc8
add stripe webhooks
https://github.com/corsego/shoplify/commit/e874c279e60df36662da691f965a545e6289c8ec
0:00 Introduction
1:56 Create new Rails app, push to github
4:14 Create Products table, validations, basic navigation
9:43 Gem Stripe, make API calls to Stripe
12:45 Rails Credentials - hide API keys
16:47 Stripe Checkout button
30:41 Recap on integrating Stripe Checkout button
32:07 Add sales_count to Products
34:52 Push application to Heroku
36:41 Webhook to update sales_count when Stripe successfully processes payment
44:35 Final DEMO
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
![#14: Infinite Nested Comments, Embed Vimeo Videos](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg1NywicHVyIjoiYmxvYl9pZCJ9fQ==--a213e9610a9c24f16f81b6b52a9a1b71bb592547/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
#14: Infinite Nested Comments, Embed Vimeo Videos
![#2: Thumbnail, Logo, UsersController, Devise Trackable](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg3MiwicHVyIjoiYmxvYl9pZCJ9fQ==--c5e158eb36dbb9a9ef69200834c0d30aaf84181a/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
#2: Thumbnail, Logo, UsersController, Devise Trackable
![#79 Classless CSS frameworks](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTgzMSwicHVyIjoiYmxvYl9pZCJ9fQ==--5c379e581b3c76cdb39239617c964295550bf7be/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)