Sha256: 16aa9655c7fb669483dd9f4547bf2dd336d091c0041a035495cdb8c08a9e9646

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

module Epaybg
  module ViewHelpers

    def link_base(p, action, image="")
      link_to image_tag(image), "#{p.url}/?PAGE=#{action}&ENCODED=#{p.encoded}&CHECKSUM=#{p.checksum}&URL_OK=#{p.url_ok}&URL_CANCEL=#{p.url_cancel}" 
    end

    def epay_link(p)
      link_base p, "paylogin", "pay_with_epay.png"
    end

    def credit_card_link(p)
      link_base p, "credit_paydirect", 'pay_with_credit_card.jpg'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epaybg-0.1.2 lib/epaybg/view_helpers.rb