Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: stripe/stripe-ruby
...
head fork: stripe/stripe-ruby
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/stripe/charge.rb
10 lib/stripe/charge.rb
View
@@ -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
@@ -25,5 +31,9 @@ def refund_url
def capture_url
url + '/capture'
end
+
+ def dispute_url
+ url + '/dispute'
+ end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.