Debian Codegraph @

stripe/params/_payment_intent_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, Union
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class PaymentIntentCreateParams(RequestOptions):
9 amount: int
10 """
11 Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
12 """
13 amount_details: NotRequired["PaymentIntentCreateParamsAmountDetails"]
14 """
15 Provides industry-specific information about the amount.
16 """
17 application_fee_amount: NotRequired[int]
18 """
19 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).
20 """
21 automatic_payment_methods: NotRequired[
22 "PaymentIntentCreateParamsAutomaticPaymentMethods"
23 ]
24 """
25 When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
26 """
27 capture_method: NotRequired[
28 Literal["automatic", "automatic_async", "manual"]
29 ]
30 """
31 Controls when the funds will be captured from the customer's account.
32 """
33 confirm: NotRequired[bool]
34 """
35 Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://docs.stripe.com/api/payment_intents/confirm).
36 """
37 confirmation_method: NotRequired[Literal["automatic", "manual"]]
38 """
39 Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
40 """
41 confirmation_token: NotRequired[str]
42 """
43 ID of the ConfirmationToken used to confirm this PaymentIntent.
44
45 If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
46 """
47 currency: 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).
50 """
51 customer: NotRequired[str]
52 """
53 ID of the Customer this PaymentIntent belongs to, if one exists.
54
55 Payment methods attached to other Customers cannot be used with this PaymentIntent.
56
57 If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
58 """
59 customer_account: NotRequired[str]
60 """
61 ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
62
63 Payment methods attached to other Accounts cannot be used with this PaymentIntent.
64
65 If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
66 """
67 description: NotRequired[str]
68 """
69 An arbitrary string attached to the object. Often useful for displaying to users.
70 """
71 error_on_requires_action: NotRequired[bool]
72 """
73 Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
74 """
75 excluded_payment_method_types: NotRequired[
76 List[
77 Literal[
78 "acss_debit",
79 "affirm",
80 "afterpay_clearpay",
81 "alipay",
82 "alma",
83 "amazon_pay",
84 "au_becs_debit",
85 "bacs_debit",
86 "bancontact",
87 "billie",
88 "blik",
89 "boleto",
90 "card",
91 "cashapp",
92 "crypto",
93 "customer_balance",
94 "eps",
95 "fpx",
96 "giropay",
97 "grabpay",
98 "ideal",
99 "kakao_pay",
100 "klarna",
101 "konbini",
102 "kr_card",
103 "mb_way",
104 "mobilepay",
105 "multibanco",
106 "naver_pay",
107 "nz_bank_account",
108 "oxxo",
109 "p24",
110 "pay_by_bank",
111 "payco",
112 "paynow",
113 "paypal",
114 "payto",
115 "pix",
116 "promptpay",
117 "revolut_pay",
118 "samsung_pay",
119 "satispay",
120 "sepa_debit",
121 "sofort",
122 "swish",
123 "twint",
124 "us_bank_account",
125 "wechat_pay",
126 "zip",
127 ]
128 ]
129 ]
130 """
131 The list of payment method types to exclude from use with this payment.
132 """
133 expand: NotRequired[List[str]]
134 """
135 Specifies which fields in the response should be expanded.
136 """
137 hooks: NotRequired["PaymentIntentCreateParamsHooks"]
138 """
139 Automations to be run during the PaymentIntent lifecycle
140 """
141 mandate: NotRequired[str]
142 """
143 ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
144 """
145 mandate_data: NotRequired[
146 "Literal['']|PaymentIntentCreateParamsMandateData"
147 ]
148 """
149 This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
150 """
151 metadata: NotRequired[Dict[str, str]]
152 """
153 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`.
154 """
155 off_session: NotRequired["bool|Literal['one_off', 'recurring']"]
156 """
157 Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
158 """
159 on_behalf_of: NotRequired[str]
160 """
161 The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
162 """
163 payment_details: NotRequired["PaymentIntentCreateParamsPaymentDetails"]
164 """
165 Provides industry-specific information about the charge.
166 """
167 payment_method: NotRequired[str]
168 """
169 ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
170
171 If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
172 If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://api.stripe.com#create_payment_intent-customer) parameter of this PaymentIntent.
173 end
174 """
175 payment_method_configuration: NotRequired[str]
176 """
177 The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
178 """
179 payment_method_data: NotRequired[
180 "PaymentIntentCreateParamsPaymentMethodData"
181 ]
182 """
183 If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
184 in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
185 property on the PaymentIntent.
186 """
187 payment_method_options: NotRequired[
188 "PaymentIntentCreateParamsPaymentMethodOptions"
189 ]
190 """
191 Payment method-specific configuration for this PaymentIntent.
192 """
193 payment_method_types: NotRequired[List[str]]
194 """
195 The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
196 """
197 radar_options: NotRequired["PaymentIntentCreateParamsRadarOptions"]
198 """
199 Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
200 """
201 receipt_email: NotRequired[str]
202 """
203 Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
204 """
205 return_url: NotRequired[str]
206 """
207 The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
208 """
209 setup_future_usage: NotRequired[Literal["off_session", "on_session"]]
210 """
211 Indicates that you intend to make future payments with this PaymentIntent's payment method.
212
213 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.
214
215 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.
216
217 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).
218 """
219 shipping: NotRequired["PaymentIntentCreateParamsShipping"]
220 """
221 Shipping information for this PaymentIntent.
222 """
223 statement_descriptor: NotRequired[str]
224 """
225 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).
226
227 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.
228 """
229 statement_descriptor_suffix: NotRequired[str]
230 """
231 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.
232 """
233 transfer_data: NotRequired["PaymentIntentCreateParamsTransferData"]
234 """
235 The parameters that you can use to automatically create a Transfer.
236 Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
237 """
238 transfer_group: NotRequired[str]
239 """
240 A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
241 """
242 use_stripe_sdk: NotRequired[bool]
243 """
244 Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
245 """
246
247
248 class PaymentIntentCreateParamsAmountDetails(TypedDict):
249 discount_amount: NotRequired["Literal['']|int"]
250 """
251 The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
252
253 This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
254 """
255 enforce_arithmetic_validation: NotRequired[bool]
256 """
257 Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
258
259 Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
260
261 For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
262 """
263 line_items: NotRequired[
264 "Literal['']|List[PaymentIntentCreateParamsAmountDetailsLineItem]"
265 ]
266 """
267 A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
268 """
269 shipping: NotRequired[
270 "Literal['']|PaymentIntentCreateParamsAmountDetailsShipping"
271 ]
272 """
273 Contains information about the shipping portion of the amount.
274 """
275 tax: NotRequired["Literal['']|PaymentIntentCreateParamsAmountDetailsTax"]
276 """
277 Contains information about the tax portion of the amount.
278 """
279
280
281 class PaymentIntentCreateParamsAmountDetailsLineItem(TypedDict):
282 discount_amount: NotRequired[int]
283 """
284 The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
285
286 This field is mutually exclusive with the `amount_details[discount_amount]` field.
287 """
288 payment_method_options: NotRequired[
289 "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions"
290 ]
291 """
292 Payment method-specific information for line items.
293 """
294 product_code: NotRequired[str]
295 """
296 The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
297 """
298 product_name: str
299 """
300 The product name of the line item. Required for L3 rates. At most 1024 characters long.
301
302 For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters.
303 """
304 quantity: int
305 """
306 The quantity of items. Required for L3 rates. An integer greater than 0.
307 """
308 tax: NotRequired["PaymentIntentCreateParamsAmountDetailsLineItemTax"]
309 """
310 Contains information about the tax on the item.
311 """
312 unit_cost: int
313 """
314 The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
315 """
316 unit_of_measure: NotRequired[str]
317 """
318 A unit of measure for the line item, such as gallons, feet, meters, etc.
319 """
320
321
322 class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions(
323 TypedDict,
324 ):
325 card: NotRequired[
326 "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard"
327 ]
328 """
329 This sub-hash contains line item details that are specific to the `card` payment method.
330 """
331 card_present: NotRequired[
332 "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent"
333 ]
334 """
335 This sub-hash contains line item details that are specific to the `card_present` payment method.
336 """
337 klarna: NotRequired[
338 "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna"
339 ]
340 """
341 This sub-hash contains line item details that are specific to the `klarna` payment method.
342 """
343 paypal: NotRequired[
344 "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal"
345 ]
346 """
347 This sub-hash contains line item details that are specific to the `paypal` payment method.
348 """
349
350
351 class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard(
352 TypedDict,
353 ):
354 commodity_code: NotRequired[str]
355 """
356 Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
357 """
358
359
360 class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent(
361 TypedDict,
362 ):
363 commodity_code: NotRequired[str]
364 """
365 Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
366 """
367
368
369 class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna(
370 TypedDict,
371 ):
372 image_url: NotRequired[str]
373 """
374 URL to an image for the product. Max length, 4096 characters.
375 """
376 product_url: NotRequired[str]
377 """
378 URL to the product page. Max length, 4096 characters.
379 """
380 reference: NotRequired[str]
381 """
382 Unique reference for this line item to correlate it with your system's internal records. The field is displayed in the Klarna Consumer App if passed.
383 """
384 subscription_reference: NotRequired[str]
385 """
386 Reference for the subscription this line item is for.
387 """
388
389
390 class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal(
391 TypedDict,
392 ):
393 category: NotRequired[
394 Literal["digital_goods", "donation", "physical_goods"]
395 ]
396 """
397 Type of the line item.
398 """
399 description: NotRequired[str]
400 """
401 Description of the line item.
402 """
403 sold_by: NotRequired[str]
404 """
405 The Stripe account ID of the connected account that sells the item.
406 """
407
408
409 class PaymentIntentCreateParamsAmountDetailsLineItemTax(TypedDict):
410 total_tax_amount: int
411 """
412 The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
413
414 This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
415 """
416
417
418 class PaymentIntentCreateParamsAmountDetailsShipping(TypedDict):
419 amount: NotRequired["Literal['']|int"]
420 """
421 If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
422 """
423 from_postal_code: NotRequired["Literal['']|str"]
424 """
425 If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
426 """
427 to_postal_code: NotRequired["Literal['']|str"]
428 """
429 If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
430 """
431
432
433 class PaymentIntentCreateParamsAmountDetailsTax(TypedDict):
434 total_tax_amount: int
435 """
436 The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
437
438 This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
439 """
440
441
442 class PaymentIntentCreateParamsAutomaticPaymentMethods(TypedDict):
443 allow_redirects: NotRequired[Literal["always", "never"]]
444 """
445 Controls whether this PaymentIntent will accept redirect-based payment methods.
446
447 Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
448 """
449 enabled: bool
450 """
451 Whether this feature is enabled.
452 """
453
454
455 class PaymentIntentCreateParamsHooks(TypedDict):
456 inputs: NotRequired["PaymentIntentCreateParamsHooksInputs"]
457 """
458 Arguments passed in automations
459 """
460
461
462 class PaymentIntentCreateParamsHooksInputs(TypedDict):
463 tax: NotRequired["PaymentIntentCreateParamsHooksInputsTax"]
464 """
465 Tax arguments for automations
466 """
467
468
469 class PaymentIntentCreateParamsHooksInputsTax(TypedDict):
470 calculation: Union[Literal[""], str]
471 """
472 The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
473 """
474
475
476 class PaymentIntentCreateParamsMandateData(TypedDict):
477 customer_acceptance: (
478 "PaymentIntentCreateParamsMandateDataCustomerAcceptance"
479 )
480 """
481 This hash contains details about the customer acceptance of the Mandate.
482 """
483
484
485 class PaymentIntentCreateParamsMandateDataCustomerAcceptance(TypedDict):
486 accepted_at: NotRequired[int]
487 """
488 The time at which the customer accepted the Mandate.
489 """
490 offline: NotRequired[
491 "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline"
492 ]
493 """
494 If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
495 """
496 online: NotRequired[
497 "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline"
498 ]
499 """
500 If this is a Mandate accepted online, this hash contains details about the online acceptance.
501 """
502 type: Literal["offline", "online"]
503 """
504 The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
505 """
506
507
508 class PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline(TypedDict):
509 pass
510
511
512 class PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline(TypedDict):
513 ip_address: str
514 """
515 The IP address from which the Mandate was accepted by the customer.
516 """
517 user_agent: str
518 """
519 The user agent of the browser from which the Mandate was accepted by the customer.
520 """
521
522
523 class PaymentIntentCreateParamsPaymentDetails(TypedDict):
524 customer_reference: NotRequired["Literal['']|str"]
525 """
526 A unique value to identify the customer. This field is available only for card payments.
527
528 This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
529 """
530 order_reference: NotRequired["Literal['']|str"]
531 """
532 A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
533
534 Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
535
536 For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
537 """
538
539
540 class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
541 acss_debit: NotRequired[
542 "PaymentIntentCreateParamsPaymentMethodDataAcssDebit"
543 ]
544 """
545 If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
546 """
547 affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"]
548 """
549 If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
550 """
551 afterpay_clearpay: NotRequired[
552 "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay"
553 ]
554 """
555 If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
556 """
557 alipay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlipay"]
558 """
559 If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
560 """
561 allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
562 """
563 This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
564 """
565 alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"]
566 """
567 If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
568 """
569 amazon_pay: NotRequired[
570 "PaymentIntentCreateParamsPaymentMethodDataAmazonPay"
571 ]
572 """
573 If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
574 """
575 au_becs_debit: NotRequired[
576 "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit"
577 ]
578 """
579 If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
580 """
581 bacs_debit: NotRequired[
582 "PaymentIntentCreateParamsPaymentMethodDataBacsDebit"
583 ]
584 """
585 If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
586 """
587 bancontact: NotRequired[
588 "PaymentIntentCreateParamsPaymentMethodDataBancontact"
589 ]
590 """
591 If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
592 """
593 billie: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBillie"]
594 """
595 If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
596 """
597 billing_details: NotRequired[
598 "PaymentIntentCreateParamsPaymentMethodDataBillingDetails"
599 ]
600 """
601 Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
602 """
603 blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"]
604 """
605 If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
606 """
607 boleto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBoleto"]
608 """
609 If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
610 """
611 cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"]
612 """
613 If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
614 """
615 crypto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCrypto"]
616 """
617 If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
618 """
619 customer_balance: NotRequired[
620 "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance"
621 ]
622 """
623 If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
624 """
625 eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"]
626 """
627 If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
628 """
629 fpx: NotRequired["PaymentIntentCreateParamsPaymentMethodDataFpx"]
630 """
631 If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
632 """
633 giropay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGiropay"]
634 """
635 If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
636 """
637 grabpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGrabpay"]
638 """
639 If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
640 """
641 ideal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataIdeal"]
642 """
643 If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
644 """
645 interac_present: NotRequired[
646 "PaymentIntentCreateParamsPaymentMethodDataInteracPresent"
647 ]
648 """
649 If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
650 """
651 kakao_pay: NotRequired[
652 "PaymentIntentCreateParamsPaymentMethodDataKakaoPay"
653 ]
654 """
655 If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
656 """
657 klarna: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarna"]
658 """
659 If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
660 """
661 konbini: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKonbini"]
662 """
663 If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
664 """
665 kr_card: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKrCard"]
666 """
667 If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
668 """
669 link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"]
670 """
671 If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
672 """
673 mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"]
674 """
675 If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
676 """
677 metadata: NotRequired[Dict[str, str]]
678 """
679 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`.
680 """
681 mobilepay: NotRequired[
682 "PaymentIntentCreateParamsPaymentMethodDataMobilepay"
683 ]
684 """
685 If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
686 """
687 multibanco: NotRequired[
688 "PaymentIntentCreateParamsPaymentMethodDataMultibanco"
689 ]
690 """
691 If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
692 """
693 naver_pay: NotRequired[
694 "PaymentIntentCreateParamsPaymentMethodDataNaverPay"
695 ]
696 """
697 If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
698 """
699 nz_bank_account: NotRequired[
700 "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount"
701 ]
702 """
703 If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
704 """
705 oxxo: NotRequired["PaymentIntentCreateParamsPaymentMethodDataOxxo"]
706 """
707 If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
708 """
709 p24: NotRequired["PaymentIntentCreateParamsPaymentMethodDataP24"]
710 """
711 If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
712 """
713 pay_by_bank: NotRequired[
714 "PaymentIntentCreateParamsPaymentMethodDataPayByBank"
715 ]
716 """
717 If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
718 """
719 payco: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayco"]
720 """
721 If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
722 """
723 paynow: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaynow"]
724 """
725 If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
726 """
727 paypal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypal"]
728 """
729 If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
730 """
731 payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"]
732 """
733 If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
734 """
735 pix: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPix"]
736 """
737 If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
738 """
739 promptpay: NotRequired[
740 "PaymentIntentCreateParamsPaymentMethodDataPromptpay"
741 ]
742 """
743 If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
744 """
745 radar_options: NotRequired[
746 "PaymentIntentCreateParamsPaymentMethodDataRadarOptions"
747 ]
748 """
749 Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
750 """
751 revolut_pay: NotRequired[
752 "PaymentIntentCreateParamsPaymentMethodDataRevolutPay"
753 ]
754 """
755 If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
756 """
757 samsung_pay: NotRequired[
758 "PaymentIntentCreateParamsPaymentMethodDataSamsungPay"
759 ]
760 """
761 If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
762 """
763 satispay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSatispay"]
764 """
765 If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
766 """
767 sepa_debit: NotRequired[
768 "PaymentIntentCreateParamsPaymentMethodDataSepaDebit"
769 ]
770 """
771 If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
772 """
773 sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"]
774 """
775 If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
776 """
777 swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"]
778 """
779 If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
780 """
781 twint: NotRequired["PaymentIntentCreateParamsPaymentMethodDataTwint"]
782 """
783 If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
784 """
785 type: Literal[
786 "acss_debit",
787 "affirm",
788 "afterpay_clearpay",
789 "alipay",
790 "alma",
791 "amazon_pay",
792 "au_becs_debit",
793 "bacs_debit",
794 "bancontact",
795 "billie",
796 "blik",
797 "boleto",
798 "cashapp",
799 "crypto",
800 "customer_balance",
801 "eps",
802 "fpx",
803 "giropay",
804 "grabpay",
805 "ideal",
806 "kakao_pay",
807 "klarna",
808 "konbini",
809 "kr_card",
810 "link",
811 "mb_way",
812 "mobilepay",
813 "multibanco",
814 "naver_pay",
815 "nz_bank_account",
816 "oxxo",
817 "p24",
818 "pay_by_bank",
819 "payco",
820 "paynow",
821 "paypal",
822 "payto",
823 "pix",
824 "promptpay",
825 "revolut_pay",
826 "samsung_pay",
827 "satispay",
828 "sepa_debit",
829 "sofort",
830 "swish",
831 "twint",
832 "us_bank_account",
833 "wechat_pay",
834 "zip",
835 ]
836 """
837 The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
838 """
839 us_bank_account: NotRequired[
840 "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount"
841 ]
842 """
843 If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
844 """
845 wechat_pay: NotRequired[
846 "PaymentIntentCreateParamsPaymentMethodDataWechatPay"
847 ]
848 """
849 If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
850 """
851 zip: NotRequired["PaymentIntentCreateParamsPaymentMethodDataZip"]
852 """
853 If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
854 """
855
856
857 class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict):
858 account_number: str
859 """
860 Customer's bank account number.
861 """
862 institution_number: str
863 """
864 Institution number of the customer's bank.
865 """
866 transit_number: str
867 """
868 Transit number of the customer's bank.
869 """
870
871
872 class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict):
873 pass
874
875
876 class PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
877 pass
878
879
880 class PaymentIntentCreateParamsPaymentMethodDataAlipay(TypedDict):
881 pass
882
883
884 class PaymentIntentCreateParamsPaymentMethodDataAlma(TypedDict):
885 pass
886
887
888 class PaymentIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict):
889 pass
890
891
892 class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict):
893 account_number: str
894 """
895 The account number for the bank account.
896 """
897 bsb_number: str
898 """
899 Bank-State-Branch number of the bank account.
900 """
901
902
903 class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict):
904 account_number: NotRequired[str]
905 """
906 Account number of the bank account that the funds will be debited from.
907 """
908 sort_code: NotRequired[str]
909 """
910 Sort code of the bank account. (e.g., `10-20-30`)
911 """
912
913
914 class PaymentIntentCreateParamsPaymentMethodDataBancontact(TypedDict):
915 pass
916
917
918 class PaymentIntentCreateParamsPaymentMethodDataBillie(TypedDict):
919 pass
920
921
922 class PaymentIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict):
923 address: NotRequired[
924 "Literal['']|PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress"
925 ]
926 """
927 Billing address.
928 """
929 email: NotRequired["Literal['']|str"]
930 """
931 Email address.
932 """
933 name: NotRequired["Literal['']|str"]
934 """
935 Full name.
936 """
937 phone: NotRequired["Literal['']|str"]
938 """
939 Billing phone number (including extension).
940 """
941 tax_id: NotRequired[str]
942 """
943 Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
944 """
945
946
947 class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress(
948 TypedDict,
949 ):
950 city: NotRequired[str]
951 """
952 City, district, suburb, town, or village.
953 """
954 country: NotRequired[str]
955 """
956 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
957 """
958 line1: NotRequired[str]
959 """
960 Address line 1, such as the street, PO Box, or company name.
961 """
962 line2: NotRequired[str]
963 """
964 Address line 2, such as the apartment, suite, unit, or building.
965 """
966 postal_code: NotRequired[str]
967 """
968 ZIP or postal code.
969 """
970 state: NotRequired[str]
971 """
972 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
973 """
974
975
976 class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict):
977 pass
978
979
980 class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict):
981 tax_id: str
982 """
983 The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
984 """
985
986
987 class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict):
988 pass
989
990
991 class PaymentIntentCreateParamsPaymentMethodDataCrypto(TypedDict):
992 pass
993
994
995 class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
996 pass
997
998
999 class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict):
1000 bank: NotRequired[
1001 Literal[
1002 "arzte_und_apotheker_bank",
1003 "austrian_anadi_bank_ag",
1004 "bank_austria",
1005 "bankhaus_carl_spangler",
1006 "bankhaus_schelhammer_und_schattera_ag",
1007 "bawag_psk_ag",
1008 "bks_bank_ag",
1009 "brull_kallmus_bank_ag",
1010 "btv_vier_lander_bank",
1011 "capital_bank_grawe_gruppe_ag",
1012 "deutsche_bank_ag",
1013 "dolomitenbank",
1014 "easybank_ag",
1015 "erste_bank_und_sparkassen",
1016 "hypo_alpeadriabank_international_ag",
1017 "hypo_bank_burgenland_aktiengesellschaft",
1018 "hypo_noe_lb_fur_niederosterreich_u_wien",
1019 "hypo_oberosterreich_salzburg_steiermark",
1020 "hypo_tirol_bank_ag",
1021 "hypo_vorarlberg_bank_ag",
1022 "marchfelder_bank",
1023 "oberbank_ag",
1024 "raiffeisen_bankengruppe_osterreich",
1025 "schoellerbank_ag",
1026 "sparda_bank_wien",
1027 "volksbank_gruppe",
1028 "volkskreditbank_ag",
1029 "vr_bank_braunau",
1030 ]
1031 ]
1032 """
1033 The customer's bank.
1034 """
1035
1036
1037 class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict):
1038 account_holder_type: NotRequired[Literal["company", "individual"]]
1039 """
1040 Account holder type for FPX transaction
1041 """
1042 bank: Literal[
1043 "affin_bank",
1044 "agrobank",
1045 "alliance_bank",
1046 "ambank",
1047 "bank_islam",
1048 "bank_muamalat",
1049 "bank_of_china",
1050 "bank_rakyat",
1051 "bsn",
1052 "cimb",
1053 "deutsche_bank",
1054 "hong_leong_bank",
1055 "hsbc",
1056 "kfh",
1057 "maybank2e",
1058 "maybank2u",
1059 "ocbc",
1060 "pb_enterprise",
1061 "public_bank",
1062 "rhb",
1063 "standard_chartered",
1064 "uob",
1065 ]
1066 """
1067 The customer's bank.
1068 """
1069
1070
1071 class PaymentIntentCreateParamsPaymentMethodDataGiropay(TypedDict):
1072 pass
1073
1074
1075 class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
1076 pass
1077
1078
1079 class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
1080 bank: NotRequired[
1081 Literal[
1082 "abn_amro",
1083 "adyen",
1084 "asn_bank",
1085 "bunq",
1086 "buut",
1087 "finom",
1088 "handelsbanken",
1089 "ing",
1090 "knab",
1091 "mollie",
1092 "moneyou",
1093 "n26",
1094 "nn",
1095 "rabobank",
1096 "regiobank",
1097 "revolut",
1098 "sns_bank",
1099 "triodos_bank",
1100 "van_lanschot",
1101 "yoursafe",
1102 ]
1103 ]
1104 """
1105 The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1106 """
1107
1108
1109 class PaymentIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict):
1110 pass
1111
1112
1113 class PaymentIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict):
1114 pass
1115
1116
1117 class PaymentIntentCreateParamsPaymentMethodDataKlarna(TypedDict):
1118 dob: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarnaDob"]
1119 """
1120 Customer's date of birth
1121 """
1122
1123
1124 class PaymentIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict):
1125 day: int
1126 """
1127 The day of birth, between 1 and 31.
1128 """
1129 month: int
1130 """
1131 The month of birth, between 1 and 12.
1132 """
1133 year: int
1134 """
1135 The four-digit year of birth.
1136 """
1137
1138
1139 class PaymentIntentCreateParamsPaymentMethodDataKonbini(TypedDict):
1140 pass
1141
1142
1143 class PaymentIntentCreateParamsPaymentMethodDataKrCard(TypedDict):
1144 pass
1145
1146
1147 class PaymentIntentCreateParamsPaymentMethodDataLink(TypedDict):
1148 pass
1149
1150
1151 class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict):
1152 pass
1153
1154
1155 class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict):
1156 pass
1157
1158
1159 class PaymentIntentCreateParamsPaymentMethodDataMultibanco(TypedDict):
1160 pass
1161
1162
1163 class PaymentIntentCreateParamsPaymentMethodDataNaverPay(TypedDict):
1164 funding: NotRequired[Literal["card", "points"]]
1165 """
1166 Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
1167 """
1168
1169
1170 class PaymentIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict):
1171 account_holder_name: NotRequired[str]
1172 """
1173 The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
1174 """
1175 account_number: str
1176 """
1177 The account number for the bank account.
1178 """
1179 bank_code: str
1180 """
1181 The numeric code for the bank account's bank.
1182 """
1183 branch_code: str
1184 """
1185 The numeric code for the bank account's bank branch.
1186 """
1187 reference: NotRequired[str]
1188 suffix: str
1189 """
1190 The suffix of the bank account number.
1191 """
1192
1193
1194 class PaymentIntentCreateParamsPaymentMethodDataOxxo(TypedDict):
1195 pass
1196
1197
1198 class PaymentIntentCreateParamsPaymentMethodDataP24(TypedDict):
1199 bank: NotRequired[
1200 Literal[
1201 "alior_bank",
1202 "bank_millennium",
1203 "bank_nowy_bfg_sa",
1204 "bank_pekao_sa",
1205 "banki_spbdzielcze",
1206 "blik",
1207 "bnp_paribas",
1208 "boz",
1209 "citi_handlowy",
1210 "credit_agricole",
1211 "envelobank",
1212 "etransfer_pocztowy24",
1213 "getin_bank",
1214 "ideabank",
1215 "ing",
1216 "inteligo",
1217 "mbank_mtransfer",
1218 "nest_przelew",
1219 "noble_pay",
1220 "pbac_z_ipko",
1221 "plus_bank",
1222 "santander_przelew24",
1223 "tmobile_usbugi_bankowe",
1224 "toyota_bank",
1225 "velobank",
1226 "volkswagen_bank",
1227 ]
1228 ]
1229 """
1230 The customer's bank.
1231 """
1232
1233
1234 class PaymentIntentCreateParamsPaymentMethodDataPayByBank(TypedDict):
1235 pass
1236
1237
1238 class PaymentIntentCreateParamsPaymentMethodDataPayco(TypedDict):
1239 pass
1240
1241
1242 class PaymentIntentCreateParamsPaymentMethodDataPaynow(TypedDict):
1243 pass
1244
1245
1246 class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict):
1247 pass
1248
1249
1250 class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict):
1251 account_number: NotRequired[str]
1252 """
1253 The account number for the bank account.
1254 """
1255 bsb_number: NotRequired[str]
1256 """
1257 Bank-State-Branch number of the bank account.
1258 """
1259 pay_id: NotRequired[str]
1260 """
1261 The PayID alias for the bank account.
1262 """
1263
1264
1265 class PaymentIntentCreateParamsPaymentMethodDataPix(TypedDict):
1266 pass
1267
1268
1269 class PaymentIntentCreateParamsPaymentMethodDataPromptpay(TypedDict):
1270 pass
1271
1272
1273 class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
1274 session: NotRequired[str]
1275 """
1276 A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1277 """
1278
1279
1280 class PaymentIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict):
1281 pass
1282
1283
1284 class PaymentIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict):
1285 pass
1286
1287
1288 class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict):
1289 pass
1290
1291
1292 class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict):
1293 iban: str
1294 """
1295 IBAN of the bank account.
1296 """
1297
1298
1299 class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict):
1300 country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
1301 """
1302 Two-letter ISO code representing the country the bank account is located in.
1303 """
1304
1305
1306 class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict):
1307 pass
1308
1309
1310 class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict):
1311 pass
1312
1313
1314 class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
1315 account_holder_type: NotRequired[Literal["company", "individual"]]
1316 """
1317 Account holder type: individual or company.
1318 """
1319 account_number: NotRequired[str]
1320 """
1321 Account number of the bank account.
1322 """
1323 account_type: NotRequired[Literal["checking", "savings"]]
1324 """
1325 Account type: checkings or savings. Defaults to checking if omitted.
1326 """
1327 financial_connections_account: NotRequired[str]
1328 """
1329 The ID of a Financial Connections Account to use as a payment method.
1330 """
1331 routing_number: NotRequired[str]
1332 """
1333 Routing number of the bank account.
1334 """
1335
1336
1337 class PaymentIntentCreateParamsPaymentMethodDataWechatPay(TypedDict):
1338 pass
1339
1340
1341 class PaymentIntentCreateParamsPaymentMethodDataZip(TypedDict):
1342 pass
1343
1344
1345 class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict):
1346 acss_debit: NotRequired[
1347 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit"
1348 ]
1349 """
1350 If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
1351 """
1352 affirm: NotRequired[
1353 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAffirm"
1354 ]
1355 """
1356 If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
1357 """
1358 afterpay_clearpay: NotRequired[
1359 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay"
1360 ]
1361 """
1362 If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
1363 """
1364 alipay: NotRequired[
1365 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlipay"
1366 ]
1367 """
1368 If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
1369 """
1370 alma: NotRequired[
1371 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlma"
1372 ]
1373 """
1374 If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
1375 """
1376 amazon_pay: NotRequired[
1377 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay"
1378 ]
1379 """
1380 If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
1381 """
1382 au_becs_debit: NotRequired[
1383 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit"
1384 ]
1385 """
1386 If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
1387 """
1388 bacs_debit: NotRequired[
1389 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit"
1390 ]
1391 """
1392 If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
1393 """
1394 bancontact: NotRequired[
1395 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBancontact"
1396 ]
1397 """
1398 If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
1399 """
1400 billie: NotRequired[
1401 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillie"
1402 ]
1403 """
1404 If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
1405 """
1406 blik: NotRequired[
1407 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik"
1408 ]
1409 """
1410 If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
1411 """
1412 boleto: NotRequired[
1413 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBoleto"
1414 ]
1415 """
1416 If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
1417 """
1418 card: NotRequired[
1419 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCard"
1420 ]
1421 """
1422 Configuration for any card payments attempted on this PaymentIntent.
1423 """
1424 card_present: NotRequired[
1425 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPresent"
1426 ]
1427 """
1428 If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
1429 """
1430 cashapp: NotRequired[
1431 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp"
1432 ]
1433 """
1434 If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
1435 """
1436 crypto: NotRequired[
1437 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCrypto"
1438 ]
1439 """
1440 If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
1441 """
1442 customer_balance: NotRequired[
1443 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance"
1444 ]
1445 """
1446 If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
1447 """
1448 eps: NotRequired[
1449 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsEps"
1450 ]
1451 """
1452 If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
1453 """
1454 fpx: NotRequired[
1455 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsFpx"
1456 ]
1457 """
1458 If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
1459 """
1460 giropay: NotRequired[
1461 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay"
1462 ]
1463 """
1464 If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
1465 """
1466 grabpay: NotRequired[
1467 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGrabpay"
1468 ]
1469 """
1470 If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
1471 """
1472 ideal: NotRequired[
1473 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdeal"
1474 ]
1475 """
1476 If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
1477 """
1478 interac_present: NotRequired[
1479 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent"
1480 ]
1481 """
1482 If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
1483 """
1484 kakao_pay: NotRequired[
1485 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay"
1486 ]
1487 """
1488 If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
1489 """
1490 klarna: NotRequired[
1491 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarna"
1492 ]
1493 """
1494 If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
1495 """
1496 konbini: NotRequired[
1497 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKonbini"
1498 ]
1499 """
1500 If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
1501 """
1502 kr_card: NotRequired[
1503 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKrCard"
1504 ]
1505 """
1506 If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
1507 """
1508 link: NotRequired[
1509 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink"
1510 ]
1511 """
1512 If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1513 """
1514 mb_way: NotRequired[
1515 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay"
1516 ]
1517 """
1518 If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
1519 """
1520 mobilepay: NotRequired[
1521 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMobilepay"
1522 ]
1523 """
1524 If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
1525 """
1526 multibanco: NotRequired[
1527 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMultibanco"
1528 ]
1529 """
1530 If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
1531 """
1532 naver_pay: NotRequired[
1533 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNaverPay"
1534 ]
1535 """
1536 If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
1537 """
1538 nz_bank_account: NotRequired[
1539 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount"
1540 ]
1541 """
1542 If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
1543 """
1544 oxxo: NotRequired[
1545 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsOxxo"
1546 ]
1547 """
1548 If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
1549 """
1550 p24: NotRequired[
1551 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsP24"
1552 ]
1553 """
1554 If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
1555 """
1556 pay_by_bank: NotRequired[
1557 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayByBank"
1558 ]
1559 """
1560 If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
1561 """
1562 payco: NotRequired[
1563 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayco"
1564 ]
1565 """
1566 If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
1567 """
1568 paynow: NotRequired[
1569 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaynow"
1570 ]
1571 """
1572 If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
1573 """
1574 paypal: NotRequired[
1575 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypal"
1576 ]
1577 """
1578 If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1579 """
1580 payto: NotRequired[
1581 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto"
1582 ]
1583 """
1584 If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
1585 """
1586 pix: NotRequired[
1587 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPix"
1588 ]
1589 """
1590 If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
1591 """
1592 promptpay: NotRequired[
1593 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPromptpay"
1594 ]
1595 """
1596 If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
1597 """
1598 revolut_pay: NotRequired[
1599 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay"
1600 ]
1601 """
1602 If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
1603 """
1604 samsung_pay: NotRequired[
1605 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay"
1606 ]
1607 """
1608 If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
1609 """
1610 satispay: NotRequired[
1611 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSatispay"
1612 ]
1613 """
1614 If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
1615 """
1616 sepa_debit: NotRequired[
1617 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit"
1618 ]
1619 """
1620 If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
1621 """
1622 sofort: NotRequired[
1623 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort"
1624 ]
1625 """
1626 If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
1627 """
1628 swish: NotRequired[
1629 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish"
1630 ]
1631 """
1632 If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
1633 """
1634 twint: NotRequired[
1635 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsTwint"
1636 ]
1637 """
1638 If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
1639 """
1640 us_bank_account: NotRequired[
1641 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount"
1642 ]
1643 """
1644 If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
1645 """
1646 wechat_pay: NotRequired[
1647 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsWechatPay"
1648 ]
1649 """
1650 If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
1651 """
1652 zip: NotRequired[
1653 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsZip"
1654 ]
1655 """
1656 If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
1657 """
1658
1659
1660 class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
1661 mandate_options: NotRequired[
1662 "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
1663 ]
1664 """
1665 Additional fields for Mandate creation
1666 """
1667 setup_future_usage: NotRequired[
1668 "Literal['']|Literal['none', 'off_session', 'on_session']"
1669 ]
1670 """
1671 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1672
1673 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.
1674
1675 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.
1676
1677 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).
1678
1679 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`.
1680 """
1681 target_date: NotRequired[str]
1682 """
1683 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.
1684 """
1685 verification_method: NotRequired[
1686 Literal["automatic", "instant", "microdeposits"]
1687 ]
1688 """
1689 Bank account verification method.
1690 """
1691
1692
1693 class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
1694 TypedDict,
1695 ):
1696 custom_mandate_url: NotRequired["Literal['']|str"]
1697 """
1698 A URL for custom mandate text to render during confirmation step.
1699 The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
1700 or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
1701 """
1702 interval_description: NotRequired[str]
1703 """
1704 Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
1705 """
1706 payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
1707 """
1708 Payment schedule for the mandate.
1709 """
1710 transaction_type: NotRequired[Literal["business", "personal"]]
1711 """
1712 Transaction type of the mandate.
1713 """
1714
1715
1716 class PaymentIntentCreateParamsPaymentMethodOptionsAffirm(TypedDict):
1717 capture_method: NotRequired["Literal['']|Literal['manual']"]
1718 """
1719 Controls when the funds are captured from the customer's account.
1720
1721 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1722
1723 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1724 """
1725 preferred_locale: NotRequired[str]
1726 """
1727 Preferred language of the Affirm authorization page that the customer is redirected to.
1728 """
1729 setup_future_usage: NotRequired[Literal["none"]]
1730 """
1731 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1732
1733 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.
1734
1735 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.
1736
1737 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).
1738
1739 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`.
1740 """
1741
1742
1743 class PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
1744 capture_method: NotRequired["Literal['']|Literal['manual']"]
1745 """
1746 Controls when the funds are captured from the customer's account.
1747
1748 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1749
1750 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1751 """
1752 reference: NotRequired[str]
1753 """
1754 An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
1755 This field differs from the statement descriptor and item name.
1756 """
1757 setup_future_usage: NotRequired[Literal["none"]]
1758 """
1759 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1760
1761 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.
1762
1763 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.
1764
1765 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).
1766
1767 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`.
1768 """
1769
1770
1771 class PaymentIntentCreateParamsPaymentMethodOptionsAlipay(TypedDict):
1772 setup_future_usage: NotRequired[
1773 "Literal['']|Literal['none', 'off_session']"
1774 ]
1775 """
1776 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1777
1778 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.
1779
1780 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.
1781
1782 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).
1783
1784 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`.
1785 """
1786
1787
1788 class PaymentIntentCreateParamsPaymentMethodOptionsAlma(TypedDict):
1789 capture_method: NotRequired["Literal['']|Literal['manual']"]
1790 """
1791 Controls when the funds are captured from the customer's account.
1792
1793 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1794
1795 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1796 """
1797
1798
1799 class PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict):
1800 capture_method: NotRequired["Literal['']|Literal['manual']"]
1801 """
1802 Controls when the funds are captured from the customer's account.
1803
1804 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1805
1806 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1807 """
1808 setup_future_usage: NotRequired[
1809 "Literal['']|Literal['none', 'off_session']"
1810 ]
1811 """
1812 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1813
1814 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.
1815
1816 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.
1817
1818 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).
1819 """
1820
1821
1822 class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
1823 setup_future_usage: NotRequired[
1824 "Literal['']|Literal['none', 'off_session', 'on_session']"
1825 ]
1826 """
1827 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1828
1829 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.
1830
1831 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.
1832
1833 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).
1834
1835 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`.
1836 """
1837 target_date: NotRequired[str]
1838 """
1839 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.
1840 """
1841
1842
1843 class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
1844 mandate_options: NotRequired[
1845 "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions"
1846 ]
1847 """
1848 Additional fields for Mandate creation
1849 """
1850 setup_future_usage: NotRequired[
1851 "Literal['']|Literal['none', 'off_session', 'on_session']"
1852 ]
1853 """
1854 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1855
1856 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.
1857
1858 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.
1859
1860 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).
1861
1862 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`.
1863 """
1864 target_date: NotRequired[str]
1865 """
1866 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.
1867 """
1868
1869
1870 class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions(
1871 TypedDict,
1872 ):
1873 reference_prefix: NotRequired["Literal['']|str"]
1874 """
1875 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'.
1876 """
1877
1878
1879 class PaymentIntentCreateParamsPaymentMethodOptionsBancontact(TypedDict):
1880 preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
1881 """
1882 Preferred language of the Bancontact authorization page that the customer is redirected to.
1883 """
1884 setup_future_usage: NotRequired[
1885 "Literal['']|Literal['none', 'off_session']"
1886 ]
1887 """
1888 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1889
1890 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.
1891
1892 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.
1893
1894 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).
1895
1896 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`.
1897 """
1898
1899
1900 class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict):
1901 capture_method: NotRequired["Literal['']|Literal['manual']"]
1902 """
1903 Controls when the funds are captured from the customer's account.
1904
1905 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1906
1907 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1908 """
1909
1910
1911 class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict):
1912 code: NotRequired[str]
1913 """
1914 The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
1915 """
1916 setup_future_usage: NotRequired["Literal['']|Literal['none']"]
1917 """
1918 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1919
1920 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.
1921
1922 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.
1923
1924 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).
1925
1926 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`.
1927 """
1928
1929
1930 class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict):
1931 expires_after_days: NotRequired[int]
1932 """
1933 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.
1934 """
1935 setup_future_usage: NotRequired[
1936 "Literal['']|Literal['none', 'off_session', 'on_session']"
1937 ]
1938 """
1939 Indicates that you intend to make future payments with this PaymentIntent's payment method.
1940
1941 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.
1942
1943 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.
1944
1945 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).
1946
1947 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`.
1948 """
1949
1950
1951 class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
1952 capture_method: NotRequired["Literal['']|Literal['manual']"]
1953 """
1954 Controls when the funds are captured from the customer's account.
1955
1956 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1957
1958 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1959 """
1960 cvc_token: NotRequired[str]
1961 """
1962 A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
1963 """
1964 installments: NotRequired[
1965 "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments"
1966 ]
1967 """
1968 Installment configuration for payments attempted on this PaymentIntent.
1969
1970 For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
1971 """
1972 mandate_options: NotRequired[
1973 "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions"
1974 ]
1975 """
1976 Configuration options for setting up an eMandate for cards issued in India.
1977 """
1978 moto: NotRequired[bool]
1979 """
1980 When specified, this parameter indicates that a transaction will be marked
1981 as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
1982 parameter can only be provided during confirmation.
1983 """
1984 network: NotRequired[
1985 Literal[
1986 "amex",
1987 "cartes_bancaires",
1988 "diners",
1989 "discover",
1990 "eftpos_au",
1991 "girocard",
1992 "interac",
1993 "jcb",
1994 "link",
1995 "mastercard",
1996 "unionpay",
1997 "unknown",
1998 "visa",
1999 ]
2000 ]
2001 """
2002 Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
2003 """
2004 request_extended_authorization: NotRequired[
2005 Literal["if_available", "never"]
2006 ]
2007 """
2008 Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
2009 """
2010 request_incremental_authorization: NotRequired[
2011 Literal["if_available", "never"]
2012 ]
2013 """
2014 Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
2015 """
2016 request_multicapture: NotRequired[Literal["if_available", "never"]]
2017 """
2018 Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
2019 """
2020 request_overcapture: NotRequired[Literal["if_available", "never"]]
2021 """
2022 Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
2023 """
2024 request_three_d_secure: NotRequired[
2025 Literal["any", "automatic", "challenge"]
2026 ]
2027 """
2028 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.
2029 """
2030 require_cvc_recollection: NotRequired[bool]
2031 """
2032 When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
2033 """
2034 setup_future_usage: NotRequired[
2035 "Literal['']|Literal['none', 'off_session', 'on_session']"
2036 ]
2037 """
2038 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2039
2040 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.
2041
2042 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.
2043
2044 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).
2045
2046 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`.
2047 """
2048 statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
2049 """
2050 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.
2051 """
2052 statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
2053 """
2054 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.
2055 """
2056 three_d_secure: NotRequired[
2057 "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure"
2058 ]
2059 """
2060 If 3D Secure authentication was performed with a third-party provider,
2061 the authentication details to use for this payment.
2062 """
2063
2064
2065 class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict):
2066 enabled: NotRequired[bool]
2067 """
2068 Setting to true enables installments for this PaymentIntent.
2069 This will cause the response to contain a list of available installment plans.
2070 Setting to false will prevent any selected plan from applying to a charge.
2071 """
2072 plan: NotRequired[
2073 "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan"
2074 ]
2075 """
2076 The selected installment plan to use for this payment attempt.
2077 This parameter can only be provided during confirmation.
2078 """
2079
2080
2081 class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan(
2082 TypedDict,
2083 ):
2084 count: NotRequired[int]
2085 """
2086 For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
2087 """
2088 interval: NotRequired[Literal["month"]]
2089 """
2090 For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
2091 One of `month`.
2092 """
2093 type: Literal["bonus", "fixed_count", "revolving"]
2094 """
2095 Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
2096 """
2097
2098
2099 class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
2100 TypedDict,
2101 ):
2102 amount: int
2103 """
2104 Amount to be charged for future payments.
2105 """
2106 amount_type: Literal["fixed", "maximum"]
2107 """
2108 One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
2109 """
2110 description: NotRequired[str]
2111 """
2112 A description of the mandate or subscription that is meant to be displayed to the customer.
2113 """
2114 end_date: NotRequired[int]
2115 """
2116 End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2117 """
2118 interval: Literal["day", "month", "sporadic", "week", "year"]
2119 """
2120 Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
2121 """
2122 interval_count: NotRequired[int]
2123 """
2124 The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
2125 """
2126 reference: str
2127 """
2128 Unique identifier for the mandate or subscription.
2129 """
2130 start_date: int
2131 """
2132 Start date of the mandate or subscription. Start date should not be lesser than yesterday.
2133 """
2134 supported_types: NotRequired[List[Literal["india"]]]
2135 """
2136 Specifies the type of mandates supported. Possible values are `india`.
2137 """
2138
2139
2140 class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
2141 ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
2142 """
2143 The `transStatus` returned from the card Issuer's ACS in the ARes.
2144 """
2145 cryptogram: str
2146 """
2147 The cryptogram, also known as the "authentication value" (AAV, CAVV or
2148 AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
2149 (Most 3D Secure providers will return the base64-encoded version, which
2150 is what you should specify here.)
2151 """
2152 electronic_commerce_indicator: NotRequired[
2153 Literal["01", "02", "05", "06", "07"]
2154 ]
2155 """
2156 The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
2157 provider and indicates what degree of authentication was performed.
2158 """
2159 exemption_indicator: NotRequired[Literal["low_risk", "none"]]
2160 """
2161 The exemption requested via 3DS and accepted by the issuer at authentication time.
2162 """
2163 network_options: NotRequired[
2164 "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
2165 ]
2166 """
2167 Network specific 3DS fields. Network specific arguments require an
2168 explicit card brand choice. The parameter `payment_method_options.card.network``
2169 must be populated accordingly
2170 """
2171 requestor_challenge_indicator: NotRequired[str]
2172 """
2173 The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
2174 AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
2175 """
2176 transaction_id: str
2177 """
2178 For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
2179 Transaction ID (dsTransID).
2180 """
2181 version: Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"]
2182 """
2183 The version of 3D Secure that was performed.
2184 """
2185
2186
2187 class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
2188 TypedDict,
2189 ):
2190 cartes_bancaires: NotRequired[
2191 "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
2192 ]
2193 """
2194 Cartes Bancaires-specific 3DS fields.
2195 """
2196
2197
2198 class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
2199 TypedDict,
2200 ):
2201 cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
2202 """
2203 The cryptogram calculation algorithm used by the card Issuer's ACS
2204 to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
2205 messageExtension: CB-AVALGO
2206 """
2207 cb_exemption: NotRequired[str]
2208 """
2209 The exemption indicator returned from Cartes Bancaires in the ARes.
2210 message extension: CB-EXEMPTION; string (4 characters)
2211 This is a 3 byte bitmap (low significant byte first and most significant
2212 bit first) that has been Base64 encoded
2213 """
2214 cb_score: NotRequired[int]
2215 """
2216 The risk score returned from Cartes Bancaires in the ARes.
2217 message extension: CB-SCORE; numeric value 0-99
2218 """
2219
2220
2221 class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict):
2222 capture_method: NotRequired[Literal["manual", "manual_preferred"]]
2223 """
2224 Controls when the funds are captured from the customer's account.
2225
2226 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2227
2228 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2229 """
2230 request_extended_authorization: NotRequired[bool]
2231 """
2232 Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
2233 """
2234 request_incremental_authorization_support: NotRequired[bool]
2235 """
2236 Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
2237 """
2238 routing: NotRequired[
2239 "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting"
2240 ]
2241 """
2242 Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
2243 """
2244
2245
2246 class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting(
2247 TypedDict,
2248 ):
2249 requested_priority: NotRequired[Literal["domestic", "international"]]
2250 """
2251 Routing requested priority
2252 """
2253
2254
2255 class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict):
2256 capture_method: NotRequired["Literal['']|Literal['manual']"]
2257 """
2258 Controls when the funds are captured from the customer's account.
2259
2260 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2261
2262 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2263 """
2264 setup_future_usage: NotRequired[
2265 "Literal['']|Literal['none', 'off_session', 'on_session']"
2266 ]
2267 """
2268 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2269
2270 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.
2271
2272 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.
2273
2274 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).
2275
2276 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`.
2277 """
2278
2279
2280 class PaymentIntentCreateParamsPaymentMethodOptionsCrypto(TypedDict):
2281 setup_future_usage: NotRequired[Literal["none"]]
2282 """
2283 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2284
2285 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.
2286
2287 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.
2288
2289 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).
2290
2291 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`.
2292 """
2293
2294
2295 class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
2296 bank_transfer: NotRequired[
2297 "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
2298 ]
2299 """
2300 Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
2301 """
2302 funding_type: NotRequired[Literal["bank_transfer"]]
2303 """
2304 The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
2305 """
2306 setup_future_usage: NotRequired[Literal["none"]]
2307 """
2308 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2309
2310 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.
2311
2312 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.
2313
2314 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).
2315
2316 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`.
2317 """
2318
2319
2320 class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
2321 TypedDict,
2322 ):
2323 eu_bank_transfer: NotRequired[
2324 "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
2325 ]
2326 """
2327 Configuration for the eu_bank_transfer funding type.
2328 """
2329 requested_address_types: NotRequired[
2330 List[
2331 Literal[
2332 "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
2333 ]
2334 ]
2335 ]
2336 """
2337 List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
2338
2339 Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
2340 """
2341 type: Literal[
2342 "eu_bank_transfer",
2343 "gb_bank_transfer",
2344 "jp_bank_transfer",
2345 "mx_bank_transfer",
2346 "us_bank_transfer",
2347 ]
2348 """
2349 The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
2350 """
2351
2352
2353 class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
2354 TypedDict,
2355 ):
2356 country: str
2357 """
2358 The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
2359 """
2360
2361
2362 class PaymentIntentCreateParamsPaymentMethodOptionsEps(TypedDict):
2363 setup_future_usage: NotRequired[Literal["none"]]
2364 """
2365 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2366
2367 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.
2368
2369 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.
2370
2371 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).
2372
2373 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`.
2374 """
2375
2376
2377 class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict):
2378 setup_future_usage: NotRequired[Literal["none"]]
2379 """
2380 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2381
2382 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.
2383
2384 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.
2385
2386 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).
2387
2388 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`.
2389 """
2390
2391
2392 class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict):
2393 setup_future_usage: NotRequired[Literal["none"]]
2394 """
2395 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2396
2397 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.
2398
2399 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.
2400
2401 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).
2402
2403 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`.
2404 """
2405
2406
2407 class PaymentIntentCreateParamsPaymentMethodOptionsGrabpay(TypedDict):
2408 setup_future_usage: NotRequired[Literal["none"]]
2409 """
2410 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2411
2412 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.
2413
2414 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.
2415
2416 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).
2417
2418 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`.
2419 """
2420
2421
2422 class PaymentIntentCreateParamsPaymentMethodOptionsIdeal(TypedDict):
2423 setup_future_usage: NotRequired[
2424 "Literal['']|Literal['none', 'off_session']"
2425 ]
2426 """
2427 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2428
2429 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.
2430
2431 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.
2432
2433 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).
2434
2435 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`.
2436 """
2437
2438
2439 class PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent(TypedDict):
2440 pass
2441
2442
2443 class PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay(TypedDict):
2444 capture_method: NotRequired["Literal['']|Literal['manual']"]
2445 """
2446 Controls when the funds are captured from the customer's account.
2447
2448 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2449
2450 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2451 """
2452 setup_future_usage: NotRequired[
2453 "Literal['']|Literal['none', 'off_session']"
2454 ]
2455 """
2456 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2457
2458 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.
2459
2460 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.
2461
2462 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).
2463 """
2464
2465
2466 class PaymentIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict):
2467 capture_method: NotRequired["Literal['']|Literal['manual']"]
2468 """
2469 Controls when the funds are captured from the customer's account.
2470
2471 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2472
2473 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2474 """
2475 on_demand: NotRequired[
2476 "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand"
2477 ]
2478 """
2479 On-demand details if setting up or charging an on-demand payment.
2480 """
2481 preferred_locale: NotRequired[
2482 Literal[
2483 "cs-CZ",
2484 "da-DK",
2485 "de-AT",
2486 "de-CH",
2487 "de-DE",
2488 "el-GR",
2489 "en-AT",
2490 "en-AU",
2491 "en-BE",
2492 "en-CA",
2493 "en-CH",
2494 "en-CZ",
2495 "en-DE",
2496 "en-DK",
2497 "en-ES",
2498 "en-FI",
2499 "en-FR",
2500 "en-GB",
2501 "en-GR",
2502 "en-IE",
2503 "en-IT",
2504 "en-NL",
2505 "en-NO",
2506 "en-NZ",
2507 "en-PL",
2508 "en-PT",
2509 "en-RO",
2510 "en-SE",
2511 "en-US",
2512 "es-ES",
2513 "es-US",
2514 "fi-FI",
2515 "fr-BE",
2516 "fr-CA",
2517 "fr-CH",
2518 "fr-FR",
2519 "it-CH",
2520 "it-IT",
2521 "nb-NO",
2522 "nl-BE",
2523 "nl-NL",
2524 "pl-PL",
2525 "pt-PT",
2526 "ro-RO",
2527 "sv-FI",
2528 "sv-SE",
2529 ]
2530 ]
2531 """
2532 Preferred language of the Klarna authorization page that the customer is redirected to
2533 """
2534 setup_future_usage: NotRequired[
2535 Literal["none", "off_session", "on_session"]
2536 ]
2537 """
2538 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2539
2540 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.
2541
2542 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.
2543
2544 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).
2545
2546 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`.
2547 """
2548 subscriptions: NotRequired[
2549 "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]"
2550 ]
2551 """
2552 Subscription details if setting up or charging a subscription.
2553 """
2554
2555
2556 class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
2557 average_amount: NotRequired[int]
2558 """
2559 Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
2560 """
2561 maximum_amount: NotRequired[int]
2562 """
2563 The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
2564 """
2565 minimum_amount: NotRequired[int]
2566 """
2567 The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
2568 """
2569 purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
2570 """
2571 Interval at which the customer is making purchases
2572 """
2573 purchase_interval_count: NotRequired[int]
2574 """
2575 The number of `purchase_interval` between charges
2576 """
2577
2578
2579 class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription(
2580 TypedDict,
2581 ):
2582 interval: Literal["day", "month", "week", "year"]
2583 """
2584 Unit of time between subscription charges.
2585 """
2586 interval_count: NotRequired[int]
2587 """
2588 The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
2589 """
2590 name: NotRequired[str]
2591 """
2592 Name for subscription.
2593 """
2594 next_billing: NotRequired[
2595 "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
2596 ]
2597 """
2598 Describes the upcoming charge for this subscription.
2599 """
2600 reference: str
2601 """
2602 A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
2603 """
2604
2605
2606 class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
2607 TypedDict,
2608 ):
2609 amount: int
2610 """
2611 The amount of the next charge for the subscription.
2612 """
2613 date: str
2614 """
2615 The date of the next charge for the subscription in YYYY-MM-DD format.
2616 """
2617
2618
2619 class PaymentIntentCreateParamsPaymentMethodOptionsKonbini(TypedDict):
2620 confirmation_number: NotRequired["Literal['']|str"]
2621 """
2622 An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
2623 """
2624 expires_after_days: NotRequired["Literal['']|int"]
2625 """
2626 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.
2627 """
2628 expires_at: NotRequired["Literal['']|int"]
2629 """
2630 The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
2631 """
2632 product_description: NotRequired["Literal['']|str"]
2633 """
2634 A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
2635 """
2636 setup_future_usage: NotRequired[Literal["none"]]
2637 """
2638 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2639
2640 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.
2641
2642 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.
2643
2644 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).
2645
2646 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`.
2647 """
2648
2649
2650 class PaymentIntentCreateParamsPaymentMethodOptionsKrCard(TypedDict):
2651 capture_method: NotRequired["Literal['']|Literal['manual']"]
2652 """
2653 Controls when the funds are captured from the customer's account.
2654
2655 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2656
2657 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2658 """
2659 setup_future_usage: NotRequired[
2660 "Literal['']|Literal['none', 'off_session']"
2661 ]
2662 """
2663 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2664
2665 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.
2666
2667 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.
2668
2669 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).
2670 """
2671
2672
2673 class PaymentIntentCreateParamsPaymentMethodOptionsLink(TypedDict):
2674 capture_method: NotRequired["Literal['']|Literal['manual']"]
2675 """
2676 Controls when the funds are captured from the customer's account.
2677
2678 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2679
2680 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2681 """
2682 persistent_token: NotRequired[str]
2683 """
2684 [Deprecated] This is a legacy parameter that no longer has any function.
2685 """
2686 setup_future_usage: NotRequired[
2687 "Literal['']|Literal['none', 'off_session']"
2688 ]
2689 """
2690 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2691
2692 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.
2693
2694 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.
2695
2696 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).
2697
2698 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`.
2699 """
2700
2701
2702 class PaymentIntentCreateParamsPaymentMethodOptionsMbWay(TypedDict):
2703 setup_future_usage: NotRequired[Literal["none"]]
2704 """
2705 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2706
2707 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.
2708
2709 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.
2710
2711 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).
2712
2713 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`.
2714 """
2715
2716
2717 class PaymentIntentCreateParamsPaymentMethodOptionsMobilepay(TypedDict):
2718 capture_method: NotRequired["Literal['']|Literal['manual']"]
2719 """
2720 Controls when the funds are captured from the customer's account.
2721
2722 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2723
2724 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2725 """
2726 setup_future_usage: NotRequired[Literal["none"]]
2727 """
2728 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2729
2730 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.
2731
2732 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.
2733
2734 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).
2735
2736 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`.
2737 """
2738
2739
2740 class PaymentIntentCreateParamsPaymentMethodOptionsMultibanco(TypedDict):
2741 setup_future_usage: NotRequired[Literal["none"]]
2742 """
2743 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2744
2745 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.
2746
2747 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.
2748
2749 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).
2750
2751 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`.
2752 """
2753
2754
2755 class PaymentIntentCreateParamsPaymentMethodOptionsNaverPay(TypedDict):
2756 capture_method: NotRequired["Literal['']|Literal['manual']"]
2757 """
2758 Controls when the funds are captured from the customer's account.
2759
2760 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2761
2762 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2763 """
2764 setup_future_usage: NotRequired[
2765 "Literal['']|Literal['none', 'off_session']"
2766 ]
2767 """
2768 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2769
2770 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.
2771
2772 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.
2773
2774 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).
2775 """
2776
2777
2778 class PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount(TypedDict):
2779 setup_future_usage: NotRequired[
2780 "Literal['']|Literal['none', 'off_session', 'on_session']"
2781 ]
2782 """
2783 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2784
2785 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.
2786
2787 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.
2788
2789 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).
2790
2791 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`.
2792 """
2793 target_date: NotRequired[str]
2794 """
2795 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.
2796 """
2797
2798
2799 class PaymentIntentCreateParamsPaymentMethodOptionsOxxo(TypedDict):
2800 expires_after_days: NotRequired[int]
2801 """
2802 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.
2803 """
2804 setup_future_usage: NotRequired[Literal["none"]]
2805 """
2806 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2807
2808 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.
2809
2810 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.
2811
2812 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).
2813
2814 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`.
2815 """
2816
2817
2818 class PaymentIntentCreateParamsPaymentMethodOptionsP24(TypedDict):
2819 setup_future_usage: NotRequired[Literal["none"]]
2820 """
2821 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2822
2823 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.
2824
2825 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.
2826
2827 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).
2828
2829 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`.
2830 """
2831 tos_shown_and_accepted: NotRequired[bool]
2832 """
2833 Confirm that the payer has accepted the P24 terms and conditions.
2834 """
2835
2836
2837 class PaymentIntentCreateParamsPaymentMethodOptionsPayByBank(TypedDict):
2838 pass
2839
2840
2841 class PaymentIntentCreateParamsPaymentMethodOptionsPayco(TypedDict):
2842 capture_method: NotRequired["Literal['']|Literal['manual']"]
2843 """
2844 Controls when the funds are captured from the customer's account.
2845
2846 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2847
2848 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2849 """
2850
2851
2852 class PaymentIntentCreateParamsPaymentMethodOptionsPaynow(TypedDict):
2853 setup_future_usage: NotRequired[Literal["none"]]
2854 """
2855 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2856
2857 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.
2858
2859 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.
2860
2861 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).
2862
2863 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`.
2864 """
2865
2866
2867 class PaymentIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
2868 capture_method: NotRequired["Literal['']|Literal['manual']"]
2869 """
2870 Controls when the funds will be captured from the customer's account.
2871 """
2872 preferred_locale: NotRequired[
2873 Literal[
2874 "cs-CZ",
2875 "da-DK",
2876 "de-AT",
2877 "de-DE",
2878 "de-LU",
2879 "el-GR",
2880 "en-GB",
2881 "en-US",
2882 "es-ES",
2883 "fi-FI",
2884 "fr-BE",
2885 "fr-FR",
2886 "fr-LU",
2887 "hu-HU",
2888 "it-IT",
2889 "nl-BE",
2890 "nl-NL",
2891 "pl-PL",
2892 "pt-PT",
2893 "sk-SK",
2894 "sv-SE",
2895 ]
2896 ]
2897 """
2898 [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2899 """
2900 reference: NotRequired[str]
2901 """
2902 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.
2903 """
2904 risk_correlation_id: NotRequired[str]
2905 """
2906 The risk correlation ID for an on-session payment using a saved PayPal payment method.
2907 """
2908 setup_future_usage: NotRequired[
2909 "Literal['']|Literal['none', 'off_session']"
2910 ]
2911 """
2912 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2913
2914 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.
2915
2916 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.
2917
2918 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).
2919
2920 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`.
2921 """
2922
2923
2924 class PaymentIntentCreateParamsPaymentMethodOptionsPayto(TypedDict):
2925 mandate_options: NotRequired[
2926 "PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions"
2927 ]
2928 """
2929 Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
2930 """
2931 setup_future_usage: NotRequired[
2932 "Literal['']|Literal['none', 'off_session']"
2933 ]
2934 """
2935 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2936
2937 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.
2938
2939 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.
2940
2941 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).
2942
2943 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`.
2944 """
2945
2946
2947 class PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions(
2948 TypedDict,
2949 ):
2950 amount: NotRequired["Literal['']|int"]
2951 """
2952 Amount that will be collected. It is required when `amount_type` is `fixed`.
2953 """
2954 amount_type: NotRequired["Literal['']|Literal['fixed', 'maximum']"]
2955 """
2956 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`.
2957 """
2958 end_date: NotRequired["Literal['']|str"]
2959 """
2960 Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2961 """
2962 payment_schedule: NotRequired[
2963 "Literal['']|Literal['adhoc', 'annual', 'daily', 'fortnightly', 'monthly', 'quarterly', 'semi_annual', 'weekly']"
2964 ]
2965 """
2966 The periodicity at which payments will be collected. Defaults to `adhoc`.
2967 """
2968 payments_per_period: NotRequired["Literal['']|int"]
2969 """
2970 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.
2971 """
2972 purpose: NotRequired[
2973 "Literal['']|Literal['dependant_support', 'government', 'loan', 'mortgage', 'other', 'pension', 'personal', 'retail', 'salary', 'tax', 'utility']"
2974 ]
2975 """
2976 The purpose for which payments are made. Has a default value based on your merchant category code.
2977 """
2978
2979
2980 class PaymentIntentCreateParamsPaymentMethodOptionsPix(TypedDict):
2981 amount_includes_iof: NotRequired[Literal["always", "never"]]
2982 """
2983 Determines if the amount includes the IOF tax. Defaults to `never`.
2984 """
2985 expires_after_seconds: NotRequired[int]
2986 """
2987 The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2988 """
2989 expires_at: NotRequired[int]
2990 """
2991 The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
2992 """
2993 setup_future_usage: NotRequired[Literal["none"]]
2994 """
2995 Indicates that you intend to make future payments with this PaymentIntent's payment method.
2996
2997 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.
2998
2999 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.
3000
3001 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).
3002
3003 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`.
3004 """
3005
3006
3007 class PaymentIntentCreateParamsPaymentMethodOptionsPromptpay(TypedDict):
3008 setup_future_usage: NotRequired[Literal["none"]]
3009 """
3010 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3011
3012 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.
3013
3014 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.
3015
3016 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).
3017
3018 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`.
3019 """
3020
3021
3022 class PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay(TypedDict):
3023 capture_method: NotRequired["Literal['']|Literal['manual']"]
3024 """
3025 Controls when the funds are captured from the customer's account.
3026
3027 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3028
3029 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3030 """
3031 setup_future_usage: NotRequired[
3032 "Literal['']|Literal['none', 'off_session']"
3033 ]
3034 """
3035 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3036
3037 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.
3038
3039 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.
3040
3041 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).
3042 """
3043
3044
3045 class PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay(TypedDict):
3046 capture_method: NotRequired["Literal['']|Literal['manual']"]
3047 """
3048 Controls when the funds are captured from the customer's account.
3049
3050 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3051
3052 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3053 """
3054
3055
3056 class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict):
3057 capture_method: NotRequired["Literal['']|Literal['manual']"]
3058 """
3059 Controls when the funds are captured from the customer's account.
3060
3061 If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3062
3063 If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3064 """
3065
3066
3067 class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict):
3068 mandate_options: NotRequired[
3069 "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions"
3070 ]
3071 """
3072 Additional fields for Mandate creation
3073 """
3074 setup_future_usage: NotRequired[
3075 "Literal['']|Literal['none', 'off_session', 'on_session']"
3076 ]
3077 """
3078 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3079
3080 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.
3081
3082 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.
3083
3084 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).
3085
3086 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`.
3087 """
3088 target_date: NotRequired[str]
3089 """
3090 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.
3091 """
3092
3093
3094 class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions(
3095 TypedDict,
3096 ):
3097 reference_prefix: NotRequired["Literal['']|str"]
3098 """
3099 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'.
3100 """
3101
3102
3103 class PaymentIntentCreateParamsPaymentMethodOptionsSofort(TypedDict):
3104 preferred_language: NotRequired[
3105 "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
3106 ]
3107 """
3108 Language shown to the payer on redirect.
3109 """
3110 setup_future_usage: NotRequired[
3111 "Literal['']|Literal['none', 'off_session']"
3112 ]
3113 """
3114 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3115
3116 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.
3117
3118 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.
3119
3120 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).
3121
3122 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`.
3123 """
3124
3125
3126 class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict):
3127 reference: NotRequired["Literal['']|str"]
3128 """
3129 A reference for this payment to be displayed in the Swish app.
3130 """
3131 setup_future_usage: NotRequired[Literal["none"]]
3132 """
3133 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3134
3135 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.
3136
3137 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.
3138
3139 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).
3140
3141 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`.
3142 """
3143
3144
3145 class PaymentIntentCreateParamsPaymentMethodOptionsTwint(TypedDict):
3146 setup_future_usage: NotRequired[Literal["none"]]
3147 """
3148 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3149
3150 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.
3151
3152 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.
3153
3154 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).
3155
3156 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`.
3157 """
3158
3159
3160 class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
3161 financial_connections: NotRequired[
3162 "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
3163 ]
3164 """
3165 Additional fields for Financial Connections Session creation
3166 """
3167 mandate_options: NotRequired[
3168 "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions"
3169 ]
3170 """
3171 Additional fields for Mandate creation
3172 """
3173 networks: NotRequired[
3174 "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks"
3175 ]
3176 """
3177 Additional fields for network related functions
3178 """
3179 setup_future_usage: NotRequired[
3180 "Literal['']|Literal['none', 'off_session', 'on_session']"
3181 ]
3182 """
3183 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3184
3185 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.
3186
3187 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.
3188
3189 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).
3190
3191 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`.
3192 """
3193 target_date: NotRequired[str]
3194 """
3195 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.
3196 """
3197 transaction_purpose: NotRequired[
3198 "Literal['']|Literal['goods', 'other', 'services', 'unspecified']"
3199 ]
3200 """
3201 The purpose of the transaction.
3202 """
3203 verification_method: NotRequired[
3204 Literal["automatic", "instant", "microdeposits"]
3205 ]
3206 """
3207 Bank account verification method.
3208 """
3209 preferred_settlement_speed: NotRequired[
3210 "Literal['']|Literal['fastest', 'standard']"
3211 ]
3212 """
3213 Preferred transaction settlement speed
3214 """
3215
3216
3217 class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
3218 TypedDict,
3219 ):
3220 filters: NotRequired[
3221 "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
3222 ]
3223 """
3224 Provide filters for the linked accounts that the customer can select for the payment method.
3225 """
3226 permissions: NotRequired[
3227 List[
3228 Literal["balances", "ownership", "payment_method", "transactions"]
3229 ]
3230 ]
3231 """
3232 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`.
3233 """
3234 prefetch: NotRequired[
3235 List[Literal["balances", "ownership", "transactions"]]
3236 ]
3237 """
3238 List of data features that you would like to retrieve upon account creation.
3239 """
3240 return_url: NotRequired[str]
3241 """
3242 For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
3243 """
3244
3245
3246 class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
3247 TypedDict,
3248 ):
3249 account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
3250 """
3251 The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3252 """
3253
3254
3255 class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
3256 TypedDict,
3257 ):
3258 collection_method: NotRequired["Literal['']|Literal['paper']"]
3259 """
3260 The method used to collect offline mandate customer acceptance.
3261 """
3262
3263
3264 class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks(
3265 TypedDict,
3266 ):
3267 requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
3268 """
3269 Triggers validations to run across the selected networks
3270 """
3271
3272
3273 class PaymentIntentCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
3274 app_id: NotRequired[str]
3275 """
3276 The app ID registered with WeChat Pay. Only required when client is ios or android.
3277 """
3278 client: NotRequired[Literal["android", "ios", "web"]]
3279 """
3280 The client type that the end customer will pay from
3281 """
3282 setup_future_usage: NotRequired[Literal["none"]]
3283 """
3284 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3285
3286 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.
3287
3288 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.
3289
3290 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).
3291
3292 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`.
3293 """
3294
3295
3296 class PaymentIntentCreateParamsPaymentMethodOptionsZip(TypedDict):
3297 setup_future_usage: NotRequired[Literal["none"]]
3298 """
3299 Indicates that you intend to make future payments with this PaymentIntent's payment method.
3300
3301 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.
3302
3303 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.
3304
3305 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).
3306
3307 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`.
3308 """
3309
3310
3311 class PaymentIntentCreateParamsRadarOptions(TypedDict):
3312 session: NotRequired[str]
3313 """
3314 A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
3315 """
3316
3317
3318 class PaymentIntentCreateParamsShipping(TypedDict):
3319 address: "PaymentIntentCreateParamsShippingAddress"
3320 """
3321 Shipping address.
3322 """
3323 carrier: NotRequired[str]
3324 """
3325 The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
3326 """
3327 name: str
3328 """
3329 Recipient name.
3330 """
3331 phone: NotRequired[str]
3332 """
3333 Recipient phone (including extension).
3334 """
3335 tracking_number: NotRequired[str]
3336 """
3337 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.
3338 """
3339
3340
3341 class PaymentIntentCreateParamsShippingAddress(TypedDict):
3342 city: NotRequired[str]
3343 """
3344 City, district, suburb, town, or village.
3345 """
3346 country: NotRequired[str]
3347 """
3348 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3349 """
3350 line1: NotRequired[str]
3351 """
3352 Address line 1, such as the street, PO Box, or company name.
3353 """
3354 line2: NotRequired[str]
3355 """
3356 Address line 2, such as the apartment, suite, unit, or building.
3357 """
3358 postal_code: NotRequired[str]
3359 """
3360 ZIP or postal code.
3361 """
3362 state: NotRequired[str]
3363 """
3364 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3365 """
3366
3367
3368 class PaymentIntentCreateParamsTransferData(TypedDict):
3369 amount: NotRequired[int]
3370 """
3371 The amount that will be transferred automatically when a charge succeeds.
3372 The amount is capped at the total transaction amount and if no amount is set,
3373 the full amount is transferred.
3374
3375 If you intend to collect a fee and you need a more robust reporting experience, using
3376 [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
3377 might be a better fit for your integration.
3378 """
3379 destination: str
3380 """
3381 If specified, successful charges will be attributed to the destination
3382 account for tax reporting, and the funds from charges will be transferred
3383 to the destination account. The ID of the resulting transfer will be
3384 returned on the successful charge's `transfer` field.
3385 """