Class: Checkout::PaymentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Checkout::PaymentsController
- Defined in:
- app/controllers/nimbleshop_simply/checkout/payments_controller.rb
Instance Method Summary collapse
Instance Method Details
#new ⇒ Object
8 9 10 11 12 |
# 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 render text: 'No payment method has been setup. Please setup atleast one payment method.' if PaymentMethod.count == 0 end |
#ssl_configured? ⇒ Boolean
14 15 16 |
# File 'app/controllers/nimbleshop_simply/checkout/payments_controller.rb', line 14 def ssl_configured? PaymentMethod.all.find { |i| i.use_ssl? } end |