lib/atpay/button/template.rb in atpay_buttons-1.4.3 vs lib/atpay/button/template.rb in atpay_buttons-1.4.4
- old
+ new
@@ -1,7 +1,8 @@
require 'liquid'
require 'cgi'
+require 'uri'
module AtPay
module Button
class Template
# Requires destination and email in addition to this, which should just be strings...
@@ -12,9 +13,10 @@
:background_color => "#6dbe45",
:foreground_color => "#ffffff",
:image => "https://www.atpay.com/wp-content/themes/atpay/images/bttn_cart.png",
:processor => ENV["ATPAY_PAYMENT_ADDRESS"] || "transaction@secure.atpay.com",
:templates => File.join(File.dirname(__FILE__), "/templates"),
+ :analytic_url => nil,
:wrap => false,
:wrap_text => "Made for Mobile"
}.update(options)
@options[:image] = nil if @options[:image] == ''