Class: Checkout::PaymentsController

Inherits:
SimplyController
  • Object
show all
Defined in:
app/controllers/nimbleshop_simply/checkout/payments_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject



8
9
10
11
12
13
14
# File 'app/controllers/nimbleshop_simply/checkout/payments_controller.rb', line 8

def new
  @page_sub_title = 'All payments are secure and encrypted. We never store your credit card information.'
  @creditcard = Creditcard.new
  @show_shipping_and_tax_info = true
  @payment_methods = PaymentMethod.enabled.ascending
  render text: 'No payment method has been setup. Please setup atleast one payment method.' if PaymentMethod.count == 0
end

#ssl_configured?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/controllers/nimbleshop_simply/checkout/payments_controller.rb', line 16

def ssl_configured?
  PaymentMethod.all.find { |i| i.use_ssl? }
end