public class SessionCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SessionCreateParams.BillingAddressCollection
Quantity for this item.
|
static class |
SessionCreateParams.Builder |
static class |
SessionCreateParams.LineItem |
static class |
SessionCreateParams.Locale |
static class |
SessionCreateParams.Mode |
static class |
SessionCreateParams.PaymentIntentData
The quantity of the line item being purchased.
|
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.
|
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()
public java.lang.String getCustomerEmail()
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()
public SessionCreateParams.Locale getLocale()
public SessionCreateParams.Mode getMode()
public SessionCreateParams.PaymentIntentData getPaymentIntentData()
public java.util.List<SessionCreateParams.PaymentMethodType> getPaymentMethodTypes()
public SessionCreateParams.SetupIntentData getSetupIntentData()
public SessionCreateParams.SubmitType getSubmitType()
public SessionCreateParams.SubscriptionData getSubscriptionData()
public java.lang.String getSuccessUrl()