Class: PaypalServerSdk::GooglePayPaymentMethod
- Inherits:
-
Object
- Object
- PaypalServerSdk::GooglePayPaymentMethod
- Defined in:
- lib/paypal_server_sdk/models/google_pay_payment_method.rb
Overview
The type of the payment credential. Currently, only CARD is supported.
Constant Summary collapse
- GOOGLE_PAY_PAYMENT_METHOD =
[ # CARD is the only value that Google Pay accepts. CARD = 'CARD'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = CARD) ⇒ Object
20 21 22 23 24 |
# File 'lib/paypal_server_sdk/models/google_pay_payment_method.rb', line 20 def self.from_value(value, default_value = CARD) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/paypal_server_sdk/models/google_pay_payment_method.rb', line 14 def self.validate(value) return false if value.nil? true end |