mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-06 00:00:29 -05:00
Let cancel_subscription accept optional params argument
This commit is contained in:
parent
42f20ff6c9
commit
ad974d1d18
@ -321,8 +321,8 @@ module Stripe
|
||||
Charge.all({ :customer => id }, @api_key)
|
||||
end
|
||||
|
||||
def cancel_subscription
|
||||
response, api_key = Stripe.request(:delete, subscription_url, @api_key)
|
||||
def cancel_subscription(params={})
|
||||
response, api_key = Stripe.request(:delete, subscription_url, @api_key, params)
|
||||
refresh_from({ :subscription => response }, api_key, true)
|
||||
subscription
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user