Class SessionCreateParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAdd all map key/value pairs to `extraParams` map.static enumAdd all map key/value pairs to `extraParams` map.static classstatic classAdd all map key/value pairs to `extraParams` map.static enumstatic classstatic classstatic classThe ID of a promotion code to apply to this Session.static enumstatic enumstatic classThe number of intervals between subscription billings.static classstatic enumstatic classIndicates that you intend to make future payments with this PaymentIntent's payment method.static classAdd all map key/value pairs to `extraParams` map.static classThe Stripe account for which the setup is intended.static classstatic enumstatic classSpecifies whether the rate is considered inclusive of taxes or exclusive of taxes.static classAdd all map key/value pairs to `extraParams` map.Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam -
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionCreateParams.Builderbuilder()Configure actions after a Checkout Session has expired.Enables user redeemable promotion codes.Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.Specify whether Checkout should collect the customer's billing address.The URL the customer will be directed to if they decide to cancel payment and return to your website.A unique string to reference the Checkout Session.Configure fields for the Checkout Session to gather active consent from customers.Three-letter ISO currency code, in lowercase.ID of an existing Customer, if one exists.Configure whether a Checkout Session creates a Customer during Session confirmation.If provided, this value will be used when the Customer object is created.Controls what fields on Customer can be updated by the Checkout Session.The coupon or promotion code to apply to this Session.Specifies which fields in the response should be expanded.The Epoch time in seconds at which the Checkout Session will expire.Map of extra parameters for custom features not available in this client library.A list of items the customer is purchasing.The IETF language tag of the locale Checkout is displayed in.Set of key-value pairs that you can attach to an object.getMode()The mode of the Checkout Session.A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpaymentmode.Payment-method-specific configuration.A list of the types of payment methods (e.g.,card) this Checkout Session can accept.Controls phone number collection settings for the session.A subset of parameters to be passed to SetupIntent creation for Checkout Sessions insetupmode.When set, provides configuration for Checkout to collect a shipping address from a customer.The shipping rate options to apply to this Session.[Deprecated] The shipping rate to apply to this Session.Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button.A subset of parameters to be passed to subscription creation for Checkout Sessions insubscriptionmode.The URL to which Stripe should send customers when payment or setup is complete.Controls tax ID collection settings for the session.Methods inherited from class com.stripe.net.ApiRequestParams
toMap
-
Method Details
-
builder
-
getAfterExpiration
Configure actions after a Checkout Session has expired. -
getAllowPromotionCodes
Enables user redeemable promotion codes. -
getAutomaticTax
Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions. -
getBillingAddressCollection
Specify whether Checkout should collect the customer's billing address. -
getCancelUrl
The URL the customer will be directed to if they decide to cancel payment and return to your website. -
getClientReferenceId
A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems. -
getConsentCollection
Configure fields for the Checkout Session to gather active consent from customers. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getCustomer
ID of an existing Customer, if one exists. Inpaymentmode, the customer’s most recent card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. Insubscriptionmode, the customer’s default payment method will be used if it’s a card, and otherwise the most recent card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.If the Customer already has a valid email set, the email will be prefilled and not editable in Checkout. If the Customer does not have a valid
email, Checkout will set the email entered during the session on the Customer.If blank for Checkout Sessions in
paymentorsubscriptionmode, Checkout will create a new Customer object based on information provided during the payment flow.You can set
payment_intent_data.setup_future_usageto have Checkout automatically attach the payment method to the Customer you pass in for future reuse. -
getCustomerCreation
Configure whether a Checkout Session creates a Customer during Session confirmation.When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout with customer_details.
Sessions that don't create Customers instead create Guest Customers in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
Can only be set in
paymentandsetupmode. -
getCustomerEmail
If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once a session is complete, use thecustomerfield. -
getCustomerUpdate
Controls what fields on Customer can be updated by the Checkout Session. Can only be provided whencustomeris provided. -
getDiscounts
The coupon or promotion code to apply to this Session. Currently, only up to one may be specified. -
getExpand
Specifies which fields in the response should be expanded. -
getExpiresAt
The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedNamevalue. 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. -
getLineItems
A list of items the customer is purchasing. Use this parameter to pass one-time or recurring Prices.For
paymentmode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.For
subscriptionmode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices in will be on the initial invoice only. -
getLocale
The IETF language tag of the locale Checkout is displayed in. If blank orauto, the browser's locale is used. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata. -
getMode
The mode of the Checkout Session. Required when using prices orsetupmode. Passsubscriptionif the Checkout Session includes at least one recurring item. -
getPaymentIntentData
A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpaymentmode. -
getPaymentMethodOptions
Payment-method-specific configuration. -
getPaymentMethodTypes
A list of the types of payment methods (e.g.,card) this Checkout Session can accept.Do not include this attribute if you prefer to manage your payment methods from the Stripe Dashboard.
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.
-
getPhoneNumberCollection
Controls phone number collection settings for the session.We recommend that you review your privacy policy and check with your legal contacts before using this feature. Learn more about collecting phone numbers with Checkout.
-
getSetupIntentData
A subset of parameters to be passed to SetupIntent creation for Checkout Sessions insetupmode. -
getShippingAddressCollection
When set, provides configuration for Checkout to collect a shipping address from a customer. -
getShippingOptions
The shipping rate options to apply to this Session. -
getShippingRates
[Deprecated] The shipping rate to apply to this Session. Only up to one may be specified. -
getSubmitType
Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button.submit_typecan only be specified on Checkout Sessions inpaymentmode, but not Checkout Sessions insubscriptionorsetupmode. -
getSubscriptionData
A subset of parameters to be passed to subscription creation for Checkout Sessions insubscriptionmode. -
getSuccessUrl
The URL to which Stripe should send customers when payment or setup is complete. If you’d like to use information from the successful Checkout Session on your page, read the guide on customizing your success page. -
getTaxIdCollection
Controls tax ID collection settings for the session.
-