class Stripe::PaymentMethod

Constants

OBJECT_NAME

Public Instance Methods

attach(params = {}, opts = {}) click to toggle source
# File lib/stripe/resources/payment_method.rb, line 14
def attach(params = {}, opts = {})
  resp, opts = request(:post, resource_url + "/attach", params, opts)
  initialize_from(resp.data, opts)
end
detach(params = {}, opts = {}) click to toggle source
# File lib/stripe/resources/payment_method.rb, line 19
def detach(params = {}, opts = {})
  resp, opts = request(:post, resource_url + "/detach", params, opts)
  initialize_from(resp.data, opts)
end