From the course: Adding Stripe Payments to Your Ruby on Rails Application

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Installing the Stripe gem

Installing the Stripe gem

- [Instructor] Now that we have everything set up on the front end on the client side, we need to build up our server side implementation of Stripe. Now, there's a handful of things we need to do. Number one is we need to install the Stripe gem, so we can use their API. Number two is we need to use their API to create a customer, and number three is we need to charge that customer object for a subscription. So those are the three things we need to accomplish, and we're going to start by installing the Stripe gem. So we need to go to rubygems.org in order to find the latest version of the Stripe gem. So you can go to rubygems.org/gems/stripe in order to find that, and you can copy this line from the gemfile. And this is going to go into our gemfile, at the very bottom, and we'll lock it down to that version, so we know if there are any major changes to Stripe's gem, that our code won't be affected by that. So, this is going to allow us to stop our rails server and run bundle to install…

Contents