Class: PaypalServerSdk::PaypalExperienceLandingPage

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal_server_sdk/models/paypal_experience_landing_page.rb

Overview

The type of landing page to show on the PayPal site for customer checkout.

Constant Summary collapse

PAYPAL_EXPERIENCE_LANDING_PAGE =
[
  # When the customer clicks PayPal Checkout, the customer is redirected to
  # a page to log in to PayPal and approve the payment.
  LOGIN = 'LOGIN'.freeze,

  # When the customer clicks PayPal Checkout, the customer is redirected to
  # a page to enter credit or debit card and other relevant billing
  # information required to complete the purchase. This option has
  # previously been also called as 'BILLING'
  GUEST_CHECKOUT = 'GUEST_CHECKOUT'.freeze,

  # When the customer clicks PayPal Checkout, the customer is redirected to
  # either a page to log in to PayPal and approve the payment or to a page
  # to enter credit or debit card and other relevant billing information
  # required to complete the purchase, depending on their previous
  # interaction with PayPal.
  NO_PREFERENCE = 'NO_PREFERENCE'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



28
29
30
31
32
# File 'lib/paypal_server_sdk/models/paypal_experience_landing_page.rb', line 28

def self.validate(value)
  return false if value.nil?

  true
end