Class: CheckoutSdk::Sessions::BrowserSession
- Inherits:
-
ChannelData
- Object
- ChannelData
- CheckoutSdk::Sessions::BrowserSession
- Defined in:
- lib/checkout_sdk/sessions/channel/browser_session.rb
Instance Attribute Summary collapse
- #accept_header ⇒ String
- #color_depth ⇒ String
-
#iframe_payment_allowed ⇒ TrueClass, FalseClass
Whether the Payment API is enabled for all parent frames.
- #ip_address ⇒ String
- #java_enabled ⇒ TrueClass, FalseClass
- #javascript_enabled ⇒ TrueClass, FalseClass
- #language ⇒ String
- #screen_height ⇒ String
- #screen_width ⇒ String
- #three_ds_method_completion ⇒ String
- #timezone ⇒ String
- #user_agent ⇒ String
-
#user_agent_client_hint ⇒ String
The raw Sec-CH-UA header value.
Attributes inherited from ChannelData
Instance Method Summary collapse
-
#initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) ⇒ BrowserSession
constructor
A new instance of BrowserSession.
Constructor Details
#initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) ⇒ BrowserSession
Returns a new instance of BrowserSession.
49 50 51 52 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 49 def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end |
Instance Attribute Details
#accept_header ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#color_depth ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#iframe_payment_allowed ⇒ TrueClass, FalseClass
Returns Whether the Payment API is enabled for all parent frames. Required for Google SPA support in hosted sessions.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#ip_address ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#java_enabled ⇒ TrueClass, FalseClass
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#javascript_enabled ⇒ TrueClass, FalseClass
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#language ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#screen_height ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#screen_width ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#three_ds_method_completion ⇒ String
Returns ThreeDsMethodCompletion.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#timezone ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#user_agent ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |
#user_agent_client_hint ⇒ String
Returns The raw Sec-CH-UA header value. This can improve Google SPA support.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/checkout_sdk/sessions/channel/browser_session.rb', line 34 class BrowserSession < ChannelData attr_accessor :three_ds_method_completion, :accept_header, :java_enabled, :javascript_enabled, :language, :color_depth, :screen_height, :screen_width, :timezone, :user_agent, :ip_address, :iframe_payment_allowed, :user_agent_client_hint def initialize(three_ds_method_completion: CheckoutSdk::Sessions::ThreeDsMethodCompletion::U) super(ChannelDataType::BROWSER) @three_ds_method_completion = three_ds_method_completion end end |