public class SessionCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SessionCreateParams.BillingAddressCollection
Add all elements to `taxRates` list.
|
static class |
SessionCreateParams.Builder |
static class |
SessionCreateParams.LineItem |
static class |
SessionCreateParams.Locale |
static class |
SessionCreateParams.Mode |
static class |
SessionCreateParams.PaymentIntentData
Add all elements to `taxRates` list.
|
static class |
SessionCreateParams.PaymentMethodType |
static class |
SessionCreateParams.SetupIntentData |
static class |
SessionCreateParams.SubmitType |
static class |
SessionCreateParams.SubscriptionData
The Stripe account for which the setup is intended.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SessionCreateParams.Builder |
builder() |
SessionCreateParams.BillingAddressCollection |
getBillingAddressCollection()
Specify whether Checkout should collect the customer's billing address.
|
java.lang.String |
getCancelUrl()
The URL the customer will be directed to if they decide to cancel payment and return to your
website.
|
java.lang.String |
getClientReferenceId()
A unique string to reference the Checkout Session.
|
java.lang.String |
getCustomer()
ID of an existing customer, if one exists.
|
java.lang.String |
getCustomerEmail()
If provided, this value will be used when the Customer object is created.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.util.List<SessionCreateParams.LineItem> |
getLineItems()
A list of items the customer is purchasing.
|
SessionCreateParams.Locale |
getLocale()
The IETF language tag of the locale Checkout is displayed in.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
SessionCreateParams.Mode |
getMode()
The mode of the Checkout Session, one of
payment , setup , or subscription . |
SessionCreateParams.PaymentIntentData |
getPaymentIntentData()
A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in
payment mode. |
java.util.List<SessionCreateParams.PaymentMethodType> |
getPaymentMethodTypes()
A list of the types of payment methods (e.g.
|
SessionCreateParams.SetupIntentData |
getSetupIntentData()
A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in
setup mode. |
SessionCreateParams.SubmitType |
getSubmitType()
Describes the type of transaction being performed by Checkout in order to customize relevant
text on the page, such as the submit button.
|
SessionCreateParams.SubscriptionData |
getSubscriptionData()
A subset of parameters to be passed to subscription creation for Checkout Sessions in
subscription mode. |
java.lang.String |
getSuccessUrl()
The URL to which Stripe should send customers when payment or setup is complete.
|
toMap
public static SessionCreateParams.Builder builder()
public SessionCreateParams.BillingAddressCollection getBillingAddressCollection()
public java.lang.String getCancelUrl()
public java.lang.String getClientReferenceId()
public java.lang.String getCustomer()
payment
or subscription
mode, but not Checkout Sessions in setup
mode. The
email stored on the customer will be used to prefill the email field on the Checkout page. If
the customer changes their email on the Checkout page, the Customer object will be updated with
the new email. If blank for Checkout Sessions in payment
or subscription
mode,
Checkout will create a new customer object based on information provided during the session.public java.lang.String getCustomerEmail()
customer
field.public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.util.List<SessionCreateParams.LineItem> getLineItems()
subscription_data
).public SessionCreateParams.Locale getLocale()
auto
, the
browser's locale is used.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public SessionCreateParams.Mode getMode()
payment
, setup
, or subscription
.public SessionCreateParams.PaymentIntentData getPaymentIntentData()
payment
mode.public java.util.List<SessionCreateParams.PaymentMethodType> getPaymentMethodTypes()
card
and ideal
.public SessionCreateParams.SetupIntentData getSetupIntentData()
setup
mode.public SessionCreateParams.SubmitType getSubmitType()
submit_type
can only be specified on
Checkout Sessions in payment
mode, but not Checkout Sessions in subscription
or
setup
mode.public SessionCreateParams.SubscriptionData getSubscriptionData()
subscription
mode.public java.lang.String getSuccessUrl()