Method: Stripe::Source.create

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

.create(params = {}, opts = {}) ⇒ Object

Creates a new source object.



28
29
30
# File 'lib/stripe/resources/source.rb', line 28

def self.create(params = {}, opts = {})
  request_stripe_object(method: :post, path: "/v1/sources", params: params, opts: opts)
end