File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,24 @@ declare module '@stripe/stripe-js' {
22
22
* An array of objects representing the items that your customer would like to purchase.
23
23
* These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
24
24
*/
25
+ lineItems ?: Array < {
26
+ /**
27
+ * The ID of the price that the customer would like to purchase. SKU or plan IDs may also be used.
28
+ */
29
+ price ?: string ;
30
+
31
+ /**
32
+ * The quantity of units for the item.
33
+ */
34
+ quantity ?: number ;
35
+ } > ;
36
+
37
+ /**
38
+ * An array of objects representing the items that your customer would like to purchase.
39
+ * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
40
+ *
41
+ * @deprecated
42
+ */
25
43
items ?: Array < {
26
44
/**
27
45
* The ID of the SKU that the customer would like to purchase
@@ -39,6 +57,11 @@ declare module '@stripe/stripe-js' {
39
57
quantity ?: number ;
40
58
} > ;
41
59
60
+ /**
61
+ * The mode of the Checkout Session. Required if using lineItems.
62
+ */
63
+ mode ?: 'payment' | 'subscription' ;
64
+
42
65
/**
43
66
* A unique string to reference the Checkout session.
44
67
* This can be a customer ID, a cart ID, or similar.
You can’t perform that action at this time.
0 commit comments