Package com.stripe.param
Class OrderCreateParams.Payment.Settings.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.Payment.Settings.Builder
- Enclosing class:
- OrderCreateParams.Payment.Settings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `paymentMethodTypes` list.Add an element to `paymentMethodTypes` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setApplicationFeeAmount
(Long applicationFeeAmount) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.setPaymentMethodOptions
(OrderCreateParams.Payment.Settings.PaymentMethodOptions paymentMethodOptions) PaymentMethod-specific configuration to provide to the order's PaymentIntent.setReturnUrl
(String returnUrl) The URL to redirect the customer to after they authenticate their payment.setStatementDescriptor
(String statementDescriptor) For non-card charges, you can use this value as the complete description that appears on your customers' statements.setStatementDescriptorSuffix
(String statementDescriptorSuffix) Provides information about a card payment that customers see on their statements.Provides configuration for completing a transfer for the order after it is paid.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setApplicationFeeAmount
public OrderCreateParams.Payment.Settings.Builder setApplicationFeeAmount(Long applicationFeeAmount) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOrderCreateParams.Payment.Settings.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOrderCreateParams.Payment.Settings.extraParams
for the field documentation. -
setPaymentMethodOptions
public OrderCreateParams.Payment.Settings.Builder setPaymentMethodOptions(OrderCreateParams.Payment.Settings.PaymentMethodOptions paymentMethodOptions) PaymentMethod-specific configuration to provide to the order's PaymentIntent. -
addPaymentMethodType
public OrderCreateParams.Payment.Settings.Builder addPaymentMethodType(OrderCreateParams.Payment.Settings.PaymentMethodType element) Add an element to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderCreateParams.Payment.Settings.paymentMethodTypes
for the field documentation. -
addAllPaymentMethodType
public OrderCreateParams.Payment.Settings.Builder addAllPaymentMethodType(List<OrderCreateParams.Payment.Settings.PaymentMethodType> elements) Add all elements to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderCreateParams.Payment.Settings.paymentMethodTypes
for the field documentation. -
setReturnUrl
The URL to redirect the customer to after they authenticate their payment. -
setStatementDescriptor
public OrderCreateParams.Payment.Settings.Builder setStatementDescriptor(String statementDescriptor) For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters. -
setStatementDescriptorSuffix
public OrderCreateParams.Payment.Settings.Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor. -
setTransferData
public OrderCreateParams.Payment.Settings.Builder setTransferData(OrderCreateParams.Payment.Settings.TransferData transferData) Provides configuration for completing a transfer for the order after it is paid.
-