Class: PaypalServerSdk::ApplePayPaymentDataType
- Inherits:
-
Object
- Object
- PaypalServerSdk::ApplePayPaymentDataType
- Defined in:
- lib/paypal_server_sdk/models/apple_pay_payment_data_type.rb
Overview
Indicates the type of payment data passed, in case of Non China the payment data is 3DSECURE and for China it is EMV.
Constant Summary collapse
- APPLE_PAY_PAYMENT_DATA_TYPE =
[ # The card was authenticated using 3D Secure (3DS) authentication scheme. # While using this value make sure to populate cryptogram and # eci_indicator as part of payment data.. ENUM_3DSECURE = '3DSECURE'.freeze, # The card was authenticated using EMV method, which is applicable for # China. While using this value make sure to pass emv_data and pin as part # of payment data. EMV = 'EMV'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_3DSECURE) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/paypal_server_sdk/models/apple_pay_payment_data_type.rb', line 28 def self.from_value(value, default_value = ENUM_3DSECURE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'enum_3dsecure' then ENUM_3DSECURE when 'emv' then EMV else default_value end end |
.validate(value) ⇒ Object
22 23 24 25 26 |
# File 'lib/paypal_server_sdk/models/apple_pay_payment_data_type.rb', line 22 def self.validate(value) return false if value.nil? true end |