Method: Stripe::Source.update
- Defined in:
- lib/stripe/resources/source.rb
.update(id, params = {}, opts = {}) ⇒ Object
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](stripe.com/docs/sources) for more detail.
35 36 37 38 39 40 41 42 |
# File 'lib/stripe/resources/source.rb', line 35 def self.update(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/sources/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end |