lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.20.4 vs lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.21.0

- old
+ new

@@ -51,11 +51,11 @@ } # login: merchant number # password: referrer url (for authorize authentication) def initialize(options = {}) - requires!(options, :login, :password) + requires!(options, :login) @options = options super end def authorize(money, credit_card_or_reference, options = {}) @@ -179,10 +179,10 @@ REXML::Document.new(ssl_post('https://' + API_HOST + '/remote/payment.asmx', data, headers)) end def do_authorize(params) headers = {} - headers['Referer'] = options[:password] if options[:password] + headers['Referer'] = (options[:password] || "activemerchant.org") response = raw_ssl_request(:post, 'https://' + API_HOST + '/auth/default.aspx', authorize_post_data(params), headers) # Authorize gives the response back by redirecting with the values in # the URL query