Method: Stripe::ApplicationFee#refund

Defined in:
lib/stripe/resources/application_fee.rb

#refund(params = {}, opts = {}) ⇒ Object

If you don’t need access to an updated fee object after the refund, it’s more performant to just call ‘fee.refunds.create` directly.



15
16
17
18
19
20
21
22
# File 'lib/stripe/resources/application_fee.rb', line 15

def refund(params = {}, opts = {})
  refunds.create(params, opts)

  # now that a refund has been created, we expect the state of this object
  # to change as well (i.e. `refunded` will now be `true`) so refresh it
  # from the server
  refresh
end