Ruby on Rails #5 Stripe API - Pay Now Button with Stripe Checkout API

23/03/2021 (about 3 years ago)
·
screencast rubyonrails

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
Sign in to join the conversation