Sha256: 5a833565b88e08dfce3ad76977256fe15118bdabd8baad05b6dc72bde33d4f94

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

require 'kaui/killbill_helper'

class Kaui::PaymentMethodsController < Kaui::EngineController
  def show
    # TODO: show payment method details
  end

  def destroy
    @payment_method_id = params[:id]
    if @payment_method_id.present?
      Kaui::KillbillHelper.delete_payment_method(@payment_method_id)
    else
      flash[:notice] = "Did not get the payment method id"
    end
    redirect_to :back
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kaui-0.1.4 app/controllers/kaui/payment_methods_controller.rb
kaui-0.1.3 app/controllers/kaui/payment_methods_controller.rb
kaui-0.1.2 app/controllers/kaui/payment_methods_controller.rb
kaui-0.1.0 app/controllers/kaui/payment_methods_controller.rb
kaui-0.0.9 app/controllers/kaui/payment_methods_controller.rb
kaui-0.0.8 app/controllers/kaui/payment_methods_controller.rb