Using Stripe API for Payment Transactions and generating Sales Report

Recently we had requirement to generate weekly sales report in one of the E-commerce apAs we were using Stripe services for payment handling, I studied some of Stripe API methods and how it actually works. So in this article I will briefly explain how we can handle payment through Stripe and how we can get sales data from Stripe. Firstly these are few basic steps to start using Stripe API: Add 'stripe' gem to your gemfile. bundle it You will get secret and public key pairs for live and test mode each from your Stripe account. You need to set