public static class SessionCreateParams.PaymentIntentData.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SessionCreateParams.PaymentIntentData |
build()
Finalize and obtain parameter instance from this builder.
|
SessionCreateParams.PaymentIntentData.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SessionCreateParams.PaymentIntentData.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
SessionCreateParams.PaymentIntentData.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SessionCreateParams.PaymentIntentData.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
SessionCreateParams.PaymentIntentData.Builder |
setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
The amount of the application fee (if any) that will be applied to the payment and
transferred to the application owner's Stripe account.
|
SessionCreateParams.PaymentIntentData.Builder |
setCaptureMethod(SessionCreateParams.PaymentIntentData.CaptureMethod captureMethod)
Controls when the funds will be captured from the customer's account.
|
SessionCreateParams.PaymentIntentData.Builder |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
SessionCreateParams.PaymentIntentData.Builder |
setOnBehalfOf(java.lang.String onBehalfOf)
The Stripe account ID for which these funds are intended.
|
SessionCreateParams.PaymentIntentData.Builder |
setReceiptEmail(java.lang.String receiptEmail)
Email address that the receipt for the resulting payment will be sent to.
|
SessionCreateParams.PaymentIntentData.Builder |
setSetupFutureUsage(SessionCreateParams.PaymentIntentData.SetupFutureUsage setupFutureUsage)
Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
SessionCreateParams.PaymentIntentData.Builder |
setShipping(SessionCreateParams.PaymentIntentData.Shipping shipping)
Shipping information for this payment.
|
SessionCreateParams.PaymentIntentData.Builder |
setStatementDescriptor(java.lang.String statementDescriptor)
Extra information about the payment.
|
SessionCreateParams.PaymentIntentData.Builder |
setStatementDescriptorSuffix(java.lang.String statementDescriptorSuffix)
Provides information about the charge that customers see on their statements.
|
SessionCreateParams.PaymentIntentData.Builder |
setTransferData(SessionCreateParams.PaymentIntentData.TransferData transferData)
The parameters used to automatically create a Transfer when the payment succeeds.
|
public SessionCreateParams.PaymentIntentData build()
public SessionCreateParams.PaymentIntentData.Builder setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
Stripe-Account
header
or an OAuth key. For more information, see the PaymentIntents use case for connected
accounts.public SessionCreateParams.PaymentIntentData.Builder setCaptureMethod(SessionCreateParams.PaymentIntentData.CaptureMethod captureMethod)
public SessionCreateParams.PaymentIntentData.Builder setDescription(java.lang.String description)
public SessionCreateParams.PaymentIntentData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SessionCreateParams.PaymentIntentData.extraParams
for the field documentation.public SessionCreateParams.PaymentIntentData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SessionCreateParams.PaymentIntentData.extraParams
for the field documentation.public SessionCreateParams.PaymentIntentData.Builder putMetadata(java.lang.String key, java.lang.String value)
SessionCreateParams.PaymentIntentData.metadata
for the field documentation.public SessionCreateParams.PaymentIntentData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
SessionCreateParams.PaymentIntentData.metadata
for the field documentation.public SessionCreateParams.PaymentIntentData.Builder setOnBehalfOf(java.lang.String onBehalfOf)
public SessionCreateParams.PaymentIntentData.Builder setReceiptEmail(java.lang.String receiptEmail)
public SessionCreateParams.PaymentIntentData.Builder setSetupFutureUsage(SessionCreateParams.PaymentIntentData.SetupFutureUsage setupFutureUsage)
If present, the payment method used with this PaymentIntent can be attached to a Customer, even after the transaction completes.
For more, learn to save card details during payment.
Stripe uses setup_future_usage
to dynamically optimize your payment flow and
comply with regional legislation and network rules. For example, if your customer is
impacted by SCA, using
off_session
will ensure that they are authenticated while processing this
PaymentIntent. You will then be able to collect off-session
payments for this customer.
public SessionCreateParams.PaymentIntentData.Builder setShipping(SessionCreateParams.PaymentIntentData.Shipping shipping)
public SessionCreateParams.PaymentIntentData.Builder setStatementDescriptor(java.lang.String statementDescriptor)
public SessionCreateParams.PaymentIntentData.Builder setStatementDescriptorSuffix(java.lang.String statementDescriptorSuffix)
public SessionCreateParams.PaymentIntentData.Builder setTransferData(SessionCreateParams.PaymentIntentData.TransferData transferData)