lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.84.0
- old
+ new
@@ -1,6 +1,7 @@
# coding: utf-8
+
require 'rexml/document'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
# = Ogone DirectLink Gateway
@@ -119,17 +120,15 @@
'KO' => 'N',
'NO' => 'R' }
SUCCESS_MESSAGE = 'The transaction was successful'
- THREE_D_SECURE_DISPLAY_WAYS = { :main_window => 'MAINW', # display the identification page in the main window
- # (default value).
- :pop_up => 'POPUP', # display the identification page in a pop-up window
- # and return to the main window at the end.
- :pop_ix => 'POPIX' } # display the identification page in a pop-up window
- # and remain in the pop-up window.
+ THREE_D_SECURE_DISPLAY_WAYS = { :main_window => 'MAINW', # display the identification page in the main window (default value).
+ :pop_up => 'POPUP', # display the identification page in a pop-up window and return to the main window at the end.
+ :pop_ix => 'POPIX' } # display the identification page in a pop-up window and remain in the pop-up window.
+
OGONE_NO_SIGNATURE_DEPRECATION_MESSAGE = 'Signature usage will be the default for a future release of ActiveMerchant. You should either begin using it, or update your configuration to explicitly disable it (signature_encryptor: none)'
OGONE_STORE_OPTION_DEPRECATION_MESSAGE = "The 'store' option has been renamed to 'billing_id', and its usage is deprecated."
self.test_url = 'https://secure.ogone.com/ncol/test/'
self.live_url = 'https://secure.ogone.com/ncol/prod/'
@@ -224,13 +223,13 @@
true
end
def scrub(transcript)
transcript.
- gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
- gsub(%r((&?cardno=)[^&]*)i, '\1[FILTERED]').
- gsub(%r((&?cvc=)[^&]*)i, '\1[FILTERED]').
- gsub(%r((&?pswd=)[^&]*)i, '\1[FILTERED]')
+ gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
+ gsub(%r((&?cardno=)[^&]*)i, '\1[FILTERED]').
+ gsub(%r((&?cvc=)[^&]*)i, '\1[FILTERED]').
+ gsub(%r((&?pswd=)[^&]*)i, '\1[FILTERED]')
end
private
def reference_from(authorization)