lib/active_merchant/billing/gateways/instapay.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/instapay.rb in activemerchant-1.80.0
- old
+ new
@@ -14,12 +14,12 @@
self.homepage_url = 'http://www.instapayllc.com'
# The name of the gateway
self.display_name = 'InstaPay'
- SUCCESS = "Accepted"
- SUCCESS_MESSAGE = "The transaction has been approved"
+ SUCCESS = 'Accepted'
+ SUCCESS_MESSAGE = 'The transaction has been approved'
def initialize(options = {})
requires!(options, :login)
super
end
@@ -64,11 +64,11 @@
post[:postonly] = reference
end
def add_customer_data(post, options)
post[:ci_email] = options[:email]
- post["ci_IP Address"] = options[:ip]
+ post['ci_IP Address'] = options[:ip]
end
def add_address(post, options)
if address = options[:billing_address] || options[:address]
post[:ci_billaddr1] = address[:address1]
@@ -152,10 +152,10 @@
post[:acctid] = @options[:login]
if(@options[:password])
post[:merchantpin] = @options[:password]
end
post[:action] = action
- request = post.merge(parameters).collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&")
+ request = post.merge(parameters).collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join('&')
request
end
end
end
end