lib/active_merchant/billing/gateways/ideal/ideal_base.rb in activemerchant-1.28.0 vs lib/active_merchant/billing/gateways/ideal/ideal_base.rb in activemerchant-1.29.0

- old
+ new

@@ -17,18 +17,14 @@ AUTHENTICATION_TYPE = 'SHA1_RSA' LANGUAGE = 'nl' SUB_ID = '0' API_VERSION = '1.1.0' - attr_reader :url - def initialize(options = {}) requires!(options, :login, :password, :pem) - @options = options - @options[:pem_password] = options[:password] - @url = test? ? test_url : live_url + options[:pem_password] = options[:password] super end # Setup transaction. Get redirect_url from response.service_url def setup_purchase(money, options = {}) @@ -47,14 +43,15 @@ # Get list of issuers from response.issuer_list def issuers commit(build_directory_request) end - def test? - @options[:test] || Base.gateway_mode == :test + private + + def url + (test? ? test_url : live_url) end - private def token if @token.nil? @token = create_fingerprint(@options[:pem]) end @token