Skip to content

Commit

Permalink
Support for updating charge disputes
Browse files Browse the repository at this point in the history
  • Loading branch information
spakanati committed Nov 8, 2012
1 parent 3630b0d commit 9e807e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/stripe/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ def capture(params={})
self
end

def update_dispute(params)
response, api_key = Stripe.request(:post, dispute_url, @api_key, params)
refresh_from({ :dispute => response }, api_key, true)
dispute
end

private

def refund_url
Expand All @@ -25,5 +31,9 @@ def refund_url
def capture_url
url + '/capture'
end

def dispute_url
url + '/dispute'
end
end
end

0 comments on commit 9e807e9

Please sign in to comment.