Add the below line to your Gemfile of the application:Copy
Execute the following command:Copy
Alternatively, you can install it by executing the following command:Copy
$ gem install razorpay
Watch this video to know how to integrate Razorpay Payment Gateway with Ruby-based website.
After payment is
authorized, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time.
- Auto-capture payments (recommended)
Authorized payments can be automatically captured. You can auto-capture all payments using global settings on the Razorpay Dashboard.
Payment capture settings work only if you have integrated with Orders API in your server side. Know more about the Orders API.
- Manually capture payments
Each authorized payment can also be captured individually. You can manually capture payments:
Know more about Capture Settings for payments.