class Stripe::PaymentMethodConfiguration
- Stripe::PaymentMethodConfiguration
- Reference
- Object
Overview
PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios. There are two types of PaymentMethodConfigurations. Which is used depends on the charge type: Direct configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect. Child configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter. Child configurations have a #parent
that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account’s associated child configuration. Parent configurations are managed in the dashboard and are not available in this API. Related guides: - Payment Method Configurations API - Multiple configurations on dynamic payment methods - Multiple configurations for your Connect accounts
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/payment_method_configuration.crConstant Summary
-
ERROR_MESSAGE_FOR_OBJECT =
"invalid value for \"object\", must be one of [payment_method_configuration]."
-
MAX_LENGTH_FOR_APPLICATION =
5000
-
MAX_LENGTH_FOR_ID =
5000
-
MAX_LENGTH_FOR_NAME =
5000
-
MAX_LENGTH_FOR_PARENT =
5000
-
VALID_VALUES_FOR_OBJECT =
String.static_array("payment_method_configuration")
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, active : Bool | Nil = nil, application : String | Nil = nil, id : String | Nil = nil, is_default : Bool | Nil = nil, livemode : Bool | Nil = nil, name : String | Nil = nil, object : String | Nil = nil, parent : String | Nil = nil, acss_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, affirm : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, afterpay_clearpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, alipay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, amazon_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, apple_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, au_becs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, bacs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, bancontact : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, blik : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, boleto : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, card : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, cartes_bancaires : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, cashapp : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, customer_balance : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, eps : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, fpx : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, giropay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, google_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, grabpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, ideal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, jcb : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, klarna : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, konbini : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, link : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, mobilepay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, multibanco : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, oxxo : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, p24 : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, paynow : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, paypal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, promptpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, revolut_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, sepa_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, sofort : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, swish : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, twint : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, us_bank_account : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, wechat_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, zip : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #acss_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#acss_debit=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #active : Bool | Nil
-
#active=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #affirm : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#affirm=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #afterpay_clearpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#afterpay_clearpay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #alipay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#alipay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #amazon_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#amazon_pay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #apple_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#apple_pay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #application : String | Nil
-
#application=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #au_becs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#au_becs_debit=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #bacs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#bacs_debit=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #bancontact : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#bancontact=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #blik : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#blik=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #boleto : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#boleto=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #card : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#card=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #cartes_bancaires : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#cartes_bancaires=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #cashapp : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#cashapp=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #customer_balance : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#customer_balance=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #eps : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#eps=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #fpx : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#fpx=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #giropay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#giropay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #google_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#google_pay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #grabpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#grabpay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : String | Nil
-
#id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #ideal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#ideal=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #is_default : Bool | Nil
-
#is_default=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #jcb : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#jcb=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #klarna : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#klarna=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #konbini : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#konbini=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #link : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#link=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #livemode : Bool | Nil
-
#livemode=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #mobilepay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#mobilepay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #multibanco : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#multibanco=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #name : String | Nil
-
#name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #object : String | Nil
-
#object=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #oxxo : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#oxxo=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #p24 : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#p24=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #parent : String | Nil
-
#parent=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #paynow : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#paynow=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #paypal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#paypal=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #promptpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#promptpay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #revolut_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#revolut_pay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #sepa_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#sepa_debit=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #sofort : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#sofort=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #swish : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#swish=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #twint : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#twint=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #us_bank_account : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#us_bank_account=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
- #wechat_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#wechat_pay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
- #zip : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil
-
#zip=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil)
Custom attribute writer method checking allowed values (enum).
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
clone
clone,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] acss_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] active Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] affirm Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] afterpay_clearpay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] alipay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] amazon_pay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] apple_pay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] application Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] au_becs_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] bacs_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] bancontact Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] blik Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] boleto Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] card Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cartes_bancaires Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cashapp Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer_balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] eps Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] fpx Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] giropay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] google_pay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] grabpay Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] ideal Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] is_default Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] jcb Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] klarna Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] konbini Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] link Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] mobilepay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] multibanco Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] oxxo Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] p24 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] parent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] paynow Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] paypal Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] promptpay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] revolut_pay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sepa_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sofort Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] swish Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] twint Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] us_bank_account Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid
Custom attribute writer method checking allowed values (enum). @param [Object] wechat_pay Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] zip Object to be assigned