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.
Making PDF receipts
From the course: Adding Stripe Payments to Your Ruby on Rails Application
Making PDF receipts
- [Instructor] To generate our PDF receipts we're going to use a gem that I created a couple years ago and creatively named receipts. So this generates receipts that look like this, they'll have a logo, an ID for the charge, so that if you need to do support you can look it up easily if they send you the receipt, and it tells you the support information for the email address that they would need to contact, and it records all that information about the account, such as which account it was, what product they purchased, the amount, and which credit card was charged, as well as your company name and email address at the bottom. This gem's really easy to use, you basically just install it and you create a receipt method on your charge and create a new receipt in memory, which will represent the PDF it's going to generate. And you just pass in some options. There's a whole bunch of options that you can pass in. There's a few that are required. You can either pass in the product you're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.