Sha256: ae4c4ab1be72c42b469303dfe38ff4d04f2c99f9188cdf73eaf8c3d0cc5df6d4

Contents?: true

Size: 814 Bytes

Versions: 4

Compression:

Stored size: 814 Bytes

Contents

module Adyen
  module SkinBuilder
    module Helper
      module Adyen

        # start the adyen form, if no block padded payment fields are auto included
        def adyen_form_tag(&block)
          buffer << render_partial(:adyen_form, :views => settings.views, :block => block)
        end

        # render the payment fields
        def adyen_payment_fields(&block)
          if block_given?
            capture &block
          else
            render_partial :adyen_payment_fields, :views => settings.views
          end
        end

        def adyen_skin_code
          @skin.code
        end

        # to be done
        # def adyen_custom_field_tag
        # end
        #
        # def adyen_custom_hidden_tag
        # end

        ## autofill cc
        ## autofill avs
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adyen-skinbuilder-0.4.3 lib/adyen-skinbuilder/helper/adyen.rb
adyen-skinbuilder-0.4.2 lib/adyen-skinbuilder/helper/adyen.rb
adyen-skinbuilder-0.4.1 lib/adyen-skinbuilder/helper/adyen.rb
adyen-skinbuilder-0.3.2 lib/adyen-skinbuilder/helper/adyen.rb