Class: Stripe::PaymentMethodCreateParams::Card::Networks

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_method_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(preferred: nil) ⇒ Networks

Returns a new instance of Networks.



121
122
123
# File 'lib/stripe/params/payment_method_create_params.rb', line 121

def initialize(preferred: nil)
  @preferred = preferred
end

Instance Attribute Details

#preferredObject

The customer’s preferred card network for co-branded cards. Supports ‘cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.



119
120
121
# File 'lib/stripe/params/payment_method_create_params.rb', line 119

def preferred
  @preferred
end