Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::PaymentMethodData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/payments/off_session_payment_create_params.rb

Defined Under Namespace

Classes: BillingDetails, Card

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(billing_details: nil, type: nil, card: nil) ⇒ PaymentMethodData

Returns a new instance of PaymentMethodData.



90
91
92
93
94
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 90

def initialize(billing_details: nil, type: nil, card: nil)
  @billing_details = billing_details
  @type = type
  @card = card
end

Instance Attribute Details

#billing_detailsObject

Billing information associated with the payment method.



84
85
86
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 84

def billing_details
  @billing_details
end

#cardObject

Contains card details that can be used to create a card PaymentMethod for PCI compliant users.



88
89
90
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 88

def card
  @card
end

#typeObject

The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.



86
87
88
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 86

def type
  @type
end