Module Simplepay::Helpers::RailsHelper
In: lib/simplepay/helpers/rails_helper.rb
RuntimeError Error Service Standard Marketplace Donation Subscription MarketplacePolicy Interval SubscriptionPeriod BillingFrequency Comparable Field Service Epoch Currency Amount Boolean ResponseStatusCode Services Authentication FormHelper NotificationHelper RailsHelper Helpers Interval Currency Support Boolean Simplepay dot/f_2.png

Adds helpers to your views for generating the correct HTML forms and valid signatures.

Methods

Public Instance methods

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'}) %>

[Source]

# 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

[Validate]