Method: Stripe::TopupService#retrieve
- Defined in:
- lib/stripe/services/topup_service.rb
#retrieve(topup, params = {}, opts = {}) ⇒ Object
Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.
28 29 30 31 32 33 34 35 36 |
# File 'lib/stripe/services/topup_service.rb', line 28 def retrieve(topup, params = {}, opts = {}) request( method: :get, path: format("/v1/topups/%<topup>s", { topup: CGI.escape(topup) }), params: params, opts: opts, base_address: :api ) end |