lib/active_merchant/billing/gateways/ideal/ideal_base.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/ideal/ideal_base.rb in activemerchant-1.44.0
- old
+ new
@@ -50,13 +50,10 @@
def url
(test? ? test_url : live_url)
end
def token
- if @token.nil?
- @token = create_fingerprint(@options[:pem])
- end
- @token
+ @token ||= create_fingerprint(@options[:pem])
end
# <?xml version="1.0" encoding="UTF-8"?>
# <AcquirerTrxReq xmlns="http://www.idealdesk.com/Message" version="1.1.0">
# <createDateTimeStamp>2001-12-17T09:30:47.0Z</createDateTimeStamp>