Class: CheckoutSdk::Sessions::BrowserSession

Inherits:
ChannelData
  • Object
show all
Defined in:
lib/checkout_sdk/sessions/channel/browser_session.rb

Instance Attribute Summary collapse

Attributes inherited from ChannelData

#channel

Instance Method Summary collapse

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_headerString

Returns:

  • (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_depthString

Returns:

  • (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_allowedTrueClass, FalseClass

Returns Whether the Payment API is enabled for all parent frames. Required for Google SPA support in hosted sessions.

Returns:

  • (TrueClass, FalseClass)

    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_addressString

Returns:

  • (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_enabledTrueClass, FalseClass

Returns:

  • (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_enabledTrueClass, FalseClass

Returns:

  • (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

#languageString

Returns:

  • (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_heightString

Returns:

  • (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_widthString

Returns:

  • (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_completionString

Returns:



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

#timezoneString

Returns:

  • (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_agentString

Returns:

  • (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_hintString

Returns The raw Sec-CH-UA header value. This can improve Google SPA support.

Returns:

  • (String)

    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