Sha256: 88a4a1d7afbe565f7e5a569db6ae8fa6a9389baaa6416da1322bf054c8fa89a3
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
module Versapay module Helpers # Provides a debit agreement link def debit_agreement_link_to(anchor, message = "Debit agreement", opts = {}) link = "https://" + Versapay::site + "/authorize?api_token=#{Versapay.token}&message=#{html_escape(message).gsub(/ /, "+")}" opts.each do |k, v| link += "&#{k}=#{html_escape(v)}" end "<a href=\"#{link}\">#{anchor}</a>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
versapay-0.1.0 | lib/versapay/rails_helpers.rb |
versapay-0.0.1 | lib/versapay/rails_helpers.rb |