Refund with Stripe?

What would be the best way to incorporate refund into the product? Say that, with the marketplace product we have developed, a customer orders a product, pays for it, gets it, but says later that he/she wants to return it to the seller. I did a bit of research but wasn't sure whether I would need to ask for the customer's bank account information or there is an easy way to refund with Stripe. Thanks for your help.

Posted almost 5 years ago by Nobu Iguchi
Posted almost 5 years ago by Alex Yang

There are two ways to issue a refund on Stripe. The first way is to login to your account, find the specific payment, and click 'Refund'. This will refund the amount to the payment card it was originally charged to, including the Stripe fee.

But if you want to automate this process and build a refund feature into your app, you'll need to use the Stripe API. See the right side of this link for an example of how that works in Ruby: https://stripe.com/docs/api/ruby#create_refund. You would basically need to add a button to your view page, set the route to a new action that you define in your controller, and add the code to process the refund there. Also don't forget to add the URL for this new route in your config/routes.rb file. Hope that helps!

0
Posted almost 5 years ago by Nobu Iguchi

Thank you. I do see the refund option on my Stripe account now. I will go with the first approach and switch to the second approach of automation at a later stage.

0