Skip to Content Skip to Search
Methods
S
U

Instance Public methods

show()

# File app/controllers/v2/payment_methods_controller.rb, line 3
def show
  return head :not_found unless has_payment_method?

  render json: MemberApi::Action::PaymentMethodProvider.new(stripe_customer),
    serializer: PaymentMethod::PaymentMethodSerializer,
    status: :ok
end

update()

# File app/controllers/v2/payment_methods_controller.rb, line 11
def update
  if update_payment_method
    head :ok
  else
    render_error(stripe_customer.error, :expectation_failed)
  end
end