# #10 Stripe API - Clear Cart after Checkout, edit Stripe Price

- URL: https://superails.com/posts/ruby-on-rails-10-stripe-api-clear-cart-after-checkout-edit-stripe-price
- Published: 2021-03-30
- Duration: 15:34
- Access: free
- Playlists: Stripe Ecommerce App

Github Repo: 
https://github.com/corsego/shoplify
Heroku Demo: 
https://shoplify.herokuapp.com/​

if product price is updated - create new stripe price and assing to product
https://github.com/corsego/shoplify/commit/a43e7c88661becede21d76eb2f4af400cf8d64f9
empty cart after successful transaction
https://github.com/corsego/shoplify/commit/c19566ef5b1c4c0a2eaf99475c5e688fb08f302b

0:00 clear Shopping Cart after Checkout
2:19 display checkout success only if session_id is present
4:11 display items purchased on success page
6:58 when local product price changes - create new Stripe Price and associate it with local product

## Chapters

- 0:00 clear Shopping Cart after Checkout
- 2:19 display checkout success only if session_id is present
- 4:11 display items purchased on success page
- 6:58 when local product price changes - create new Stripe Price and associate it with local product
