Class: PaypalServerSdk::MobileReturnFlow
- Inherits:
-
Object
- Object
- PaypalServerSdk::MobileReturnFlow
- Defined in:
- lib/paypal_server_sdk/models/mobile_return_flow.rb
Overview
Merchant preference on how the buyer can navigate back to merchant website post approving the transaction on the PayPal App.
Constant Summary collapse
- MOBILE_RETURN_FLOW =
[ # After payment approval in the PayPal App, buyer will automatically be # redirected to the merchant website. AUTO = 'AUTO'.freeze, # After payment approval in the PayPal App, buyer will be asked to # manually navigate back to the merchant website where they started the # transaction from. The buyer is shown a message like 'Return to Merchant' # to return to the source where the transaction actually started. MANUAL = 'MANUAL'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = AUTO) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/paypal_server_sdk/models/mobile_return_flow.rb', line 28 def self.from_value(value, default_value = AUTO) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'auto' then AUTO when 'manual' then MANUAL else default_value end end |
.validate(value) ⇒ Object
22 23 24 25 26 |
# File 'lib/paypal_server_sdk/models/mobile_return_flow.rb', line 22 def self.validate(value) return false if value.nil? true end |