Method: Stripe::TopupService#cancel
- Defined in:
- lib/stripe/services/topup_service.rb
#cancel(topup, params = {}, opts = {}) ⇒ Object
Cancels a top-up. Only pending top-ups can be canceled.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/topup_service.rb', line 7 def cancel(topup, params = {}, opts = {}) request( method: :post, path: format("/v1/topups/%<topup>s/cancel", { topup: CGI.escape(topup) }), params: params, opts: opts, base_address: :api ) end |