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
The number of intervals between subscription billings.
|
static class |
SessionCreateParams.PaymentMethodType |
static class |
SessionCreateParams.SetupIntentData |
static class |
SessionCreateParams.ShippingAddressCollection
The Stripe account for which the setup is intended.
|
static class |
SessionCreateParams.SubmitType |
static class |
SessionCreateParams.SubscriptionData |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SessionCreateParams.Builder |
builder() |
java.lang.Boolean |
getAllowPromotionCodes()
Enables user redeemable promotion codes.
|
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.,
card ) this Checkout session can accept. |
SessionCreateParams.SetupIntentData |
getSetupIntentData()
A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in
setup mode. |
SessionCreateParams.ShippingAddressCollection |
getShippingAddressCollection()
When set, provides configuration for Checkout to collect a shipping address from a customer.
|
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 java.lang.Boolean getAllowPromotionCodes()
public SessionCreateParams.BillingAddressCollection getBillingAddressCollection()
public java.lang.String getCancelUrl()
public java.lang.String getClientReferenceId()
public java.lang.String getCustomer()
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
mode will be on the initial invoice only.
There is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
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
. Required when using prices or setup
mode. Pass subscription
if
Checkout session includes at least one recurring item.public SessionCreateParams.PaymentIntentData getPaymentIntentData()
payment
mode.public java.util.List<SessionCreateParams.PaymentMethodType> getPaymentMethodTypes()
card
) this Checkout session can accept.
Read more about the supported payment methods and their requirements in our payment method details guide.
If multiple payment methods are passed, Checkout will dynamically reorder them to prioritize the most relevant payment methods based on the customer's location and other characteristics.
public SessionCreateParams.SetupIntentData getSetupIntentData()
setup
mode.public SessionCreateParams.ShippingAddressCollection getShippingAddressCollection()
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()