Sha256: d672c10c9da38808041fe559419e48ca293bac7667eb5ea845a96a43c5edba12
Contents?: true
Size: 427 Bytes
Versions: 4
Compression:
Stored size: 427 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
epaybg-1.0.0 | lib/epaybg/view_helpers.rb |
epaybg-0.3.1 | lib/epaybg/view_helpers.rb |
epaybg-0.3.0 | lib/epaybg/view_helpers.rb |
epaybg-0.2.0 | lib/epaybg/view_helpers.rb |