razorpay / razorpay-ruby

Razorpay Ruby SDK
https://rubygems.org/gems/razorpay
MIT License
64 stars 59 forks source link

Need a provision to create/update subscription using the gem #53

Closed pbharadiya closed 6 years ago

pbharadiya commented 6 years ago

Hi, We are testing out razorpay as our payment gateway. One of the features that we seek is subscription creation and updating using ruby-gem. Is it possible to do so?

pikender commented 6 years ago

@pbharadiya Subscriptions Apis are still not part of official SDK yet but there is a PR pending to be merged for the support.

In the meanwhile, you can use my fork to get you started.

Adding below in your Gemfile should activate the needed magic :)

# Gemfile

gem 'razorpay', github: 'vibrantstack/razorpay-ruby', branch: 'f/subscriptions'

Refer above PR description for the Usage

harman28 commented 6 years ago

Hi @pbharadiya Subscriptions support will be added to this gem shortly (we're aiming for a release this week), thanks to the efforts of @pikender. If you'd rather not wait, please feel free to use mentioned fork, but please keep checking back in for updates!

harman28 commented 6 years ago

Added in v2.2.0