Class: Dodopayments::Models::PaymentCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::PaymentCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/dodopayments/models/payment_create_params.rb
Overview
Instance Attribute Summary collapse
-
#allowed_payment_method_types ⇒ Array<Symbol, Dodopayments::Models::PaymentMethodTypes>?
List of payment methods allowed during checkout.
-
#billing ⇒ Dodopayments::Models::BillingAddress
Billing address details for the payment.
-
#billing_currency ⇒ Symbol, ...
Fix the currency in which the end customer is billed.
-
#customer ⇒ Dodopayments::Models::AttachExistingCustomer, Dodopayments::Models::NewCustomer
Customer information for the payment.
-
#discount_code ⇒ String?
Discount Code to apply to the transaction.
-
#force_3ds ⇒ Boolean?
Override merchant default 3DS behaviour for this payment.
-
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata associated with the payment.
-
#payment_link ⇒ Boolean?
Whether to generate a payment link.
-
#product_cart ⇒ Array<Dodopayments::Models::OneTimeProductCartItem>
List of products in the cart.
-
#return_url ⇒ String?
Optional URL to redirect the customer after payment.
-
#show_saved_payment_methods ⇒ Boolean?
Display saved payment methods of a returning customer False by default.
-
#tax_id ⇒ String?
Tax ID in case the payment is B2B.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(billing: , customer: , product_cart: , allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see PaymentCreateParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(billing: , customer: , product_cart: , allowed_payment_method_types: nil, billing_currency: nil, discount_code: nil, force_3ds: nil, metadata: nil, payment_link: nil, return_url: nil, show_saved_payment_methods: nil, tax_id: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::PaymentCreateParams for more details.
|
|
# File 'lib/dodopayments/models/payment_create_params.rb', line 93
|
Instance Attribute Details
#allowed_payment_method_types ⇒ Array<Symbol, Dodopayments::Models::PaymentMethodTypes>?
List of payment methods allowed during checkout.
Customers will never see payment methods that are not in this list. However, adding a method here **does not guarantee** customers will see it. Availability still depends on other factors (e.g., customer location, merchant settings).
37 38 39 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 37 optional :allowed_payment_method_types, -> { Dodopayments::Internal::Type::ArrayOf[enum: Dodopayments::PaymentMethodTypes] }, nil?: true |
#billing ⇒ Dodopayments::Models::BillingAddress
Billing address details for the payment
14 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 14 required :billing, -> { Dodopayments::BillingAddress } |
#billing_currency ⇒ Symbol, ...
Fix the currency in which the end customer is billed. If Dodo Payments cannot support that currency for this transaction, it will not proceed
46 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 46 optional :billing_currency, enum: -> { Dodopayments::Currency }, nil?: true |
#customer ⇒ Dodopayments::Models::AttachExistingCustomer, Dodopayments::Models::NewCustomer
Customer information for the payment
20 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 20 required :customer, union: -> { Dodopayments::CustomerRequest } |
#discount_code ⇒ String?
Discount Code to apply to the transaction
52 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 52 optional :discount_code, String, nil?: true |
#force_3ds ⇒ Boolean?
Override merchant default 3DS behaviour for this payment
58 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 58 optional :force_3ds, Dodopayments::Internal::Type::Boolean, nil?: true |
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata associated with the payment. Defaults to empty if not provided.
65 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 65 optional :metadata, Dodopayments::Internal::Type::HashOf[String] |
#payment_link ⇒ Boolean?
Whether to generate a payment link. Defaults to false if not specified.
71 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 71 optional :payment_link, Dodopayments::Internal::Type::Boolean, nil?: true |
#product_cart ⇒ Array<Dodopayments::Models::OneTimeProductCartItem>
List of products in the cart. Must contain at least 1 and at most 100 items.
26 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 26 required :product_cart, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::OneTimeProductCartItem] } |
#return_url ⇒ String?
Optional URL to redirect the customer after payment. Must be a valid URL if provided.
78 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 78 optional :return_url, String, nil?: true |
#show_saved_payment_methods ⇒ Boolean?
Display saved payment methods of a returning customer False by default
84 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 84 optional :show_saved_payment_methods, Dodopayments::Internal::Type::Boolean |
#tax_id ⇒ String?
Tax ID in case the payment is B2B. If tax id validation fails the payment creation will fail
91 |
# File 'lib/dodopayments/models/payment_create_params.rb', line 91 optional :tax_id, String, nil?: true |