{"id":8328,"date":"2019-12-17T11:29:16","date_gmt":"2019-12-17T11:29:16","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=8328"},"modified":"2021-09-15T17:32:19","modified_gmt":"2021-09-15T12:02:19","slug":"charge-customers-later-using-stripe-with-ruby-on-rails","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/","title":{"rendered":"Charge Customers Later Using Stripe With Ruby on Rails"},"content":{"rendered":"\n<p>Stripe is one of the most popular payment solutions among business and developers communities. It is equally popular in <a href=\"https:\/\/github.com\/BoTreeConsultingTeam\" target=\"_blank\" rel=\"noopener noreferrer\">Ruby community<\/a> as well.<\/p>\n\n\n\n<p>Stripe Ruby on Rails is useful for payment integrations in online stores and other websites that require payment authorization services.<\/p>\n\n\n\n<p>Rails 6 stripe work together perfectly to ensure that there\u2019s no problem in payment mechanisms. Stripe is becoming a global payment platform, enabling every Ruby on Rails application to take advantage of it.<\/p>\n\n\n\n<p>We are building a health product in Ruby on Rails where we need to store the credit card details and charge the patient after they visit the doctor. I will share a quick demo of how to integrate Stripe, store credit card details on Stripe securely and charge the customer later. Hang tight!<\/p>\n\n\n\n<p>Add the Stripe gem to your application\u2019s <strong>Gemfile<\/strong>:<\/p>\n\n\n\n<p><code>gem 'stripe'<\/code><\/p>\n\n\n\n<p>Then, run bundle install to install the gem.<\/p>\n\n\n\n<p><code>bundle install<\/code><\/p>\n\n\n\n<p>First we need the API keys to integrate Rails Stripe gem in our <a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\" target=\"_blank\" rel=\"noreferrer noopener\">Rails application<\/a>. For that, we need to create an account in Stripe and generate the secret key and publishable key.<\/p>\n\n\n\n<p>The application makes use of these publishable and secret API keys to interact with Rails Stripe gem securely. An initializer is a good place to set these values, which will be provided when the application is started.<\/p>\n\n\n\n<p>Create <strong>config\/initializers\/stripe.rb<\/strong> add the following:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/1ad1f6bcdead190b4749b0fb4b8db88b.js\"><\/script><\/p>\n\n\n\n<p>Now, we can use the above config to call Stripe <a href=\"https:\/\/www.botreetechnologies.com\/blog\/omnivore-api-ruby-rails\/\" target=\"_blank\" rel=\"noreferrer noopener\">API <\/a>for various payment operations.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Checkout&nbsp;<\/strong><a href=\"https:\/\/www.botreetechnologies.com\/blog\/pros-and-cons-of-ruby-on-rails-for-web-development\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Pros and Cons of Ruby on Rails<\/strong><\/a><\/p><\/blockquote>\n\n\n\n<p>Let us quickly check the integration working on not using a javascript plugin provided by Stripe. Stripe provides a drop-in the script to add nice looking and secure checkout page in any web application which collects credit card number, CVV and expiry date of the card from the customer<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/07dedf7f6d36410222d550b4ec24e20b.js\"><\/script><\/p>\n\n\n\n<p>A <strong>data-key<\/strong> attribute will be the publishable key that we got from Stripe.<\/p>\n\n\n\n<p>We just need to put this script in a view file where we need to checkout the page. When the view files get rendered, you will have one button for payment like below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/payment.png\" alt=\"Payment Window\" class=\"wp-image-13362\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/payment.png 1024w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/payment-300x169.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/payment-768x432.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>On clicking the button, you will have a popup asking for credit card details like below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/popup-window.png\" alt=\"Popup Window\" class=\"wp-image-13363\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/popup-window.png 1024w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/popup-window-300x169.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/popup-window-768x432.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For testing you can use the following details:<\/p>\n\n\n\n<p><strong>Credit Card Number<\/strong>: 4242 4242 4242 4242<\/p>\n\n\n\n<p><strong>CVC: <\/strong>123<\/p>\n\n\n\n<p>and any future month and year for the expiry date.<\/p>\n\n\n\n<p>Fill in the details and submit. The payment process will be done by the Stripe directly and on the successful operation, it will redirect to the path mentioned in the form above. You should receive request params like below after Striper redirects you back.<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/6427b7c3d19a5662884c549f048039e1.js\"><\/script><\/p>\n\n\n\n<p>Now, we don\u2019t want to ask the user for the credit card details every time he should be charged. Also, storing credit card details on your Rails app is very challenging(PCI Compliance) if it\u2019s not your core feature of the app. Stripe does it very well and follows all compliances required. So let\u2019s leverage that feature to securely save credit card details for customers to charge them later.<\/p>\n\n\n\n<p>We first need a Stripe authentication token for every customer that we want to charge and store it in the database of our app.<\/p>\n\n\n\n<p>To get the authentication token, we first need to generate the Stripe token and then only we will be able to create the customer in Stripe using the token.<\/p>\n\n\n\n<p>Following API call is used to create the Stripe token<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/05ced040aaa3fa7b92630c92ffc9de5a.js\"><\/script><\/p>\n\n\n\n<p>Collect the Stripe token from the <code>response<\/code> by access it via <code>response[: id]<\/code>. We will use this token for creating the customer for the particular user, so we will have the customer key that we will store in the database for processing future payments for that customer.<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/05cc03bc6d17283c7a03060bc5852cb7.js\"><\/script><\/p>\n\n\n\n<p>We will find the customer token using the <code>customer.id<\/code>, we need to store this <code>customer.id<\/code> in our database.<\/p>\n\n\n\n<p>Now, we have the customer token of the user so let&#8217;s proceed to the payment. We will use the charge API as follows:<\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/HardikUPurohit\/49a6a9fc17d0dc8435efcdad1fb1853f.js\"><\/script><\/p>\n\n\n\n<p>We will have the response of the API call for about the payment details in <strong>charge<\/strong>.<\/p>\n\n\n\n<p>That\u2019s it!<\/p>\n\n\n\n<p>Now we can do as many payments using customer token stored in our database.<\/p>\n\n\n\n<p>Github link:&nbsp; <a href=\"https:\/\/github.com\/HardikUPurohit\/stripe-integration\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/HardikUPurohit\/stripe-integration<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Read also: <a href=\"https:\/\/www.botreetechnologies.com\/blog\/top-reasons-why-businesses-should-invest-in-ruby-on-rails-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Top Reasons Why Businesses Should Invest in Ruby on Rails Development<\/a><\/p><\/blockquote>\n\n\n\n<p class=\"has-text-align-left\"><em><strong>Happy Coding!!<\/strong><\/em><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.botreetechnologies.com\/contact\">Consulting is free<\/a> &#8211; let us help you grow!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stripe is one of the most popular payment solutions among&#8230;<\/p>\n","protected":false},"author":17,"featured_media":13361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-8328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Charge Customers Later Using Stripe With Ruby on Rails<\/title>\n<meta name=\"description\" content=\"Do you want to charge customers later in your Ruby on Rails application? Here&#039;s the process of integrating Stripe in the Rails app to charge customers later for their purchases.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Charge Customers Later Using Stripe With Ruby on Rails\" \/>\n<meta property=\"og:description\" content=\"Do you want to charge customers later in your Ruby on Rails application? Here&#039;s the process of integrating Stripe in the Rails app to charge customers later for their purchases.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-17T11:29:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-15T12:02:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hardik Purohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hardik Purohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\"},\"author\":{\"name\":\"Hardik Purohit\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2\"},\"headline\":\"Charge Customers Later Using Stripe With Ruby on Rails\",\"datePublished\":\"2019-12-17T11:29:16+00:00\",\"dateModified\":\"2021-09-15T12:02:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\"},\"wordCount\":718,\"commentCount\":4,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\",\"name\":\"Charge Customers Later Using Stripe With Ruby on Rails\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg\",\"datePublished\":\"2019-12-17T11:29:16+00:00\",\"dateModified\":\"2021-09-15T12:02:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2\"},\"description\":\"Do you want to charge customers later in your Ruby on Rails application? Here's the process of integrating Stripe in the Rails app to charge customers later for their purchases.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"Stripe gem With Ruby on Rails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Charge Customers Later Using Stripe With Ruby on Rails\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2\",\"name\":\"Hardik Purohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png\",\"caption\":\"Hardik Purohit\"},\"description\":\"Hardik is a React JS and Ruby on Rails Developer. He loves Ruby, JavaScript, problem-solving and taking ownership of work. Apart from coding, he likes to listen to songs, playing cricket and driving cars.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Charge Customers Later Using Stripe With Ruby on Rails","description":"Do you want to charge customers later in your Ruby on Rails application? Here's the process of integrating Stripe in the Rails app to charge customers later for their purchases.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/","og_locale":"en_US","og_type":"article","og_title":"Charge Customers Later Using Stripe With Ruby on Rails","og_description":"Do you want to charge customers later in your Ruby on Rails application? Here's the process of integrating Stripe in the Rails app to charge customers later for their purchases.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2019-12-17T11:29:16+00:00","article_modified_time":"2021-09-15T12:02:19+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg","type":"image\/jpeg"}],"author":"Hardik Purohit","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Hardik Purohit","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/"},"author":{"name":"Hardik Purohit","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2"},"headline":"Charge Customers Later Using Stripe With Ruby on Rails","datePublished":"2019-12-17T11:29:16+00:00","dateModified":"2021-09-15T12:02:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/"},"wordCount":718,"commentCount":4,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/","url":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/","name":"Charge Customers Later Using Stripe With Ruby on Rails","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg","datePublished":"2019-12-17T11:29:16+00:00","dateModified":"2021-09-15T12:02:19+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2"},"description":"Do you want to charge customers later in your Ruby on Rails application? Here's the process of integrating Stripe in the Rails app to charge customers later for their purchases.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/12\/stripe-with-ruby-on-rails.jpg","width":1920,"height":1280,"caption":"Stripe gem With Ruby on Rails"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/charge-customers-later-using-stripe-with-ruby-on-rails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Charge Customers Later Using Stripe With Ruby on Rails"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/d9d60543a5565e4cd5ad6963b8a346a2","name":"Hardik Purohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/hardik-purohit-150x150.png","caption":"Hardik Purohit"},"description":"Hardik is a React JS and Ruby on Rails Developer. He loves Ruby, JavaScript, problem-solving and taking ownership of work. Apart from coding, he likes to listen to songs, playing cricket and driving cars."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=8328"}],"version-history":[{"count":5,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8328\/revisions"}],"predecessor-version":[{"id":16327,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8328\/revisions\/16327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13361"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=8328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=8328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=8328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}