Debian Codegraph @

stripe/params/checkout/_session_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class SessionCreateParams(RequestOptions):
9 adaptive_pricing: NotRequired["SessionCreateParamsAdaptivePricing"]
10 """
11 Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
12 """
13 after_expiration: NotRequired["SessionCreateParamsAfterExpiration"]
14 """
15 Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`.
16 """
17 allow_promotion_codes: NotRequired[bool]
18 """
19 Enables user redeemable promotion codes.
20 """
21 automatic_tax: NotRequired["SessionCreateParamsAutomaticTax"]
22 """
23 Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
24 """
25 billing_address_collection: NotRequired[Literal["auto", "required"]]
26 """
27 Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.
28 """
29 branding_settings: NotRequired["SessionCreateParamsBrandingSettings"]
30 """
31 The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`.
32 """
33 cancel_url: NotRequired[str]
34 """
35 If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`.
36 """
37 client_reference_id: NotRequired[str]
38 """
39 A unique string to reference the Checkout Session. This can be a
40 customer ID, a cart ID, or similar, and can be used to reconcile the
41 session with your internal systems.
42 """
43 consent_collection: NotRequired["SessionCreateParamsConsentCollection"]
44 """
45 Configure fields for the Checkout Session to gather active consent from customers.
46 """
47 currency: NotRequired[str]
48 """
49 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `payment_method_types` is not set.
50 """
51 custom_fields: NotRequired[List["SessionCreateParamsCustomField"]]
52 """
53 Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
54 """
55 custom_text: NotRequired["SessionCreateParamsCustomText"]
56 """
57 Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.
58 """
59 customer: NotRequired[str]
60 """
61 ID of an existing Customer, if one exists. In `payment` mode, the customer's most recently saved card
62 payment method will be used to prefill the email, name, card details, and billing address
63 on the Checkout page. In `subscription` mode, the customer's [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)
64 will be used if it's a card, otherwise the most recently saved 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.
65
66 If the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
67 If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
68
69 If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
70
71 You can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
72 """
73 customer_account: NotRequired[str]
74 """
75 ID of an existing Account, if one exists. Has the same behavior as `customer`.
76 """
77 customer_creation: NotRequired[Literal["always", "if_required"]]
78 """
79 Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.
80
81 When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
82 with [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).
83
84 Sessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)
85 in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
86
87 Can only be set in `payment` and `setup` mode.
88 """
89 customer_email: NotRequired[str]
90 """
91 If provided, this value will be used when the Customer object is created.
92 If not provided, customers will be asked to enter their email address.
93 Use this parameter to prefill customer data if you already have an email
94 on file. To access information about the customer once a session is
95 complete, use the `customer` field.
96 """
97 customer_update: NotRequired["SessionCreateParamsCustomerUpdate"]
98 """
99 Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.
100 """
101 discounts: NotRequired[List["SessionCreateParamsDiscount"]]
102 """
103 The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.
104 """
105 excluded_payment_method_types: NotRequired[
106 List[
107 Literal[
108 "acss_debit",
109 "affirm",
110 "afterpay_clearpay",
111 "alipay",
112 "alma",
113 "amazon_pay",
114 "au_becs_debit",
115 "bacs_debit",
116 "bancontact",
117 "billie",
118 "blik",
119 "boleto",
120 "card",
121 "cashapp",
122 "crypto",
123 "customer_balance",
124 "eps",
125 "fpx",
126 "giropay",
127 "grabpay",
128 "ideal",
129 "kakao_pay",
130 "klarna",
131 "konbini",
132 "kr_card",
133 "mb_way",
134 "mobilepay",
135 "multibanco",
136 "naver_pay",
137 "nz_bank_account",
138 "oxxo",
139 "p24",
140 "pay_by_bank",
141 "payco",
142 "paynow",
143 "paypal",
144 "payto",
145 "pix",
146 "promptpay",
147 "revolut_pay",
148 "samsung_pay",
149 "satispay",
150 "sepa_debit",
151 "sofort",
152 "swish",
153 "twint",
154 "us_bank_account",
155 "wechat_pay",
156 "zip",
157 ]
158 ]
159 ]
160 """
161 A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
162 """
163 expand: NotRequired[List[str]]
164 """
165 Specifies which fields in the response should be expanded.
166 """
167 expires_at: NotRequired[int]
168 """
169 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.
170 """
171 invoice_creation: NotRequired["SessionCreateParamsInvoiceCreation"]
172 """
173 Generate a post-purchase Invoice for one-time payments.
174 """
175 line_items: NotRequired[List["SessionCreateParamsLineItem"]]
176 """
177 A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
178
179 For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
180
181 For `subscription` mode, 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 will be on the initial invoice only.
182 """
183 locale: NotRequired[
184 Literal[
185 "auto",
186 "bg",
187 "cs",
188 "da",
189 "de",
190 "el",
191 "en",
192 "en-GB",
193 "es",
194 "es-419",
195 "et",
196 "fi",
197 "fil",
198 "fr",
199 "fr-CA",
200 "hr",
201 "hu",
202 "id",
203 "it",
204 "ja",
205 "ko",
206 "lt",
207 "lv",
208 "ms",
209 "mt",
210 "nb",
211 "nl",
212 "pl",
213 "pt",
214 "pt-BR",
215 "ro",
216 "ru",
217 "sk",
218 "sl",
219 "sv",
220 "th",
221 "tr",
222 "vi",
223 "zh",
224 "zh-HK",
225 "zh-TW",
226 ]
227 ]
228 """
229 The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
230 """
231 metadata: NotRequired[Dict[str, str]]
232 """
233 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
234 """
235 mode: NotRequired[Literal["payment", "setup", "subscription"]]
236 """
237 The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
238 """
239 name_collection: NotRequired["SessionCreateParamsNameCollection"]
240 """
241 Controls name collection settings for the session.
242
243 You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
244
245 If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
246
247 You can't set this parameter if `ui_mode` is `custom`.
248 """
249 optional_items: NotRequired[List["SessionCreateParamsOptionalItem"]]
250 """
251 A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
252
253 There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
254
255 For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
256
257 For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
258
259 You can't set this parameter if `ui_mode` is `custom`.
260 """
261 origin_context: NotRequired[Literal["mobile_app", "web"]]
262 """
263 Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`.
264 """
265 payment_intent_data: NotRequired["SessionCreateParamsPaymentIntentData"]
266 """
267 A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
268 """
269 payment_method_collection: NotRequired[Literal["always", "if_required"]]
270 """
271 Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
272 This may occur if the Checkout Session includes a free trial or a discount.
273
274 Can only be set in `subscription` mode. Defaults to `always`.
275
276 If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
277 """
278 payment_method_configuration: NotRequired[str]
279 """
280 The ID of the payment method configuration to use with this Checkout session.
281 """
282 payment_method_data: NotRequired["SessionCreateParamsPaymentMethodData"]
283 """
284 This parameter allows you to set some attributes on the payment method created during a Checkout session.
285 """
286 payment_method_options: NotRequired[
287 "SessionCreateParamsPaymentMethodOptions"
288 ]
289 """
290 Payment-method-specific configuration.
291 """
292 payment_method_types: NotRequired[
293 List[
294 Literal[
295 "acss_debit",
296 "affirm",
297 "afterpay_clearpay",
298 "alipay",
299 "alma",
300 "amazon_pay",
301 "au_becs_debit",
302 "bacs_debit",
303 "bancontact",
304 "billie",
305 "blik",
306 "boleto",
307 "card",
308 "cashapp",
309 "crypto",
310 "customer_balance",
311 "eps",
312 "fpx",
313 "giropay",
314 "grabpay",
315 "ideal",
316 "kakao_pay",
317 "klarna",
318 "konbini",
319 "kr_card",
320 "link",
321 "mb_way",
322 "mobilepay",
323 "multibanco",
324 "naver_pay",
325 "nz_bank_account",
326 "oxxo",
327 "p24",
328 "pay_by_bank",
329 "payco",
330 "paynow",
331 "paypal",
332 "payto",
333 "pix",
334 "promptpay",
335 "revolut_pay",
336 "samsung_pay",
337 "satispay",
338 "sepa_debit",
339 "sofort",
340 "swish",
341 "twint",
342 "us_bank_account",
343 "wechat_pay",
344 "zip",
345 ]
346 ]
347 ]
348 """
349 A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
350
351 You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
352 See [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
353
354 Read more about the supported payment methods and their requirements in our [payment
355 method details guide](https://docs.stripe.com/docs/payments/checkout/payment-methods).
356
357 If multiple payment methods are passed, Checkout will dynamically reorder them to
358 prioritize the most relevant payment methods based on the customer's location and
359 other characteristics.
360 """
361 permissions: NotRequired["SessionCreateParamsPermissions"]
362 """
363 This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
364
365 For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
366 """
367 phone_number_collection: NotRequired[
368 "SessionCreateParamsPhoneNumberCollection"
369 ]
370 """
371 Controls phone number collection settings for the session.
372
373 We recommend that you review your privacy policy and check with your legal contacts
374 before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).
375 """
376 redirect_on_completion: NotRequired[
377 Literal["always", "if_required", "never"]
378 ]
379 """
380 This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
381 """
382 return_url: NotRequired[str]
383 """
384 The URL to redirect your customer back to after they authenticate or cancel their payment on the
385 payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
386 and redirect-based payment methods are enabled on the session.
387 """
388 saved_payment_method_options: NotRequired[
389 "SessionCreateParamsSavedPaymentMethodOptions"
390 ]
391 """
392 Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
393 """
394 setup_intent_data: NotRequired["SessionCreateParamsSetupIntentData"]
395 """
396 A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
397 """
398 shipping_address_collection: NotRequired[
399 "SessionCreateParamsShippingAddressCollection"
400 ]
401 """
402 When set, provides configuration for Checkout to collect a shipping address from a customer.
403 """
404 shipping_options: NotRequired[List["SessionCreateParamsShippingOption"]]
405 """
406 The shipping rate options to apply to this Session. Up to a maximum of 5.
407 """
408 submit_type: NotRequired[
409 Literal["auto", "book", "donate", "pay", "subscribe"]
410 ]
411 """
412 Describes the type of transaction being performed by Checkout in order
413 to customize relevant text on the page, such as the submit button.
414 `submit_type` can only be specified on Checkout Sessions in
415 `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
416 You can't set this parameter if `ui_mode` is `custom`.
417 """
418 subscription_data: NotRequired["SessionCreateParamsSubscriptionData"]
419 """
420 A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
421 """
422 success_url: NotRequired[str]
423 """
424 The URL to which Stripe should send customers when payment or setup
425 is complete.
426 This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
427 information from the successful Checkout Session on your page, read the
428 guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page).
429 """
430 tax_id_collection: NotRequired["SessionCreateParamsTaxIdCollection"]
431 """
432 Controls tax ID collection during checkout.
433 """
434 ui_mode: NotRequired[Literal["custom", "embedded", "hosted"]]
435 """
436 The UI mode of the Session. Defaults to `hosted`.
437 """
438 wallet_options: NotRequired["SessionCreateParamsWalletOptions"]
439 """
440 Wallet-specific configuration.
441 """
442
443
444 class SessionCreateParamsAdaptivePricing(TypedDict):
445 enabled: NotRequired[bool]
446 """
447 If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing).
448 """
449
450
451 class SessionCreateParamsAfterExpiration(TypedDict):
452 recovery: NotRequired["SessionCreateParamsAfterExpirationRecovery"]
453 """
454 Configure a Checkout Session that can be used to recover an expired session.
455 """
456
457
458 class SessionCreateParamsAfterExpirationRecovery(TypedDict):
459 allow_promotion_codes: NotRequired[bool]
460 """
461 Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
462 """
463 enabled: bool
464 """
465 If `true`, a recovery URL will be generated to recover this Checkout Session if it
466 expires before a successful transaction is completed. It will be attached to the
467 Checkout Session object upon expiration.
468 """
469
470
471 class SessionCreateParamsAutomaticTax(TypedDict):
472 enabled: bool
473 """
474 Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
475
476 Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
477 """
478 liability: NotRequired["SessionCreateParamsAutomaticTaxLiability"]
479 """
480 The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
481 """
482
483
484 class SessionCreateParamsAutomaticTaxLiability(TypedDict):
485 account: NotRequired[str]
486 """
487 The connected account being referenced when `type` is `account`.
488 """
489 type: Literal["account", "self"]
490 """
491 Type of the account referenced in the request.
492 """
493
494
495 class SessionCreateParamsBrandingSettings(TypedDict):
496 background_color: NotRequired["Literal['']|str"]
497 """
498 A hex color value starting with `#` representing the background color for the Checkout Session.
499 """
500 border_style: NotRequired[
501 "Literal['']|Literal['pill', 'rectangular', 'rounded']"
502 ]
503 """
504 The border style for the Checkout Session.
505 """
506 button_color: NotRequired["Literal['']|str"]
507 """
508 A hex color value starting with `#` representing the button color for the Checkout Session.
509 """
510 display_name: NotRequired[str]
511 """
512 A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
513 """
514 font_family: NotRequired[
515 "Literal['']|Literal['be_vietnam_pro', 'bitter', 'chakra_petch', 'default', 'hahmlet', 'inconsolata', 'inter', 'lato', 'lora', 'm_plus_1_code', 'montserrat', 'noto_sans', 'noto_sans_jp', 'noto_serif', 'nunito', 'open_sans', 'pridi', 'pt_sans', 'pt_serif', 'raleway', 'roboto', 'roboto_slab', 'source_sans_pro', 'titillium_web', 'ubuntu_mono', 'zen_maru_gothic']"
516 ]
517 """
518 The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
519 """
520 icon: NotRequired["SessionCreateParamsBrandingSettingsIcon"]
521 """
522 The icon for the Checkout Session. For best results, use a square image.
523 """
524 logo: NotRequired["SessionCreateParamsBrandingSettingsLogo"]
525 """
526 The logo for the Checkout Session.
527 """
528
529
530 class SessionCreateParamsBrandingSettingsIcon(TypedDict):
531 file: NotRequired[str]
532 """
533 The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
534 """
535 type: Literal["file", "url"]
536 """
537 The type of image for the icon. Must be one of `file` or `url`.
538 """
539 url: NotRequired[str]
540 """
541 The URL of the image. Required if `type` is `url` and disallowed otherwise.
542 """
543
544
545 class SessionCreateParamsBrandingSettingsLogo(TypedDict):
546 file: NotRequired[str]
547 """
548 The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
549 """
550 type: Literal["file", "url"]
551 """
552 The type of image for the logo. Must be one of `file` or `url`.
553 """
554 url: NotRequired[str]
555 """
556 The URL of the image. Required if `type` is `url` and disallowed otherwise.
557 """
558
559
560 class SessionCreateParamsConsentCollection(TypedDict):
561 payment_method_reuse_agreement: NotRequired[
562 "SessionCreateParamsConsentCollectionPaymentMethodReuseAgreement"
563 ]
564 """
565 Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
566 """
567 promotions: NotRequired[Literal["auto", "none"]]
568 """
569 If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
570 Session will determine whether to display an option to opt into promotional communication
571 from the merchant depending on the customer's locale. Only available to US merchants.
572 """
573 terms_of_service: NotRequired[Literal["none", "required"]]
574 """
575 If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.
576 There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).
577 """
578
579
580 class SessionCreateParamsConsentCollectionPaymentMethodReuseAgreement(
581 TypedDict,
582 ):
583 position: Literal["auto", "hidden"]
584 """
585 Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
586 defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
587 """
588
589
590 class SessionCreateParamsCustomField(TypedDict):
591 dropdown: NotRequired["SessionCreateParamsCustomFieldDropdown"]
592 """
593 Configuration for `type=dropdown` fields.
594 """
595 key: str
596 """
597 String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
598 """
599 label: "SessionCreateParamsCustomFieldLabel"
600 """
601 The label for the field, displayed to the customer.
602 """
603 numeric: NotRequired["SessionCreateParamsCustomFieldNumeric"]
604 """
605 Configuration for `type=numeric` fields.
606 """
607 optional: NotRequired[bool]
608 """
609 Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
610 """
611 text: NotRequired["SessionCreateParamsCustomFieldText"]
612 """
613 Configuration for `type=text` fields.
614 """
615 type: Literal["dropdown", "numeric", "text"]
616 """
617 The type of the field.
618 """
619
620
621 class SessionCreateParamsCustomFieldDropdown(TypedDict):
622 default_value: NotRequired[str]
623 """
624 The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
625 """
626 options: List["SessionCreateParamsCustomFieldDropdownOption"]
627 """
628 The options available for the customer to select. Up to 200 options allowed.
629 """
630
631
632 class SessionCreateParamsCustomFieldDropdownOption(TypedDict):
633 label: str
634 """
635 The label for the option, displayed to the customer. Up to 100 characters.
636 """
637 value: str
638 """
639 The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
640 """
641
642
643 class SessionCreateParamsCustomFieldLabel(TypedDict):
644 custom: str
645 """
646 Custom text for the label, displayed to the customer. Up to 50 characters.
647 """
648 type: Literal["custom"]
649 """
650 The type of the label.
651 """
652
653
654 class SessionCreateParamsCustomFieldNumeric(TypedDict):
655 default_value: NotRequired[str]
656 """
657 The value that pre-fills the field on the payment page.
658 """
659 maximum_length: NotRequired[int]
660 """
661 The maximum character length constraint for the customer's input.
662 """
663 minimum_length: NotRequired[int]
664 """
665 The minimum character length requirement for the customer's input.
666 """
667
668
669 class SessionCreateParamsCustomFieldText(TypedDict):
670 default_value: NotRequired[str]
671 """
672 The value that pre-fills the field on the payment page.
673 """
674 maximum_length: NotRequired[int]
675 """
676 The maximum character length constraint for the customer's input.
677 """
678 minimum_length: NotRequired[int]
679 """
680 The minimum character length requirement for the customer's input.
681 """
682
683
684 class SessionCreateParamsCustomText(TypedDict):
685 after_submit: NotRequired[
686 "Literal['']|SessionCreateParamsCustomTextAfterSubmit"
687 ]
688 """
689 Custom text that should be displayed after the payment confirmation button.
690 """
691 shipping_address: NotRequired[
692 "Literal['']|SessionCreateParamsCustomTextShippingAddress"
693 ]
694 """
695 Custom text that should be displayed alongside shipping address collection.
696 """
697 submit: NotRequired["Literal['']|SessionCreateParamsCustomTextSubmit"]
698 """
699 Custom text that should be displayed alongside the payment confirmation button.
700 """
701 terms_of_service_acceptance: NotRequired[
702 "Literal['']|SessionCreateParamsCustomTextTermsOfServiceAcceptance"
703 ]
704 """
705 Custom text that should be displayed in place of the default terms of service agreement text.
706 """
707
708
709 class SessionCreateParamsCustomTextAfterSubmit(TypedDict):
710 message: str
711 """
712 Text can be up to 1200 characters in length.
713 """
714
715
716 class SessionCreateParamsCustomTextShippingAddress(TypedDict):
717 message: str
718 """
719 Text can be up to 1200 characters in length.
720 """
721
722
723 class SessionCreateParamsCustomTextSubmit(TypedDict):
724 message: str
725 """
726 Text can be up to 1200 characters in length.
727 """
728
729
730 class SessionCreateParamsCustomTextTermsOfServiceAcceptance(TypedDict):
731 message: str
732 """
733 Text can be up to 1200 characters in length.
734 """
735
736
737 class SessionCreateParamsCustomerUpdate(TypedDict):
738 address: NotRequired[Literal["auto", "never"]]
739 """
740 Describes whether Checkout saves the billing address onto `customer.address`.
741 To always collect a full billing address, use `billing_address_collection`. Defaults to `never`.
742 """
743 name: NotRequired[Literal["auto", "never"]]
744 """
745 Describes whether Checkout saves the name onto `customer.name`. Defaults to `never`.
746 """
747 shipping: NotRequired[Literal["auto", "never"]]
748 """
749 Describes whether Checkout saves shipping information onto `customer.shipping`.
750 To collect shipping information, use `shipping_address_collection`. Defaults to `never`.
751 """
752
753
754 class SessionCreateParamsDiscount(TypedDict):
755 coupon: NotRequired[str]
756 """
757 The ID of the coupon to apply to this Session.
758 """
759 promotion_code: NotRequired[str]
760 """
761 The ID of a promotion code to apply to this Session.
762 """
763
764
765 class SessionCreateParamsInvoiceCreation(TypedDict):
766 enabled: bool
767 """
768 Set to `true` to enable invoice creation.
769 """
770 invoice_data: NotRequired["SessionCreateParamsInvoiceCreationInvoiceData"]
771 """
772 Parameters passed when creating invoices for payment-mode Checkout Sessions.
773 """
774
775
776 class SessionCreateParamsInvoiceCreationInvoiceData(TypedDict):
777 account_tax_ids: NotRequired["Literal['']|List[str]"]
778 """
779 The account tax IDs associated with the invoice.
780 """
781 custom_fields: NotRequired[
782 "Literal['']|List[SessionCreateParamsInvoiceCreationInvoiceDataCustomField]"
783 ]
784 """
785 Default custom fields to be displayed on invoices for this customer.
786 """
787 description: NotRequired[str]
788 """
789 An arbitrary string attached to the object. Often useful for displaying to users.
790 """
791 footer: NotRequired[str]
792 """
793 Default footer to be displayed on invoices for this customer.
794 """
795 issuer: NotRequired["SessionCreateParamsInvoiceCreationInvoiceDataIssuer"]
796 """
797 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
798 """
799 metadata: NotRequired[Dict[str, str]]
800 """
801 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
802 """
803 rendering_options: NotRequired[
804 "Literal['']|SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions"
805 ]
806 """
807 Default options for invoice PDF rendering for this customer.
808 """
809
810
811 class SessionCreateParamsInvoiceCreationInvoiceDataCustomField(TypedDict):
812 name: str
813 """
814 The name of the custom field. This may be up to 40 characters.
815 """
816 value: str
817 """
818 The value of the custom field. This may be up to 140 characters.
819 """
820
821
822 class SessionCreateParamsInvoiceCreationInvoiceDataIssuer(TypedDict):
823 account: NotRequired[str]
824 """
825 The connected account being referenced when `type` is `account`.
826 """
827 type: Literal["account", "self"]
828 """
829 Type of the account referenced in the request.
830 """
831
832
833 class SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict):
834 amount_tax_display: NotRequired[
835 "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
836 ]
837 """
838 How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
839 """
840 template: NotRequired[str]
841 """
842 ID of the invoice rendering template to use for this invoice.
843 """
844
845
846 class SessionCreateParamsLineItem(TypedDict):
847 adjustable_quantity: NotRequired[
848 "SessionCreateParamsLineItemAdjustableQuantity"
849 ]
850 """
851 When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
852 """
853 dynamic_tax_rates: NotRequired[List[str]]
854 """
855 The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter if `ui_mode` is `custom`.
856 """
857 metadata: NotRequired[Dict[str, str]]
858 """
859 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
860 """
861 price: NotRequired[str]
862 """
863 The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required.
864 """
865 price_data: NotRequired["SessionCreateParamsLineItemPriceData"]
866 """
867 Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
868 """
869 quantity: NotRequired[int]
870 """
871 The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
872 """
873 tax_rates: NotRequired[List[str]]
874 """
875 The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
876 """
877
878
879 class SessionCreateParamsLineItemAdjustableQuantity(TypedDict):
880 enabled: bool
881 """
882 Set to true if the quantity can be adjusted to any non-negative integer.
883 """
884 maximum: NotRequired[int]
885 """
886 The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
887 """
888 minimum: NotRequired[int]
889 """
890 The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
891 """
892
893
894 class SessionCreateParamsLineItemPriceData(TypedDict):
895 currency: str
896 """
897 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
898 """
899 product: NotRequired[str]
900 """
901 The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
902 """
903 product_data: NotRequired[
904 "SessionCreateParamsLineItemPriceDataProductData"
905 ]
906 """
907 Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
908 """
909 recurring: NotRequired["SessionCreateParamsLineItemPriceDataRecurring"]
910 """
911 The recurring components of a price such as `interval` and `interval_count`.
912 """
913 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
914 """
915 Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
916 """
917 unit_amount: NotRequired[int]
918 """
919 A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
920 """
921 unit_amount_decimal: NotRequired[str]
922 """
923 Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
924 """
925
926
927 class SessionCreateParamsLineItemPriceDataProductData(TypedDict):
928 description: NotRequired[str]
929 """
930 The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
931 """
932 images: NotRequired[List[str]]
933 """
934 A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
935 """
936 metadata: NotRequired[Dict[str, str]]
937 """
938 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
939 """
940 name: str
941 """
942 The product's name, meant to be displayable to the customer.
943 """
944 tax_code: NotRequired[str]
945 """
946 A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
947 """
948 unit_label: NotRequired[str]
949 """
950 A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
951 """
952
953
954 class SessionCreateParamsLineItemPriceDataRecurring(TypedDict):
955 interval: Literal["day", "month", "week", "year"]
956 """
957 Specifies billing frequency. Either `day`, `week`, `month` or `year`.
958 """
959 interval_count: NotRequired[int]
960 """
961 The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
962 """
963
964
965 class SessionCreateParamsNameCollection(TypedDict):
966 business: NotRequired["SessionCreateParamsNameCollectionBusiness"]
967 """
968 Controls settings applied for collecting the customer's business name on the session.
969 """
970 individual: NotRequired["SessionCreateParamsNameCollectionIndividual"]
971 """
972 Controls settings applied for collecting the customer's individual name on the session.
973 """
974
975
976 class SessionCreateParamsNameCollectionBusiness(TypedDict):
977 enabled: bool
978 """
979 Enable business name collection on the Checkout Session. Defaults to `false`.
980 """
981 optional: NotRequired[bool]
982 """
983 Whether the customer is required to provide a business name before completing the Checkout Session. Defaults to `false`.
984 """
985
986
987 class SessionCreateParamsNameCollectionIndividual(TypedDict):
988 enabled: bool
989 """
990 Enable individual name collection on the Checkout Session. Defaults to `false`.
991 """
992 optional: NotRequired[bool]
993 """
994 Whether the customer is required to provide their name before completing the Checkout Session. Defaults to `false`.
995 """
996
997
998 class SessionCreateParamsOptionalItem(TypedDict):
999 adjustable_quantity: NotRequired[
1000 "SessionCreateParamsOptionalItemAdjustableQuantity"
1001 ]
1002 """
1003 When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
1004 """
1005 price: str
1006 """
1007 The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object.
1008 """
1009 quantity: int
1010 """
1011 The initial quantity of the line item created when a customer chooses to add this optional item to their order.
1012 """
1013
1014
1015 class SessionCreateParamsOptionalItemAdjustableQuantity(TypedDict):
1016 enabled: bool
1017 """
1018 Set to true if the quantity can be adjusted to any non-negative integer.
1019 """
1020 maximum: NotRequired[int]
1021 """
1022 The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
1023 """
1024 minimum: NotRequired[int]
1025 """
1026 The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
1027 """
1028
1029
1030 class SessionCreateParamsPaymentIntentData(TypedDict):
1031 application_fee_amount: NotRequired[int]
1032 """
1033 The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
1034 """
1035 capture_method: NotRequired[
1036 Literal["automatic", "automatic_async", "manual"]
1037 ]
1038 """
1039 Controls when the funds will be captured from the customer's account.
1040 """
1041 description: NotRequired[str]
1042 """
1043 An arbitrary string attached to the object. Often useful for displaying to users.
1044 """
1045 metadata: NotRequired[Dict[str, str]]
1046 """
1047 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
1048 """
1049 on_behalf_of: NotRequired[str]
1050 """
1051 The Stripe account ID for which these funds are intended. For details,
1052 see the PaymentIntents [use case for connected
1053 accounts](https://docs.stripe.com/docs/payments/connected-accounts).
1054 """
1055 receipt_email: NotRequired[str]
1056 """
1057 Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
1058 """
1059 setup_future_usage: NotRequired[Literal["off_session", "on_session"]]
1060 """
1061 Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
1062 method collected by this Checkout Session.
1063
1064 When setting this to `on_session`, Checkout will show a notice to the
1065 customer that their payment details will be saved.
1066
1067 When setting this to `off_session`, Checkout will show a notice to the
1068 customer that their payment details will be saved and used for future
1069 payments.
1070
1071 If a Customer has been provided or Checkout creates a new Customer,
1072 Checkout will attach the payment method to the Customer.
1073
1074 If Checkout does not create a Customer, the payment method is not attached
1075 to a Customer. To reuse the payment method, you can retrieve it from the
1076 Checkout Session's PaymentIntent.
1077
1078 When processing card payments, Checkout also uses `setup_future_usage`
1079 to dynamically optimize your payment flow and comply with regional
1080 legislation and network rules, such as SCA.
1081 """
1082 shipping: NotRequired["SessionCreateParamsPaymentIntentDataShipping"]
1083 """
1084 Shipping information for this payment.
1085 """
1086 statement_descriptor: NotRequired[str]
1087 """
1088 Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
1089
1090 Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
1091 """
1092 statement_descriptor_suffix: NotRequired[str]
1093 """
1094 Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
1095 """
1096 transfer_data: NotRequired[
1097 "SessionCreateParamsPaymentIntentDataTransferData"
1098 ]
1099 """
1100 The parameters used to automatically create a Transfer when the payment succeeds.
1101 For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
1102 """
1103 transfer_group: NotRequired[str]
1104 """
1105 A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
1106 """
1107
1108
1109 class SessionCreateParamsPaymentIntentDataShipping(TypedDict):
1110 address: "SessionCreateParamsPaymentIntentDataShippingAddress"
1111 """
1112 Shipping address.
1113 """
1114 carrier: NotRequired[str]
1115 """
1116 The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
1117 """
1118 name: str
1119 """
1120 Recipient name.
1121 """
1122 phone: NotRequired[str]
1123 """
1124 Recipient phone (including extension).
1125 """
1126 tracking_number: NotRequired[str]
1127 """
1128 The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
1129 """
1130
1131
1132 class SessionCreateParamsPaymentIntentDataShippingAddress(TypedDict):
1133 city: NotRequired[str]
1134 """
1135 City, district, suburb, town, or village.
1136 """
1137 country: NotRequired[str]
1138 """
1139 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1140 """
1141 line1: str
1142 """
1143 Address line 1, such as the street, PO Box, or company name.
1144 """
1145 line2: NotRequired[str]
1146 """
1147 Address line 2, such as the apartment, suite, unit, or building.
1148 """
1149 postal_code: NotRequired[str]
1150 """
1151 ZIP or postal code.
1152 """
1153 state: NotRequired[str]
1154 """
1155 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1156 """
1157
1158
1159 class SessionCreateParamsPaymentIntentDataTransferData(TypedDict):
1160 amount: NotRequired[int]
1161 """
1162 The amount that will be transferred automatically when a charge succeeds.
1163 """
1164 destination: str
1165 """
1166 If specified, successful charges will be attributed to the destination
1167 account for tax reporting, and the funds from charges will be transferred
1168 to the destination account. The ID of the resulting transfer will be
1169 returned on the successful charge's `transfer` field.
1170 """
1171
1172
1173 class SessionCreateParamsPaymentMethodData(TypedDict):
1174 allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
1175 """
1176 Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
1177 """
1178
1179
1180 class SessionCreateParamsPaymentMethodOptions(TypedDict):
1181 acss_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsAcssDebit"]
1182 """
1183 contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`.
1184 """
1185 affirm: NotRequired["SessionCreateParamsPaymentMethodOptionsAffirm"]
1186 """
1187 contains details about the Affirm payment method options.
1188 """
1189 afterpay_clearpay: NotRequired[
1190 "SessionCreateParamsPaymentMethodOptionsAfterpayClearpay"
1191 ]
1192 """
1193 contains details about the Afterpay Clearpay payment method options.
1194 """
1195 alipay: NotRequired["SessionCreateParamsPaymentMethodOptionsAlipay"]
1196 """
1197 contains details about the Alipay payment method options.
1198 """
1199 alma: NotRequired["SessionCreateParamsPaymentMethodOptionsAlma"]
1200 """
1201 contains details about the Alma payment method options.
1202 """
1203 amazon_pay: NotRequired["SessionCreateParamsPaymentMethodOptionsAmazonPay"]
1204 """
1205 contains details about the AmazonPay payment method options.
1206 """
1207 au_becs_debit: NotRequired[
1208 "SessionCreateParamsPaymentMethodOptionsAuBecsDebit"
1209 ]
1210 """
1211 contains details about the AU Becs Debit payment method options.
1212 """
1213 bacs_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsBacsDebit"]
1214 """
1215 contains details about the Bacs Debit payment method options.
1216 """
1217 bancontact: NotRequired[
1218 "SessionCreateParamsPaymentMethodOptionsBancontact"
1219 ]
1220 """
1221 contains details about the Bancontact payment method options.
1222 """
1223 billie: NotRequired["SessionCreateParamsPaymentMethodOptionsBillie"]
1224 """
1225 contains details about the Billie payment method options.
1226 """
1227 boleto: NotRequired["SessionCreateParamsPaymentMethodOptionsBoleto"]
1228 """
1229 contains details about the Boleto payment method options.
1230 """
1231 card: NotRequired["SessionCreateParamsPaymentMethodOptionsCard"]
1232 """
1233 contains details about the Card payment method options.
1234 """
1235 cashapp: NotRequired["SessionCreateParamsPaymentMethodOptionsCashapp"]
1236 """
1237 contains details about the Cashapp Pay payment method options.
1238 """
1239 customer_balance: NotRequired[
1240 "SessionCreateParamsPaymentMethodOptionsCustomerBalance"
1241 ]
1242 """
1243 contains details about the Customer Balance payment method options.
1244 """
1245 demo_pay: NotRequired["SessionCreateParamsPaymentMethodOptionsDemoPay"]
1246 """
1247 contains details about the DemoPay payment method options.
1248 """
1249 eps: NotRequired["SessionCreateParamsPaymentMethodOptionsEps"]
1250 """
1251 contains details about the EPS payment method options.
1252 """
1253 fpx: NotRequired["SessionCreateParamsPaymentMethodOptionsFpx"]
1254 """
1255 contains details about the FPX payment method options.
1256 """
1257 giropay: NotRequired["SessionCreateParamsPaymentMethodOptionsGiropay"]
1258 """
1259 contains details about the Giropay payment method options.
1260 """
1261 grabpay: NotRequired["SessionCreateParamsPaymentMethodOptionsGrabpay"]
1262 """
1263 contains details about the Grabpay payment method options.
1264 """
1265 ideal: NotRequired["SessionCreateParamsPaymentMethodOptionsIdeal"]
1266 """
1267 contains details about the Ideal payment method options.
1268 """
1269 kakao_pay: NotRequired["SessionCreateParamsPaymentMethodOptionsKakaoPay"]
1270 """
1271 contains details about the Kakao Pay payment method options.
1272 """
1273 klarna: NotRequired["SessionCreateParamsPaymentMethodOptionsKlarna"]
1274 """
1275 contains details about the Klarna payment method options.
1276 """
1277 konbini: NotRequired["SessionCreateParamsPaymentMethodOptionsKonbini"]
1278 """
1279 contains details about the Konbini payment method options.
1280 """
1281 kr_card: NotRequired["SessionCreateParamsPaymentMethodOptionsKrCard"]
1282 """
1283 contains details about the Korean card payment method options.
1284 """
1285 link: NotRequired["SessionCreateParamsPaymentMethodOptionsLink"]
1286 """
1287 contains details about the Link payment method options.
1288 """
1289 mobilepay: NotRequired["SessionCreateParamsPaymentMethodOptionsMobilepay"]
1290 """
1291 contains details about the Mobilepay payment method options.
1292 """
1293 multibanco: NotRequired[
1294 "SessionCreateParamsPaymentMethodOptionsMultibanco"
1295 ]
1296 """
1297 contains details about the Multibanco payment method options.
1298 """
1299 naver_pay: NotRequired["SessionCreateParamsPaymentMethodOptionsNaverPay"]
1300 """
1301 contains details about the Naver Pay payment method options.
1302 """
1303 oxxo: NotRequired["SessionCreateParamsPaymentMethodOptionsOxxo"]
1304 """
1305 contains details about the OXXO payment method options.
1306 """
1307 p24: NotRequired["SessionCreateParamsPaymentMethodOptionsP24"]
1308 """
1309 contains details about the P24 payment method options.
1310 """
1311 pay_by_bank: NotRequired[
1312 "SessionCreateParamsPaymentMethodOptionsPayByBank"
1313 ]
1314 """
1315 contains details about the Pay By Bank payment method options.
1316 """
1317 payco: NotRequired["SessionCreateParamsPaymentMethodOptionsPayco"]
1318 """
1319 contains details about the PAYCO payment method options.
1320 """
1321 paynow: NotRequired["SessionCreateParamsPaymentMethodOptionsPaynow"]
1322 """
1323 contains details about the PayNow payment method options.
1324 """
1325 paypal: NotRequired["SessionCreateParamsPaymentMethodOptionsPaypal"]
1326 """
1327 contains details about the PayPal payment method options.
1328 """
1329 payto: NotRequired["SessionCreateParamsPaymentMethodOptionsPayto"]
1330 """
1331 contains details about the PayTo payment method options.
1332 """
1333 pix: NotRequired["SessionCreateParamsPaymentMethodOptionsPix"]
1334 """
1335 contains details about the Pix payment method options.
1336 """
1337 revolut_pay: NotRequired[
1338 "SessionCreateParamsPaymentMethodOptionsRevolutPay"
1339 ]
1340 """
1341 contains details about the RevolutPay payment method options.
1342 """
1343 samsung_pay: NotRequired[
1344 "SessionCreateParamsPaymentMethodOptionsSamsungPay"
1345 ]
1346 """
1347 contains details about the Samsung Pay payment method options.
1348 """
1349 satispay: NotRequired["SessionCreateParamsPaymentMethodOptionsSatispay"]
1350 """
1351 contains details about the Satispay payment method options.
1352 """
1353 sepa_debit: NotRequired["SessionCreateParamsPaymentMethodOptionsSepaDebit"]
1354 """
1355 contains details about the Sepa Debit payment method options.
1356 """
1357 sofort: NotRequired["SessionCreateParamsPaymentMethodOptionsSofort"]
1358 """
1359 contains details about the Sofort payment method options.
1360 """
1361 swish: NotRequired["SessionCreateParamsPaymentMethodOptionsSwish"]
1362 """
1363 contains details about the Swish payment method options.
1364 """
1365 twint: NotRequired["SessionCreateParamsPaymentMethodOptionsTwint"]
1366 """
1367 contains details about the TWINT payment method options.
1368 """
1369 us_bank_account: NotRequired[
1370 "SessionCreateParamsPaymentMethodOptionsUsBankAccount"
1371 ]
1372 """
1373 contains details about the Us Bank Account payment method options.
1374 """
1375 wechat_pay: NotRequired["SessionCreateParamsPaymentMethodOptionsWechatPay"]
1376 """
1377 contains details about the WeChat Pay payment method options.
1378 """
1379
1380
1381 class SessionCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
1382 currency: NotRequired[Literal["cad", "usd"]]
1383 """
1384 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). This is only accepted for Checkout Sessions in `setup` mode.
1385 """
1386 mandate_options: NotRequired[
1387 "SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
1388 ]
1389 """
1390 Additional fields for Mandate creation
1391 """
1392 setup_future_usage: NotRequired[
1393 Literal["none", "off_session", "on_session"]
1394 ]
1395 """
1396 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1397
1398 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1399
1400 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1401
1402 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1403 """
1404 target_date: NotRequired[str]
1405 """
1406 Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1407 """
1408 verification_method: NotRequired[
1409 Literal["automatic", "instant", "microdeposits"]
1410 ]
1411 """
1412 Verification method for the intent
1413 """
1414
1415
1416 class SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
1417 TypedDict
1418 ):
1419 custom_mandate_url: NotRequired["Literal['']|str"]
1420 """
1421 A URL for custom mandate text to render during confirmation step.
1422 The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
1423 or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
1424 """
1425 default_for: NotRequired[List[Literal["invoice", "subscription"]]]
1426 """
1427 List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
1428 """
1429 interval_description: NotRequired[str]
1430 """
1431 Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
1432 """
1433 payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
1434 """
1435 Payment schedule for the mandate.
1436 """
1437 transaction_type: NotRequired[Literal["business", "personal"]]
1438 """
1439 Transaction type of the mandate.
1440 """
1441
1442
1443 class SessionCreateParamsPaymentMethodOptionsAffirm(TypedDict):
1444 capture_method: NotRequired[Literal["manual"]]
1445 """
1446 Controls when the funds will be captured from the customer's account.
1447 """
1448 setup_future_usage: NotRequired[Literal["none"]]
1449 """
1450 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1451
1452 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1453
1454 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1455
1456 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1457 """
1458
1459
1460 class SessionCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
1461 capture_method: NotRequired[Literal["manual"]]
1462 """
1463 Controls when the funds will be captured from the customer's account.
1464 """
1465 setup_future_usage: NotRequired[Literal["none"]]
1466 """
1467 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1468
1469 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1470
1471 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1472
1473 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1474 """
1475
1476
1477 class SessionCreateParamsPaymentMethodOptionsAlipay(TypedDict):
1478 setup_future_usage: NotRequired[Literal["none"]]
1479 """
1480 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1481
1482 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1483
1484 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1485
1486 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1487 """
1488
1489
1490 class SessionCreateParamsPaymentMethodOptionsAlma(TypedDict):
1491 capture_method: NotRequired[Literal["manual"]]
1492 """
1493 Controls when the funds will be captured from the customer's account.
1494 """
1495
1496
1497 class SessionCreateParamsPaymentMethodOptionsAmazonPay(TypedDict):
1498 capture_method: NotRequired[Literal["manual"]]
1499 """
1500 Controls when the funds will be captured from the customer's account.
1501 """
1502 setup_future_usage: NotRequired[Literal["none", "off_session"]]
1503 """
1504 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1505
1506 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1507
1508 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1509
1510 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1511 """
1512
1513
1514 class SessionCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
1515 setup_future_usage: NotRequired[Literal["none"]]
1516 """
1517 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1518
1519 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1520
1521 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1522
1523 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1524 """
1525 target_date: NotRequired[str]
1526 """
1527 Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1528 """
1529
1530
1531 class SessionCreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
1532 mandate_options: NotRequired[
1533 "SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions"
1534 ]
1535 """
1536 Additional fields for Mandate creation
1537 """
1538 setup_future_usage: NotRequired[
1539 Literal["none", "off_session", "on_session"]
1540 ]
1541 """
1542 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1543
1544 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1545
1546 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1547
1548 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1549 """
1550 target_date: NotRequired[str]
1551 """
1552 Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1553 """
1554
1555
1556 class SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions(
1557 TypedDict
1558 ):
1559 reference_prefix: NotRequired["Literal['']|str"]
1560 """
1561 Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
1562 """
1563
1564
1565 class SessionCreateParamsPaymentMethodOptionsBancontact(TypedDict):
1566 setup_future_usage: NotRequired[Literal["none"]]
1567 """
1568 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1569
1570 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1571
1572 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1573
1574 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1575 """
1576
1577
1578 class SessionCreateParamsPaymentMethodOptionsBillie(TypedDict):
1579 capture_method: NotRequired[Literal["manual"]]
1580 """
1581 Controls when the funds will be captured from the customer's account.
1582 """
1583
1584
1585 class SessionCreateParamsPaymentMethodOptionsBoleto(TypedDict):
1586 expires_after_days: NotRequired[int]
1587 """
1588 The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
1589 """
1590 setup_future_usage: NotRequired[
1591 Literal["none", "off_session", "on_session"]
1592 ]
1593 """
1594 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1595
1596 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1597
1598 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1599
1600 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1601 """
1602
1603
1604 class SessionCreateParamsPaymentMethodOptionsCard(TypedDict):
1605 capture_method: NotRequired[Literal["manual"]]
1606 """
1607 Controls when the funds will be captured from the customer's account.
1608 """
1609 installments: NotRequired[
1610 "SessionCreateParamsPaymentMethodOptionsCardInstallments"
1611 ]
1612 """
1613 Installment options for card payments
1614 """
1615 request_extended_authorization: NotRequired[
1616 Literal["if_available", "never"]
1617 ]
1618 """
1619 Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1620 """
1621 request_incremental_authorization: NotRequired[
1622 Literal["if_available", "never"]
1623 ]
1624 """
1625 Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this CheckoutSession.
1626 """
1627 request_multicapture: NotRequired[Literal["if_available", "never"]]
1628 """
1629 Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this CheckoutSession.
1630 """
1631 request_overcapture: NotRequired[Literal["if_available", "never"]]
1632 """
1633 Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this CheckoutSession.
1634 """
1635 request_three_d_secure: NotRequired[
1636 Literal["any", "automatic", "challenge"]
1637 ]
1638 """
1639 We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1640 """
1641 restrictions: NotRequired[
1642 "SessionCreateParamsPaymentMethodOptionsCardRestrictions"
1643 ]
1644 """
1645 Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter if `ui_mode` is `custom`.
1646 """
1647 setup_future_usage: NotRequired[Literal["off_session", "on_session"]]
1648 """
1649 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1650
1651 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1652
1653 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1654
1655 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1656 """
1657 statement_descriptor_suffix_kana: NotRequired[str]
1658 """
1659 Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
1660 """
1661 statement_descriptor_suffix_kanji: NotRequired[str]
1662 """
1663 Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1664 """
1665
1666
1667 class SessionCreateParamsPaymentMethodOptionsCardInstallments(TypedDict):
1668 enabled: NotRequired[bool]
1669 """
1670 Setting to true enables installments for this Checkout Session.
1671 Setting to false will prevent any installment plan from applying to a payment.
1672 """
1673
1674
1675 class SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict):
1676 brands_blocked: NotRequired[
1677 List[
1678 Literal[
1679 "american_express",
1680 "discover_global_network",
1681 "mastercard",
1682 "visa",
1683 ]
1684 ]
1685 ]
1686 """
1687 Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
1688 """
1689
1690
1691 class SessionCreateParamsPaymentMethodOptionsCashapp(TypedDict):
1692 capture_method: NotRequired[Literal["manual"]]
1693 """
1694 Controls when the funds will be captured from the customer's account.
1695 """
1696 setup_future_usage: NotRequired[
1697 Literal["none", "off_session", "on_session"]
1698 ]
1699 """
1700 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1701
1702 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1703
1704 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1705
1706 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1707 """
1708
1709
1710 class SessionCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
1711 bank_transfer: NotRequired[
1712 "SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
1713 ]
1714 """
1715 Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
1716 """
1717 funding_type: NotRequired[Literal["bank_transfer"]]
1718 """
1719 The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1720 """
1721 setup_future_usage: NotRequired[Literal["none"]]
1722 """
1723 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1724
1725 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1726
1727 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1728
1729 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1730 """
1731
1732
1733 class SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
1734 TypedDict,
1735 ):
1736 eu_bank_transfer: NotRequired[
1737 "SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
1738 ]
1739 """
1740 Configuration for eu_bank_transfer funding type.
1741 """
1742 requested_address_types: NotRequired[
1743 List[
1744 Literal[
1745 "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
1746 ]
1747 ]
1748 ]
1749 """
1750 List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1751
1752 Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1753 """
1754 type: Literal[
1755 "eu_bank_transfer",
1756 "gb_bank_transfer",
1757 "jp_bank_transfer",
1758 "mx_bank_transfer",
1759 "us_bank_transfer",
1760 ]
1761 """
1762 The list of bank transfer types that this PaymentIntent is allowed to use for funding.
1763 """
1764
1765
1766 class SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
1767 TypedDict,
1768 ):
1769 country: str
1770 """
1771 The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
1772 """
1773
1774
1775 class SessionCreateParamsPaymentMethodOptionsDemoPay(TypedDict):
1776 setup_future_usage: NotRequired[Literal["none", "off_session"]]
1777 """
1778 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1779
1780 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1781
1782 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1783
1784 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1785 """
1786
1787
1788 class SessionCreateParamsPaymentMethodOptionsEps(TypedDict):
1789 setup_future_usage: NotRequired[Literal["none"]]
1790 """
1791 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1792
1793 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1794
1795 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1796
1797 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1798 """
1799
1800
1801 class SessionCreateParamsPaymentMethodOptionsFpx(TypedDict):
1802 setup_future_usage: NotRequired[Literal["none"]]
1803 """
1804 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1805
1806 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1807
1808 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1809
1810 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1811 """
1812
1813
1814 class SessionCreateParamsPaymentMethodOptionsGiropay(TypedDict):
1815 setup_future_usage: NotRequired[Literal["none"]]
1816 """
1817 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1818
1819 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1820
1821 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1822
1823 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1824 """
1825
1826
1827 class SessionCreateParamsPaymentMethodOptionsGrabpay(TypedDict):
1828 setup_future_usage: NotRequired[Literal["none"]]
1829 """
1830 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1831
1832 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1833
1834 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1835
1836 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1837 """
1838
1839
1840 class SessionCreateParamsPaymentMethodOptionsIdeal(TypedDict):
1841 setup_future_usage: NotRequired[Literal["none"]]
1842 """
1843 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1844
1845 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1846
1847 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1848
1849 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1850 """
1851
1852
1853 class SessionCreateParamsPaymentMethodOptionsKakaoPay(TypedDict):
1854 capture_method: NotRequired[Literal["manual"]]
1855 """
1856 Controls when the funds will be captured from the customer's account.
1857 """
1858 setup_future_usage: NotRequired[Literal["none", "off_session"]]
1859 """
1860 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1861
1862 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1863
1864 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1865
1866 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1867 """
1868
1869
1870 class SessionCreateParamsPaymentMethodOptionsKlarna(TypedDict):
1871 capture_method: NotRequired[Literal["manual"]]
1872 """
1873 Controls when the funds will be captured from the customer's account.
1874 """
1875 setup_future_usage: NotRequired[Literal["none"]]
1876 """
1877 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1878
1879 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1880
1881 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1882
1883 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1884 """
1885 subscriptions: NotRequired[
1886 "Literal['']|List[SessionCreateParamsPaymentMethodOptionsKlarnaSubscription]"
1887 ]
1888 """
1889 Subscription details if the Checkout Session sets up a future subscription.
1890 """
1891
1892
1893 class SessionCreateParamsPaymentMethodOptionsKlarnaSubscription(TypedDict):
1894 interval: Literal["day", "month", "week", "year"]
1895 """
1896 Unit of time between subscription charges.
1897 """
1898 interval_count: NotRequired[int]
1899 """
1900 The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1901 """
1902 name: NotRequired[str]
1903 """
1904 Name for subscription.
1905 """
1906 next_billing: (
1907 "SessionCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
1908 )
1909 """
1910 Describes the upcoming charge for this subscription.
1911 """
1912 reference: str
1913 """
1914 A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1915 """
1916
1917
1918 class SessionCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
1919 TypedDict,
1920 ):
1921 amount: int
1922 """
1923 The amount of the next charge for the subscription.
1924 """
1925 date: str
1926 """
1927 The date of the next charge for the subscription in YYYY-MM-DD format.
1928 """
1929
1930
1931 class SessionCreateParamsPaymentMethodOptionsKonbini(TypedDict):
1932 expires_after_days: NotRequired[int]
1933 """
1934 The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
1935 """
1936 setup_future_usage: NotRequired[Literal["none"]]
1937 """
1938 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1939
1940 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1941
1942 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1943
1944 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1945 """
1946
1947
1948 class SessionCreateParamsPaymentMethodOptionsKrCard(TypedDict):
1949 capture_method: NotRequired[Literal["manual"]]
1950 """
1951 Controls when the funds will be captured from the customer's account.
1952 """
1953 setup_future_usage: NotRequired[Literal["none", "off_session"]]
1954 """
1955 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1956
1957 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1958
1959 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1960
1961 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1962 """
1963
1964
1965 class SessionCreateParamsPaymentMethodOptionsLink(TypedDict):
1966 capture_method: NotRequired[Literal["manual"]]
1967 """
1968 Controls when the funds will be captured from the customer's account.
1969 """
1970 setup_future_usage: NotRequired[Literal["none", "off_session"]]
1971 """
1972 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1973
1974 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1975
1976 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1977
1978 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1979 """
1980
1981
1982 class SessionCreateParamsPaymentMethodOptionsMobilepay(TypedDict):
1983 capture_method: NotRequired[Literal["manual"]]
1984 """
1985 Controls when the funds will be captured from the customer's account.
1986 """
1987 setup_future_usage: NotRequired[Literal["none"]]
1988 """
1989 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1990
1991 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1992
1993 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1994
1995 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1996 """
1997
1998
1999 class SessionCreateParamsPaymentMethodOptionsMultibanco(TypedDict):
2000 setup_future_usage: NotRequired[Literal["none"]]
2001 """
2002 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2003
2004 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2005
2006 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2007
2008 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2009 """
2010
2011
2012 class SessionCreateParamsPaymentMethodOptionsNaverPay(TypedDict):
2013 capture_method: NotRequired[Literal["manual"]]
2014 """
2015 Controls when the funds will be captured from the customer's account.
2016 """
2017 setup_future_usage: NotRequired[Literal["none", "off_session"]]
2018 """
2019 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2020
2021 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2022
2023 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2024
2025 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2026 """
2027
2028
2029 class SessionCreateParamsPaymentMethodOptionsOxxo(TypedDict):
2030 expires_after_days: NotRequired[int]
2031 """
2032 The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
2033 """
2034 setup_future_usage: NotRequired[Literal["none"]]
2035 """
2036 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2037
2038 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2039
2040 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2041
2042 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2043 """
2044
2045
2046 class SessionCreateParamsPaymentMethodOptionsP24(TypedDict):
2047 setup_future_usage: NotRequired[Literal["none"]]
2048 """
2049 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2050
2051 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2052
2053 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2054
2055 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2056 """
2057 tos_shown_and_accepted: NotRequired[bool]
2058 """
2059 Confirm that the payer has accepted the P24 terms and conditions.
2060 """
2061
2062
2063 class SessionCreateParamsPaymentMethodOptionsPayByBank(TypedDict):
2064 pass
2065
2066
2067 class SessionCreateParamsPaymentMethodOptionsPayco(TypedDict):
2068 capture_method: NotRequired[Literal["manual"]]
2069 """
2070 Controls when the funds will be captured from the customer's account.
2071 """
2072
2073
2074 class SessionCreateParamsPaymentMethodOptionsPaynow(TypedDict):
2075 setup_future_usage: NotRequired[Literal["none"]]
2076 """
2077 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2078
2079 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2080
2081 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2082
2083 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2084 """
2085
2086
2087 class SessionCreateParamsPaymentMethodOptionsPaypal(TypedDict):
2088 capture_method: NotRequired["Literal['']|Literal['manual']"]
2089 """
2090 Controls when the funds will be captured from the customer's account.
2091 """
2092 preferred_locale: NotRequired[
2093 Literal[
2094 "cs-CZ",
2095 "da-DK",
2096 "de-AT",
2097 "de-DE",
2098 "de-LU",
2099 "el-GR",
2100 "en-GB",
2101 "en-US",
2102 "es-ES",
2103 "fi-FI",
2104 "fr-BE",
2105 "fr-FR",
2106 "fr-LU",
2107 "hu-HU",
2108 "it-IT",
2109 "nl-BE",
2110 "nl-NL",
2111 "pl-PL",
2112 "pt-PT",
2113 "sk-SK",
2114 "sv-SE",
2115 ]
2116 ]
2117 """
2118 [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2119 """
2120 reference: NotRequired[str]
2121 """
2122 A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2123 """
2124 risk_correlation_id: NotRequired[str]
2125 """
2126 The risk correlation ID for an on-session payment using a saved PayPal payment method.
2127 """
2128 setup_future_usage: NotRequired[
2129 "Literal['']|Literal['none', 'off_session']"
2130 ]
2131 """
2132 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2133
2134 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2135
2136 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2137
2138 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2139
2140 If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2141 """
2142
2143
2144 class SessionCreateParamsPaymentMethodOptionsPayto(TypedDict):
2145 mandate_options: NotRequired[
2146 "SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions"
2147 ]
2148 """
2149 Additional fields for Mandate creation
2150 """
2151 setup_future_usage: NotRequired[Literal["none", "off_session"]]
2152 """
2153 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2154
2155 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2156
2157 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2158
2159 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2160 """
2161
2162
2163 class SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions(TypedDict):
2164 amount: NotRequired["Literal['']|int"]
2165 """
2166 Amount that will be collected. It is required when `amount_type` is `fixed`.
2167 """
2168 amount_type: NotRequired["Literal['']|Literal['fixed', 'maximum']"]
2169 """
2170 The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
2171 """
2172 end_date: NotRequired["Literal['']|str"]
2173 """
2174 Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2175 """
2176 payment_schedule: NotRequired[
2177 "Literal['']|Literal['adhoc', 'annual', 'daily', 'fortnightly', 'monthly', 'quarterly', 'semi_annual', 'weekly']"
2178 ]
2179 """
2180 The periodicity at which payments will be collected. Defaults to `adhoc`.
2181 """
2182 payments_per_period: NotRequired["Literal['']|int"]
2183 """
2184 The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2185 """
2186 purpose: NotRequired[
2187 "Literal['']|Literal['dependant_support', 'government', 'loan', 'mortgage', 'other', 'pension', 'personal', 'retail', 'salary', 'tax', 'utility']"
2188 ]
2189 """
2190 The purpose for which payments are made. Has a default value based on your merchant category code.
2191 """
2192 start_date: NotRequired["Literal['']|str"]
2193 """
2194 Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2195 """
2196
2197
2198 class SessionCreateParamsPaymentMethodOptionsPix(TypedDict):
2199 amount_includes_iof: NotRequired[Literal["always", "never"]]
2200 """
2201 Determines if the amount includes the IOF tax. Defaults to `never`.
2202 """
2203 expires_after_seconds: NotRequired[int]
2204 """
2205 The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2206 """
2207 setup_future_usage: NotRequired[Literal["none"]]
2208 """
2209 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2210
2211 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2212
2213 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2214
2215 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2216 """
2217
2218
2219 class SessionCreateParamsPaymentMethodOptionsRevolutPay(TypedDict):
2220 capture_method: NotRequired[Literal["manual"]]
2221 """
2222 Controls when the funds will be captured from the customer's account.
2223 """
2224 setup_future_usage: NotRequired[Literal["none", "off_session"]]
2225 """
2226 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2227
2228 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2229
2230 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2231
2232 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2233 """
2234
2235
2236 class SessionCreateParamsPaymentMethodOptionsSamsungPay(TypedDict):
2237 capture_method: NotRequired[Literal["manual"]]
2238 """
2239 Controls when the funds will be captured from the customer's account.
2240 """
2241
2242
2243 class SessionCreateParamsPaymentMethodOptionsSatispay(TypedDict):
2244 capture_method: NotRequired[Literal["manual"]]
2245 """
2246 Controls when the funds will be captured from the customer's account.
2247 """
2248
2249
2250 class SessionCreateParamsPaymentMethodOptionsSepaDebit(TypedDict):
2251 mandate_options: NotRequired[
2252 "SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions"
2253 ]
2254 """
2255 Additional fields for Mandate creation
2256 """
2257 setup_future_usage: NotRequired[
2258 Literal["none", "off_session", "on_session"]
2259 ]
2260 """
2261 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2262
2263 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2264
2265 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2266
2267 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2268 """
2269 target_date: NotRequired[str]
2270 """
2271 Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2272 """
2273
2274
2275 class SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions(
2276 TypedDict
2277 ):
2278 reference_prefix: NotRequired["Literal['']|str"]
2279 """
2280 Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
2281 """
2282
2283
2284 class SessionCreateParamsPaymentMethodOptionsSofort(TypedDict):
2285 setup_future_usage: NotRequired[Literal["none"]]
2286 """
2287 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2288
2289 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2290
2291 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2292
2293 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2294 """
2295
2296
2297 class SessionCreateParamsPaymentMethodOptionsSwish(TypedDict):
2298 reference: NotRequired[str]
2299 """
2300 The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
2301 """
2302
2303
2304 class SessionCreateParamsPaymentMethodOptionsTwint(TypedDict):
2305 setup_future_usage: NotRequired[Literal["none"]]
2306 """
2307 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2308
2309 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2310
2311 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2312
2313 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2314 """
2315
2316
2317 class SessionCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
2318 financial_connections: NotRequired[
2319 "SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
2320 ]
2321 """
2322 Additional fields for Financial Connections Session creation
2323 """
2324 setup_future_usage: NotRequired[
2325 Literal["none", "off_session", "on_session"]
2326 ]
2327 """
2328 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2329
2330 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2331
2332 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2333
2334 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2335 """
2336 target_date: NotRequired[str]
2337 """
2338 Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2339 """
2340 verification_method: NotRequired[Literal["automatic", "instant"]]
2341 """
2342 Verification method for the intent
2343 """
2344
2345
2346 class SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
2347 TypedDict,
2348 ):
2349 permissions: NotRequired[
2350 List[
2351 Literal["balances", "ownership", "payment_method", "transactions"]
2352 ]
2353 ]
2354 """
2355 The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2356 """
2357 prefetch: NotRequired[
2358 List[Literal["balances", "ownership", "transactions"]]
2359 ]
2360 """
2361 List of data features that you would like to retrieve upon account creation.
2362 """
2363
2364
2365 class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
2366 app_id: NotRequired[str]
2367 """
2368 The app ID registered with WeChat Pay. Only required when client is ios or android.
2369 """
2370 client: Literal["android", "ios", "web"]
2371 """
2372 The client type that the end customer will pay from
2373 """
2374 setup_future_usage: NotRequired[Literal["none"]]
2375 """
2376 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2377
2378 If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2379
2380 If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2381
2382 When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2383 """
2384
2385
2386 class SessionCreateParamsPermissions(TypedDict):
2387 update_shipping_details: NotRequired[Literal["client_only", "server_only"]]
2388 """
2389 Determines which entity is allowed to update the shipping details.
2390
2391 Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2392
2393 When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2394 """
2395
2396
2397 class SessionCreateParamsPhoneNumberCollection(TypedDict):
2398 enabled: bool
2399 """
2400 Set to `true` to enable phone number collection.
2401
2402 Can only be set in `payment` and `subscription` mode.
2403 """
2404
2405
2406 class SessionCreateParamsSavedPaymentMethodOptions(TypedDict):
2407 allow_redisplay_filters: NotRequired[
2408 List[Literal["always", "limited", "unspecified"]]
2409 ]
2410 """
2411 Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout.
2412 """
2413 payment_method_remove: NotRequired[Literal["disabled", "enabled"]]
2414 """
2415 Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
2416 """
2417 payment_method_save: NotRequired[Literal["disabled", "enabled"]]
2418 """
2419 Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
2420 """
2421
2422
2423 class SessionCreateParamsSetupIntentData(TypedDict):
2424 description: NotRequired[str]
2425 """
2426 An arbitrary string attached to the object. Often useful for displaying to users.
2427 """
2428 metadata: NotRequired[Dict[str, str]]
2429 """
2430 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
2431 """
2432 on_behalf_of: NotRequired[str]
2433 """
2434 The Stripe account for which the setup is intended.
2435 """
2436
2437
2438 class SessionCreateParamsShippingAddressCollection(TypedDict):
2439 allowed_countries: List[
2440 Literal[
2441 "AC",
2442 "AD",
2443 "AE",
2444 "AF",
2445 "AG",
2446 "AI",
2447 "AL",
2448 "AM",
2449 "AO",
2450 "AQ",
2451 "AR",
2452 "AT",
2453 "AU",
2454 "AW",
2455 "AX",
2456 "AZ",
2457 "BA",
2458 "BB",
2459 "BD",
2460 "BE",
2461 "BF",
2462 "BG",
2463 "BH",
2464 "BI",
2465 "BJ",
2466 "BL",
2467 "BM",
2468 "BN",
2469 "BO",
2470 "BQ",
2471 "BR",
2472 "BS",
2473 "BT",
2474 "BV",
2475 "BW",
2476 "BY",
2477 "BZ",
2478 "CA",
2479 "CD",
2480 "CF",
2481 "CG",
2482 "CH",
2483 "CI",
2484 "CK",
2485 "CL",
2486 "CM",
2487 "CN",
2488 "CO",
2489 "CR",
2490 "CV",
2491 "CW",
2492 "CY",
2493 "CZ",
2494 "DE",
2495 "DJ",
2496 "DK",
2497 "DM",
2498 "DO",
2499 "DZ",
2500 "EC",
2501 "EE",
2502 "EG",
2503 "EH",
2504 "ER",
2505 "ES",
2506 "ET",
2507 "FI",
2508 "FJ",
2509 "FK",
2510 "FO",
2511 "FR",
2512 "GA",
2513 "GB",
2514 "GD",
2515 "GE",
2516 "GF",
2517 "GG",
2518 "GH",
2519 "GI",
2520 "GL",
2521 "GM",
2522 "GN",
2523 "GP",
2524 "GQ",
2525 "GR",
2526 "GS",
2527 "GT",
2528 "GU",
2529 "GW",
2530 "GY",
2531 "HK",
2532 "HN",
2533 "HR",
2534 "HT",
2535 "HU",
2536 "ID",
2537 "IE",
2538 "IL",
2539 "IM",
2540 "IN",
2541 "IO",
2542 "IQ",
2543 "IS",
2544 "IT",
2545 "JE",
2546 "JM",
2547 "JO",
2548 "JP",
2549 "KE",
2550 "KG",
2551 "KH",
2552 "KI",
2553 "KM",
2554 "KN",
2555 "KR",
2556 "KW",
2557 "KY",
2558 "KZ",
2559 "LA",
2560 "LB",
2561 "LC",
2562 "LI",
2563 "LK",
2564 "LR",
2565 "LS",
2566 "LT",
2567 "LU",
2568 "LV",
2569 "LY",
2570 "MA",
2571 "MC",
2572 "MD",
2573 "ME",
2574 "MF",
2575 "MG",
2576 "MK",
2577 "ML",
2578 "MM",
2579 "MN",
2580 "MO",
2581 "MQ",
2582 "MR",
2583 "MS",
2584 "MT",
2585 "MU",
2586 "MV",
2587 "MW",
2588 "MX",
2589 "MY",
2590 "MZ",
2591 "NA",
2592 "NC",
2593 "NE",
2594 "NG",
2595 "NI",
2596 "NL",
2597 "NO",
2598 "NP",
2599 "NR",
2600 "NU",
2601 "NZ",
2602 "OM",
2603 "PA",
2604 "PE",
2605 "PF",
2606 "PG",
2607 "PH",
2608 "PK",
2609 "PL",
2610 "PM",
2611 "PN",
2612 "PR",
2613 "PS",
2614 "PT",
2615 "PY",
2616 "QA",
2617 "RE",
2618 "RO",
2619 "RS",
2620 "RU",
2621 "RW",
2622 "SA",
2623 "SB",
2624 "SC",
2625 "SD",
2626 "SE",
2627 "SG",
2628 "SH",
2629 "SI",
2630 "SJ",
2631 "SK",
2632 "SL",
2633 "SM",
2634 "SN",
2635 "SO",
2636 "SR",
2637 "SS",
2638 "ST",
2639 "SV",
2640 "SX",
2641 "SZ",
2642 "TA",
2643 "TC",
2644 "TD",
2645 "TF",
2646 "TG",
2647 "TH",
2648 "TJ",
2649 "TK",
2650 "TL",
2651 "TM",
2652 "TN",
2653 "TO",
2654 "TR",
2655 "TT",
2656 "TV",
2657 "TW",
2658 "TZ",
2659 "UA",
2660 "UG",
2661 "US",
2662 "UY",
2663 "UZ",
2664 "VA",
2665 "VC",
2666 "VE",
2667 "VG",
2668 "VN",
2669 "VU",
2670 "WF",
2671 "WS",
2672 "XK",
2673 "YE",
2674 "YT",
2675 "ZA",
2676 "ZM",
2677 "ZW",
2678 "ZZ",
2679 ]
2680 ]
2681 """
2682 An array of two-letter ISO country codes representing which countries Checkout should provide as options for
2683 shipping locations.
2684 """
2685
2686
2687 class SessionCreateParamsShippingOption(TypedDict):
2688 shipping_rate: NotRequired[str]
2689 """
2690 The ID of the Shipping Rate to use for this shipping option.
2691 """
2692 shipping_rate_data: NotRequired[
2693 "SessionCreateParamsShippingOptionShippingRateData"
2694 ]
2695 """
2696 Parameters to be passed to Shipping Rate creation for this shipping option.
2697 """
2698
2699
2700 class SessionCreateParamsShippingOptionShippingRateData(TypedDict):
2701 delivery_estimate: NotRequired[
2702 "SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimate"
2703 ]
2704 """
2705 The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
2706 """
2707 display_name: str
2708 """
2709 The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
2710 """
2711 fixed_amount: NotRequired[
2712 "SessionCreateParamsShippingOptionShippingRateDataFixedAmount"
2713 ]
2714 """
2715 Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
2716 """
2717 metadata: NotRequired[Dict[str, str]]
2718 """
2719 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
2720 """
2721 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
2722 """
2723 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2724 """
2725 tax_code: NotRequired[str]
2726 """
2727 A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2728 """
2729 type: NotRequired[Literal["fixed_amount"]]
2730 """
2731 The type of calculation to use on the shipping rate.
2732 """
2733
2734
2735 class SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimate(
2736 TypedDict,
2737 ):
2738 maximum: NotRequired[
2739 "SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum"
2740 ]
2741 """
2742 The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
2743 """
2744 minimum: NotRequired[
2745 "SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum"
2746 ]
2747 """
2748 The lower bound of the estimated range. If empty, represents no lower bound.
2749 """
2750
2751
2752 class SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum(
2753 TypedDict,
2754 ):
2755 unit: Literal["business_day", "day", "hour", "month", "week"]
2756 """
2757 A unit of time.
2758 """
2759 value: int
2760 """
2761 Must be greater than 0.
2762 """
2763
2764
2765 class SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum(
2766 TypedDict,
2767 ):
2768 unit: Literal["business_day", "day", "hour", "month", "week"]
2769 """
2770 A unit of time.
2771 """
2772 value: int
2773 """
2774 Must be greater than 0.
2775 """
2776
2777
2778 class SessionCreateParamsShippingOptionShippingRateDataFixedAmount(TypedDict):
2779 amount: int
2780 """
2781 A non-negative integer in cents representing how much to charge.
2782 """
2783 currency: str
2784 """
2785 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2786 """
2787 currency_options: NotRequired[
2788 Dict[
2789 str,
2790 "SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions",
2791 ]
2792 ]
2793 """
2794 Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
2795 """
2796
2797
2798 class SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions(
2799 TypedDict,
2800 ):
2801 amount: int
2802 """
2803 A non-negative integer in cents representing how much to charge.
2804 """
2805 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
2806 """
2807 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2808 """
2809
2810
2811 class SessionCreateParamsSubscriptionData(TypedDict):
2812 application_fee_percent: NotRequired[float]
2813 """
2814 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
2815 """
2816 billing_cycle_anchor: NotRequired[int]
2817 """
2818 A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`.
2819 """
2820 billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"]
2821 """
2822 Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2823 """
2824 default_tax_rates: NotRequired[List[str]]
2825 """
2826 The tax rates that will apply to any subscription item that does not have
2827 `tax_rates` set. Invoices created will have their `default_tax_rates` populated
2828 from the subscription.
2829 """
2830 description: NotRequired[str]
2831 """
2832 The subscription's description, meant to be displayable to the customer.
2833 Use this field to optionally store an explanation of the subscription
2834 for rendering in the [customer portal](https://docs.stripe.com/customer-management).
2835 """
2836 invoice_settings: NotRequired[
2837 "SessionCreateParamsSubscriptionDataInvoiceSettings"
2838 ]
2839 """
2840 All invoices will be billed using the specified settings.
2841 """
2842 metadata: NotRequired[Dict[str, str]]
2843 """
2844 Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 to `metadata`.
2845 """
2846 on_behalf_of: NotRequired[str]
2847 """
2848 The account on behalf of which to charge, for each of the subscription's invoices.
2849 """
2850 proration_behavior: NotRequired[Literal["create_prorations", "none"]]
2851 """
2852 Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
2853 """
2854 transfer_data: NotRequired[
2855 "SessionCreateParamsSubscriptionDataTransferData"
2856 ]
2857 """
2858 If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
2859 """
2860 trial_end: NotRequired[int]
2861 """
2862 Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
2863 """
2864 trial_period_days: NotRequired[int]
2865 """
2866 Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
2867 """
2868 trial_settings: NotRequired[
2869 "SessionCreateParamsSubscriptionDataTrialSettings"
2870 ]
2871 """
2872 Settings related to subscription trials.
2873 """
2874
2875
2876 class SessionCreateParamsSubscriptionDataBillingMode(TypedDict):
2877 flexible: NotRequired[
2878 "SessionCreateParamsSubscriptionDataBillingModeFlexible"
2879 ]
2880 """
2881 Configure behavior for flexible billing mode.
2882 """
2883 type: Literal["classic", "flexible"]
2884 """
2885 Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
2886 """
2887
2888
2889 class SessionCreateParamsSubscriptionDataBillingModeFlexible(TypedDict):
2890 proration_discounts: NotRequired[Literal["included", "itemized"]]
2891 """
2892 Controls how invoices and invoice items display proration amounts and discount amounts.
2893 """
2894
2895
2896 class SessionCreateParamsSubscriptionDataInvoiceSettings(TypedDict):
2897 issuer: NotRequired[
2898 "SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer"
2899 ]
2900 """
2901 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
2902 """
2903
2904
2905 class SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
2906 account: NotRequired[str]
2907 """
2908 The connected account being referenced when `type` is `account`.
2909 """
2910 type: Literal["account", "self"]
2911 """
2912 Type of the account referenced in the request.
2913 """
2914
2915
2916 class SessionCreateParamsSubscriptionDataTransferData(TypedDict):
2917 amount_percent: NotRequired[float]
2918 """
2919 A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
2920 """
2921 destination: str
2922 """
2923 ID of an existing, connected Stripe account.
2924 """
2925
2926
2927 class SessionCreateParamsSubscriptionDataTrialSettings(TypedDict):
2928 end_behavior: "SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior"
2929 """
2930 Defines how the subscription should behave when the user's free trial ends.
2931 """
2932
2933
2934 class SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior(TypedDict):
2935 missing_payment_method: Literal["cancel", "create_invoice", "pause"]
2936 """
2937 Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
2938 """
2939
2940
2941 class SessionCreateParamsTaxIdCollection(TypedDict):
2942 enabled: bool
2943 """
2944 Enable tax ID collection during checkout. Defaults to `false`.
2945 """
2946 required: NotRequired[Literal["if_supported", "never"]]
2947 """
2948 Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
2949 """
2950
2951
2952 class SessionCreateParamsWalletOptions(TypedDict):
2953 link: NotRequired["SessionCreateParamsWalletOptionsLink"]
2954 """
2955 contains details about the Link wallet options.
2956 """
2957
2958
2959 class SessionCreateParamsWalletOptionsLink(TypedDict):
2960 display: NotRequired[Literal["auto", "never"]]
2961 """
2962 Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
2963 """