Class: PaypalServerSdk::OrderApplicationContextLandingPage
- Inherits:
-
Object
- Object
- PaypalServerSdk::OrderApplicationContextLandingPage
- Defined in:
- lib/paypal_server_sdk/models/order_application_context_landing_page.rb
Overview
DEPRECATED. DEPRECATED. The type of landing page to show on the PayPal site for customer checkout. The fields in ‘application_context` are now available in the `experience_context` object under the `payment_source` which supports them (eg. `payment_source.paypal.experience_context.landing_page`). Please specify this field in the `experience_context` object instead of the `application_context` object.
Constant Summary collapse
- ORDER_APPLICATION_CONTEXT_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. BILLING = 'BILLING'.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
.from_value(value, default_value = LOGIN) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/paypal_server_sdk/models/order_application_context_landing_page.rb', line 39 def self.from_value(value, default_value = LOGIN) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'login' then LOGIN when 'billing' then BILLING when 'no_preference' then NO_PREFERENCE else default_value end end |
.validate(value) ⇒ Object
33 34 35 36 37 |
# File 'lib/paypal_server_sdk/models/order_application_context_landing_page.rb', line 33 def self.validate(value) return false if value.nil? true end |