class PayCertify::ThreeDS::Callback
Attributes
params[RW]
session[RW]
Public Class Methods
new(params={}, session={})
click to toggle source
Calls superclass method
# File lib/paycertify/three_ds/callback.rb, line 7 def initialize(params={}, session={}) self.params = params.to_h self.session = session.to_h super(self.params.merge(self.session)) end
Public Instance Methods
authenticate!()
click to toggle source
# File lib/paycertify/three_ds/callback.rb, line 30 def authenticate! PayCertify::ThreeDS.authenticate!(settings: session, callback_params: params) end
authentication?()
click to toggle source
# File lib/paycertify/three_ds/callback.rb, line 14 def authentication? !execute_transaction? && self['PaRes'].present? end
execute_transaction?()
click to toggle source
# File lib/paycertify/three_ds/callback.rb, line 18 def execute_transaction? self['_frictionless_3ds_callback'].present? end
handshake()
click to toggle source
# File lib/paycertify/three_ds/callback.rb, line 22 def handshake self.slice('cavv', 'eci', 'cavv_algorithm', 'xid') end
redirect_to(location)
click to toggle source
# File lib/paycertify/three_ds/callback.rb, line 26 def redirect_to(location) "<script>window.location.href = '#{location}'</script>" end