
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
razorpay_integration
Advanced tools
RazorpayIntegration is a Ruby gem for integrating with the Razorpay API.
Add this line to your application's Gemfile:
gem 'razorpay_integration'
And then execute:
$ bundle
Or install it yourself as:
$ gem install razorpay_integration
You can configure the gem with your Razorpay API key and secret like this:
RazorpayIntegration.configure do |config|
config.api_key = 'your_api_key'
config.api_secret = 'your_api_secret'
end
Here's how you can create a new customer:
Create a new customer
customer = RazorpayIntegration::Customer.new
response = customer.create('Customer Name', 'Customer Contact', 'customer@email.com')
Edit an existing customer
response = customer.edit('customer_id', 'New Customer Name', 'New Customer Contact', 'new_customer@email.com')
List customers
response = customer.list(10, 0)
Get a customer by ID
response = customer.get('customer_id')
lib/: Contains the main codebase for the gem.
razorpay_integration.rb: Main module file.
razorpay_integration/: Contains the classes that form the core functionality of the gem.
Bug reports and pull requests are welcome on GitHub at https://github.com/nonuabi/razorpay_integration. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that razorpay_integration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.