Module: Simplepay::Helpers::RailsHelper
- Defined in:
- lib/simplepay/helpers/rails_helper.rb
Overview
Adds helpers to your views for generating the correct HTML forms and valid signatures.
Instance Method Summary collapse
-
#simplepay_form_for(service_name, attributes = {}, submit_tag = nil) ⇒ Object
This is the general interface for generating your Simple Pay service forms.
Instance Method Details
#simplepay_form_for(service_name, attributes = {}, submit_tag = nil) ⇒ Object
This is the general interface for generating your Simple Pay service forms. See Simplepay::Services for available services and information specific to each.
Example
(in your view)
<%= simplepay_form_for(:service_name, {:attr => 'foo'}) %>
23 24 25 26 |
# File 'lib/simplepay/helpers/rails_helper.rb', line 23 def simplepay_form_for(service_name, attributes = {}, submit_tag = nil) service = get_simplepay_service(service_name) service.form(attributes, submit_tag) end |