@stripe/stripe-react-native 0.65.1 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/detekt/detekt-baseline.xml +0 -10
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +51 -57
- package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementEvent.kt +26 -0
- package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementView.kt +129 -16
- package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementViewManager.kt +17 -0
- package/android/src/main/java/com/reactnativestripesdk/EventEmitterCompat.kt +4 -0
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetManager.kt +8 -19
- package/android/src/main/java/com/reactnativestripesdk/StripeAbstractComposeView.kt +1 -0
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +95 -26
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +1 -0
- package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetManager.kt +2 -16
- package/android/src/main/java/com/reactnativestripesdk/utils/CheckoutMappers.kt +59 -33
- package/android/src/main/java/com/reactnativestripesdk/utils/DefaultActivityLifecycleCallbacks.kt +41 -0
- package/android/src/oldarch/java/com/reactnativestripesdk/NativeOnrampSdkModuleSpec.java +17 -3
- package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +5 -1
- package/android/src/onramp/java/com/reactnativestripesdk/OnrampMappers.kt +116 -0
- package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +109 -1
- package/android/src/test/java/com/reactnativestripesdk/DrawableLoadingTest.kt +6 -2
- package/android/src/test/java/com/reactnativestripesdk/mappers/OnrampMappersTest.kt +107 -0
- package/android/src/test/java/com/reactnativestripesdk/utils/CheckoutMappersTest.kt +39 -30
- package/android/src/test/java/com/reactnativestripesdk/utils/CheckoutTestFixtures.java +8 -0
- package/ios/CurrencySelectorElementManager.m +7 -0
- package/ios/CurrencySelectorElementView.swift +142 -7
- package/ios/EmbeddedPaymentElementView.swift +1 -1
- package/ios/Mappers+Checkout.swift +251 -107
- package/ios/Mappers.swift +90 -2
- package/ios/NewArch/StripeCurrencySelectorElementComponentView.mm +14 -0
- package/ios/OldArch/StripeSdkEventEmitterCompat.h +1 -0
- package/ios/OldArch/StripeSdkEventEmitterCompat.m +6 -0
- package/ios/PaymentOptionDisplayData+ReactNative.swift +1 -1
- package/ios/PaymentSheetAppearance.swift +1 -1
- package/ios/StripeOnrampSdk.mm +19 -0
- package/ios/StripeSdk.mm +17 -4
- package/ios/StripeSdkEmitter.swift +1 -0
- package/ios/StripeSdkImpl+Checkout.swift +75 -23
- package/ios/StripeSdkImpl+CustomerSheet.swift +1 -1
- package/ios/StripeSdkImpl+Embedded.swift +1 -1
- package/ios/StripeSdkImpl+PaymentSheet.swift +1 -1
- package/ios/StripeSdkImpl.swift +88 -8
- package/lib/commonjs/components/PaymentMethodMessagingElement.js +1 -1
- package/lib/commonjs/components/PaymentMethodMessagingElement.js.map +1 -1
- package/lib/commonjs/hooks/useCheckout.js +1 -1
- package/lib/commonjs/hooks/useCheckout.js.map +1 -1
- package/lib/commonjs/hooks/useOnramp.js +1 -1
- package/lib/commonjs/hooks/useOnramp.js.map +1 -1
- package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +1 -1
- package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/module/components/PaymentMethodMessagingElement.js +1 -1
- package/lib/module/components/PaymentMethodMessagingElement.js.map +1 -1
- package/lib/module/hooks/useCheckout.js +1 -1
- package/lib/module/hooks/useCheckout.js.map +1 -1
- package/lib/module/hooks/useOnramp.js +1 -1
- package/lib/module/hooks/useOnramp.js.map +1 -1
- package/lib/module/specs/NativeOnrampSdkModule.js.map +1 -1
- package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts +1 -1
- package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useCheckout.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useOnramp.d.ts +22 -0
- package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +3 -0
- package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +2 -1
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
- package/lib/typescript/src/types/Checkout.d.ts +266 -84
- package/lib/typescript/src/types/Checkout.d.ts.map +1 -1
- package/lib/typescript/src/types/Onramp.d.ts +94 -0
- package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/components/PaymentMethodMessagingElement.tsx +54 -52
- package/src/hooks/useCheckout.tsx +20 -4
- package/src/hooks/useOnramp.tsx +44 -0
- package/src/specs/NativeOnrampSdkModule.ts +5 -0
- package/src/specs/NativeStripeSdkModule.ts +8 -1
- package/src/types/Checkout.ts +289 -84
- package/src/types/Onramp.ts +109 -0
- package/stripe-react-native.podspec +1 -1
- package/ios/CurrencySelectorElementManager.swift +0 -12
|
@@ -62,16 +62,78 @@ export declare namespace Checkout {
|
|
|
62
62
|
/** The latest checkout session value from Stripe. */
|
|
63
63
|
session: Session;
|
|
64
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* A Stripe Checkout Session.
|
|
67
|
+
* @checkoutSessionsPreview
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
interface Session {
|
|
71
|
+
/** Unique identifier for this checkout session. */
|
|
72
|
+
id: string;
|
|
73
|
+
/** The business name as configured in your Stripe account. */
|
|
74
|
+
businessName?: string;
|
|
75
|
+
/** Three-letter ISO 4217 currency code in lowercase (e.g. `"usd"`). */
|
|
76
|
+
currency?: string;
|
|
77
|
+
/** Currency options available when adaptive pricing is active. */
|
|
78
|
+
currencyOptions: CurrencyOption[];
|
|
79
|
+
/** The aggregate amounts calculated per discount for all line items. */
|
|
80
|
+
discountAmounts: DiscountAmount[];
|
|
81
|
+
/** The customer's email address, if available. */
|
|
82
|
+
email?: string;
|
|
83
|
+
/** The line items the customer is purchasing. */
|
|
84
|
+
lineItems: LineItem[];
|
|
85
|
+
/** Indicates whether this session was created in live mode. */
|
|
86
|
+
livemode: boolean;
|
|
87
|
+
/** The factor used to convert between minor and major currency units. */
|
|
88
|
+
minorUnitsAmountDivisor?: number;
|
|
89
|
+
/** The selected shipping option, if any. */
|
|
90
|
+
shipping?: SelectedShipping;
|
|
91
|
+
/** The shipping address set via `updateShippingAddress`, if any. */
|
|
92
|
+
shippingAddress?: ContactAddress;
|
|
93
|
+
/** The shipping rate options available for this session. */
|
|
94
|
+
shippingOptions: ShippingOption[];
|
|
95
|
+
/** The current session status, if available. */
|
|
96
|
+
status?: Status;
|
|
97
|
+
/** Tax computation status and aggregated tax amounts. */
|
|
98
|
+
tax: Tax;
|
|
99
|
+
/** Tax and discount details for the computed total amount. */
|
|
100
|
+
total?: Total;
|
|
101
|
+
/** The billing address set via `updateBillingAddress`, if any. */
|
|
102
|
+
billingAddress?: ContactAddress;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The mode of a checkout session.
|
|
106
|
+
*
|
|
107
|
+
* - `unknown` - A mode not recognized by this version of the SDK.
|
|
108
|
+
* - `payment` - Accept one-time payments.
|
|
109
|
+
* - `setup` - Save payment details to charge later.
|
|
110
|
+
* - `subscription` - Set up fixed-price subscriptions.
|
|
111
|
+
* @checkoutSessionsPreview
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
type Mode = 'unknown' | 'payment' | 'setup' | 'subscription';
|
|
65
115
|
/**
|
|
66
116
|
* The status of a checkout session.
|
|
117
|
+
* @checkoutSessionsPreview
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
interface Status {
|
|
121
|
+
/** The lifecycle status of the session. */
|
|
122
|
+
type: StatusType;
|
|
123
|
+
/** The payment status. Only meaningful when type is `complete`. */
|
|
124
|
+
paymentStatus?: PaymentStatus;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The lifecycle status of a checkout session.
|
|
67
128
|
*
|
|
68
129
|
* - `unknown` - A status not recognized by this version of the SDK.
|
|
69
130
|
* - `open` - The checkout session is still in progress.
|
|
70
131
|
* - `complete` - The checkout session is complete.
|
|
71
132
|
* - `expired` - The checkout session has expired.
|
|
133
|
+
* @checkoutSessionsPreview
|
|
72
134
|
* @internal
|
|
73
135
|
*/
|
|
74
|
-
type
|
|
136
|
+
type StatusType = 'unknown' | 'open' | 'complete' | 'expired';
|
|
75
137
|
/**
|
|
76
138
|
* The payment status of a checkout session.
|
|
77
139
|
*
|
|
@@ -79,63 +141,97 @@ export declare namespace Checkout {
|
|
|
79
141
|
* - `paid` - The payment funds are available in your account.
|
|
80
142
|
* - `unpaid` - The payment funds are not yet available in your account.
|
|
81
143
|
* - `noPaymentRequired` - No payment is currently required for the session.
|
|
144
|
+
* @checkoutSessionsPreview
|
|
82
145
|
* @internal
|
|
83
146
|
*/
|
|
84
147
|
type PaymentStatus = 'unknown' | 'paid' | 'unpaid' | 'noPaymentRequired';
|
|
85
148
|
/**
|
|
86
|
-
* A
|
|
149
|
+
* A monetary amount with both a localized display string and a value in
|
|
150
|
+
* the smallest currency unit (e.g. cents).
|
|
151
|
+
* @checkoutSessionsPreview
|
|
87
152
|
* @internal
|
|
88
153
|
*/
|
|
89
|
-
interface
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
/** The payment status for this checkout session. */
|
|
95
|
-
paymentStatus: PaymentStatus;
|
|
96
|
-
/** Three-letter ISO 4217 currency code in lowercase (e.g. `"usd"`). */
|
|
97
|
-
currency?: string;
|
|
98
|
-
/** Indicates whether this session was created in live mode. */
|
|
99
|
-
livemode: boolean;
|
|
100
|
-
/** A summary of monetary totals for this session, if available. */
|
|
101
|
-
totals?: Totals;
|
|
102
|
-
/** The line items purchased by the customer. */
|
|
103
|
-
lineItems: LineItem[];
|
|
104
|
-
/** The shipping rate options available for this session. */
|
|
105
|
-
shippingOptions: ShippingOption[];
|
|
106
|
-
/** The discounts applied to this session. */
|
|
107
|
-
discounts: Discount[];
|
|
108
|
-
/** The Stripe customer ID attached to this session, if any. */
|
|
109
|
-
customerId?: string;
|
|
110
|
-
/** The customer's email address, if available. */
|
|
111
|
-
customerEmail?: string;
|
|
112
|
-
/** The billing address set via `updateBillingAddress`, if any. */
|
|
113
|
-
billingAddress?: AddressUpdate;
|
|
114
|
-
/** The shipping address set via `updateShippingAddress`, if any. */
|
|
115
|
-
shippingAddress?: AddressUpdate;
|
|
154
|
+
interface Amount {
|
|
155
|
+
/** Localized, formatted string including currency symbol (e.g. `"$10.00"`). */
|
|
156
|
+
amount: string;
|
|
157
|
+
/** Value in the smallest currency unit (e.g. cents for USD). */
|
|
158
|
+
minorUnitsAmount: number;
|
|
116
159
|
}
|
|
117
160
|
/**
|
|
118
|
-
*
|
|
161
|
+
* A monetary amount supporting sub-minor-unit precision.
|
|
119
162
|
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
163
|
+
* Use this for sub-cent pricing (e.g. usage-based billing) where rounding
|
|
164
|
+
* to the nearest minor unit would lose precision.
|
|
165
|
+
* @checkoutSessionsPreview
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
interface DecimalAmount {
|
|
169
|
+
/** Localized, formatted string including currency symbol. */
|
|
170
|
+
amount: string;
|
|
171
|
+
/** Value in the smallest currency unit, with decimal precision. */
|
|
172
|
+
minorUnitsAmount: number;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Tax and discount details for the computed total amount of a checkout session.
|
|
176
|
+
* @checkoutSessionsPreview
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
interface Total {
|
|
180
|
+
/** Total of all line items, excluding tax, discounts, and shipping. */
|
|
181
|
+
subtotal: Amount;
|
|
182
|
+
/** Sum of all exclusive tax amounts. */
|
|
183
|
+
taxExclusive: Amount;
|
|
184
|
+
/** Sum of all inclusive tax amounts. */
|
|
185
|
+
taxInclusive: Amount;
|
|
186
|
+
/** Sum of all shipping amounts. */
|
|
187
|
+
shippingRate: Amount;
|
|
188
|
+
/** Sum of all discounts. A positive number reduces the amount to be paid. */
|
|
189
|
+
discount: Amount;
|
|
190
|
+
/** Grand total, including discounts and tax. */
|
|
191
|
+
total: Amount;
|
|
192
|
+
/** Amount of customer credit balance applied to the payment. */
|
|
193
|
+
appliedBalance: Amount;
|
|
194
|
+
/** When `true`, no payment is collected and the amount is added to the next invoice. */
|
|
195
|
+
balanceAppliedToNextInvoice: boolean;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Tax computation status and aggregated tax amounts for a checkout session.
|
|
199
|
+
* @checkoutSessionsPreview
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
interface Tax {
|
|
203
|
+
/** The current tax computation status. */
|
|
204
|
+
status: TaxStatus;
|
|
205
|
+
/** Per-tax-rate amounts, or undefined if tax has not been computed. */
|
|
206
|
+
taxAmounts?: TaxAmount[];
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* The tax computation status of a checkout session.
|
|
210
|
+
*
|
|
211
|
+
* - `unknown` - A status not recognized by this version of the SDK.
|
|
212
|
+
* - `ready` - Tax is computed and the session is ready for confirmation.
|
|
213
|
+
* - `requiresShippingAddress` - A shipping address is needed to calculate tax.
|
|
214
|
+
* - `requiresBillingAddress` - A billing address is needed to calculate tax.
|
|
215
|
+
* @checkoutSessionsPreview
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
type TaxStatus = 'unknown' | 'ready' | 'requiresShippingAddress' | 'requiresBillingAddress';
|
|
219
|
+
/**
|
|
220
|
+
* A tax amount calculated for a line item, shipping option, or aggregate session total.
|
|
221
|
+
* @checkoutSessionsPreview
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
interface TaxAmount {
|
|
225
|
+
/** The tax amount. */
|
|
226
|
+
amount: Amount;
|
|
227
|
+
/** Whether this tax is inclusive (already in subtotal) or exclusive (added on top). */
|
|
228
|
+
inclusive: boolean;
|
|
229
|
+
/** A user-facing description (e.g. `"Sales Tax"` or `"VAT 20%"`). */
|
|
230
|
+
displayName: string;
|
|
136
231
|
}
|
|
137
232
|
/**
|
|
138
233
|
* A line item in a checkout session.
|
|
234
|
+
* @checkoutSessionsPreview
|
|
139
235
|
* @internal
|
|
140
236
|
*/
|
|
141
237
|
interface LineItem {
|
|
@@ -143,73 +239,155 @@ export declare namespace Checkout {
|
|
|
143
239
|
id: string;
|
|
144
240
|
/** The display name shown for this line item. */
|
|
145
241
|
name: string;
|
|
146
|
-
/**
|
|
242
|
+
/** An optional, merchant-supplied description. */
|
|
243
|
+
description?: string;
|
|
244
|
+
/** Image URLs configured on the underlying product. */
|
|
245
|
+
images: string[];
|
|
246
|
+
/** The quantity of items being purchased. */
|
|
147
247
|
quantity: number;
|
|
148
|
-
/** The
|
|
149
|
-
unitAmount
|
|
150
|
-
/**
|
|
151
|
-
|
|
248
|
+
/** The cost of a single unit. */
|
|
249
|
+
unitAmount?: Amount;
|
|
250
|
+
/** The unit amount with sub-cent precision. */
|
|
251
|
+
unitAmountDecimal?: DecimalAmount;
|
|
252
|
+
/** Total before any discounts or exclusive taxes. */
|
|
253
|
+
subtotal?: Amount;
|
|
254
|
+
/** Total discount amount for this line item. */
|
|
255
|
+
discount?: Amount;
|
|
256
|
+
/** Total exclusive tax for this line item. */
|
|
257
|
+
taxExclusive?: Amount;
|
|
258
|
+
/** Total inclusive tax for this line item. */
|
|
259
|
+
taxInclusive?: Amount;
|
|
260
|
+
/** Final total for this line item, including discounts and tax. */
|
|
261
|
+
total?: Amount;
|
|
262
|
+
/** Per-discount breakdown for this line item. */
|
|
263
|
+
discountAmounts: DiscountAmount[];
|
|
264
|
+
/** Per-tax-rate breakdown for this line item. */
|
|
265
|
+
taxAmounts: TaxAmount[];
|
|
266
|
+
/** Configuration for adjustable quantity, if enabled. */
|
|
267
|
+
adjustableQuantity?: AdjustableQuantity;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Configuration for a customer-adjustable line item quantity.
|
|
271
|
+
* @checkoutSessionsPreview
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
interface AdjustableQuantity {
|
|
275
|
+
/** The minimum quantity the customer can purchase. */
|
|
276
|
+
minimum: number;
|
|
277
|
+
/** The maximum quantity the customer can purchase. */
|
|
278
|
+
maximum: number;
|
|
152
279
|
}
|
|
153
280
|
/**
|
|
154
281
|
* A shipping option available in a checkout session.
|
|
282
|
+
* @checkoutSessionsPreview
|
|
155
283
|
* @internal
|
|
156
284
|
*/
|
|
157
285
|
interface ShippingOption {
|
|
158
286
|
/** The shipping rate identifier. */
|
|
159
287
|
id: string;
|
|
160
288
|
/** The display name shown to the customer. */
|
|
161
|
-
displayName
|
|
162
|
-
/** The shipping
|
|
163
|
-
amount:
|
|
289
|
+
displayName?: string;
|
|
290
|
+
/** The shipping cost. */
|
|
291
|
+
amount: Amount;
|
|
164
292
|
/** Three-letter ISO 4217 currency code in lowercase. */
|
|
165
293
|
currency: string;
|
|
166
|
-
/** The estimated delivery window
|
|
167
|
-
deliveryEstimate?:
|
|
294
|
+
/** The estimated delivery window, if available. */
|
|
295
|
+
deliveryEstimate?: DeliveryEstimate;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The estimated delivery range for a shipping option.
|
|
299
|
+
* @checkoutSessionsPreview
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
interface DeliveryEstimate {
|
|
303
|
+
/** The lower bound of the delivery estimate. */
|
|
304
|
+
minimum?: DeliveryEstimateBound;
|
|
305
|
+
/** The upper bound of the delivery estimate. */
|
|
306
|
+
maximum?: DeliveryEstimateBound;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* A bound (minimum or maximum) of a delivery estimate.
|
|
310
|
+
* @checkoutSessionsPreview
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
interface DeliveryEstimateBound {
|
|
314
|
+
/** The unit of time. */
|
|
315
|
+
unit: DeliveryEstimateUnit;
|
|
316
|
+
/** The number of units. */
|
|
317
|
+
value: number;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* The unit of time for a delivery estimate.
|
|
321
|
+
* @checkoutSessionsPreview
|
|
322
|
+
* @internal
|
|
323
|
+
*/
|
|
324
|
+
type DeliveryEstimateUnit = 'unknown' | 'hour' | 'day' | 'businessDay' | 'week' | 'month';
|
|
325
|
+
/**
|
|
326
|
+
* The shipping option selected for a checkout session, plus any computed
|
|
327
|
+
* shipping tax.
|
|
328
|
+
* @checkoutSessionsPreview
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
interface SelectedShipping {
|
|
332
|
+
/** The selected shipping option. */
|
|
333
|
+
shippingOption: ShippingOption;
|
|
334
|
+
/** Tax amounts calculated for the shipping cost. */
|
|
335
|
+
taxAmounts: TaxAmount[];
|
|
168
336
|
}
|
|
169
337
|
/**
|
|
170
|
-
* A discount applied to a checkout session.
|
|
338
|
+
* A discount applied to a checkout session or line item.
|
|
339
|
+
* @checkoutSessionsPreview
|
|
171
340
|
* @internal
|
|
172
341
|
*/
|
|
173
|
-
interface
|
|
174
|
-
/** The
|
|
175
|
-
|
|
342
|
+
interface DiscountAmount {
|
|
343
|
+
/** The discount amount. A positive number reduces the amount to be paid. */
|
|
344
|
+
amount: Amount;
|
|
345
|
+
/** A user-facing description of the discount. */
|
|
346
|
+
displayName: string;
|
|
176
347
|
/** The promotion code used to apply this discount, if any. */
|
|
177
348
|
promotionCode?: string;
|
|
178
|
-
/** The discount amount in the smallest currency unit. */
|
|
179
|
-
amount: number;
|
|
180
349
|
}
|
|
181
350
|
/**
|
|
182
|
-
* A
|
|
351
|
+
* A currency option available on a checkout session when adaptive pricing
|
|
352
|
+
* is active.
|
|
353
|
+
* @checkoutSessionsPreview
|
|
183
354
|
* @internal
|
|
184
355
|
*/
|
|
185
|
-
interface
|
|
186
|
-
/** The
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
|
|
192
|
-
/** The fixed amount off, in the smallest currency unit, if applicable. */
|
|
193
|
-
amountOff?: number;
|
|
356
|
+
interface CurrencyOption {
|
|
357
|
+
/** The total amount in this currency. */
|
|
358
|
+
amount: Amount;
|
|
359
|
+
/** Three-letter ISO 4217 currency code in lowercase. */
|
|
360
|
+
currency: string;
|
|
361
|
+
/** Conversion details, present only for the customer's local currency. */
|
|
362
|
+
currencyConversion?: CurrencyConversion;
|
|
194
363
|
}
|
|
195
364
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* Address updates are merged into PaymentSheet configuration and may also be
|
|
199
|
-
* sent to Stripe when tax calculation depends on the billing or shipping
|
|
200
|
-
* address.
|
|
365
|
+
* Currency conversion details for an adaptive-pricing currency option.
|
|
366
|
+
* @checkoutSessionsPreview
|
|
201
367
|
* @internal
|
|
202
368
|
*/
|
|
203
|
-
interface
|
|
369
|
+
interface CurrencyConversion {
|
|
370
|
+
/** The exchange rate used to convert source to customer currency. */
|
|
371
|
+
fxRate: string;
|
|
372
|
+
/** The merchant's original currency (three-letter ISO 4217 code). */
|
|
373
|
+
sourceCurrency: string;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* A contact address containing a name, phone, and postal address.
|
|
377
|
+
* @checkoutSessionsPreview
|
|
378
|
+
* @internal
|
|
379
|
+
*/
|
|
380
|
+
interface ContactAddress {
|
|
204
381
|
/** The customer's or recipient's name, if provided. */
|
|
205
382
|
name?: string;
|
|
206
383
|
/** The customer's or recipient's phone number, if provided. */
|
|
207
384
|
phone?: string;
|
|
208
|
-
/** The postal address
|
|
385
|
+
/** The postal address. */
|
|
209
386
|
address: Address;
|
|
210
387
|
}
|
|
211
388
|
/**
|
|
212
389
|
* A postal address used for billing, shipping, or tax updates.
|
|
390
|
+
* @checkoutSessionsPreview
|
|
213
391
|
* @internal
|
|
214
392
|
*/
|
|
215
393
|
interface Address {
|
|
@@ -324,13 +502,17 @@ export interface Checkout {
|
|
|
324
502
|
*/
|
|
325
503
|
updateTaxId(type: string, value: string): Promise<void>;
|
|
326
504
|
/**
|
|
327
|
-
*
|
|
505
|
+
* Runs an async operation that updates the Checkout Session on your server,
|
|
506
|
+
* then automatically refreshes the local session state.
|
|
507
|
+
*
|
|
508
|
+
* Call your server inside `serverUpdate` to modify the Checkout Session.
|
|
509
|
+
* A 20-second timeout is enforced by the native SDK.
|
|
328
510
|
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
511
|
+
* @param serverUpdate - An async function that calls your server to update the session.
|
|
512
|
+
* - Throws: `CheckoutError` if the operation times out or fails.
|
|
513
|
+
* @checkoutSessionsPreview
|
|
332
514
|
* @internal
|
|
333
515
|
*/
|
|
334
|
-
|
|
516
|
+
runServerUpdate(serverUpdate: () => Promise<void>): Promise<void>;
|
|
335
517
|
}
|
|
336
518
|
//# sourceMappingURL=Checkout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkout.d.ts","sourceRoot":"","sources":["../../../../src/types/Checkout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,yBAAiB,QAAQ,CAAC;IACxB;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;;;;;;WAOG;QACH,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC;IAED;;;OAGG;IACH,UAAiB,eAAe;QAC9B;;;;;;;WAOG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB;IAED;;;;;;;;;;;;OAYG;IACH,KAAY,KAAK,GACb;QACE;;;;;WAKG;QACH,MAAM,EAAE,SAAS,CAAC;QAClB,8CAA8C;QAC9C,OAAO,EAAE,OAAO,CAAC;KAClB,GACD;QACE,6DAA6D;QAC7D,MAAM,EAAE,QAAQ,CAAC;QACjB,qDAAqD;QACrD,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IAEN
|
|
1
|
+
{"version":3,"file":"Checkout.d.ts","sourceRoot":"","sources":["../../../../src/types/Checkout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,yBAAiB,QAAQ,CAAC;IACxB;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;;;;;;WAOG;QACH,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC;IAED;;;OAGG;IACH,UAAiB,eAAe;QAC9B;;;;;;;WAOG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB;IAED;;;;;;;;;;;;OAYG;IACH,KAAY,KAAK,GACb;QACE;;;;;WAKG;QACH,MAAM,EAAE,SAAS,CAAC;QAClB,8CAA8C;QAC9C,OAAO,EAAE,OAAO,CAAC;KAClB,GACD;QACE,6DAA6D;QAC7D,MAAM,EAAE,QAAQ,CAAC;QACjB,qDAAqD;QACrD,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IAEN;;;;OAIG;IACH,UAAiB,OAAO;QACtB,mDAAmD;QACnD,EAAE,EAAE,MAAM,CAAC;QACX,8DAA8D;QAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,uEAAuE;QACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,kEAAkE;QAClE,eAAe,EAAE,cAAc,EAAE,CAAC;QAClC,wEAAwE;QACxE,eAAe,EAAE,cAAc,EAAE,CAAC;QAClC,kDAAkD;QAClD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,iDAAiD;QACjD,SAAS,EAAE,QAA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BAAyB,GACzB,UAAU,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB,yFAAyF;IACzF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;;;OAWG;IACH,qBAAqB,CACnB,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;OAIG;IACH,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5E;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE"}
|
|
@@ -183,6 +183,100 @@ export type KycInfo = {
|
|
|
183
183
|
dateOfBirth?: DateOfBirth;
|
|
184
184
|
/** Customer’s address, if collected. */
|
|
185
185
|
address?: Address;
|
|
186
|
+
/** Two-letter ISO 3166-1 alpha-2 code for the country where the customer was born. */
|
|
187
|
+
birthCountry?: string;
|
|
188
|
+
/** City where the customer was born. */
|
|
189
|
+
birthCity?: string;
|
|
190
|
+
/** Two-letter ISO 3166-1 alpha-2 codes for the customer's nationalities. */
|
|
191
|
+
nationalities?: string[];
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The type of compliance identifier required or submitted for regulatory compliance.
|
|
195
|
+
*/
|
|
196
|
+
export type ComplianceIdentifierType = string;
|
|
197
|
+
/**
|
|
198
|
+
* The regulation requiring a compliance identifier.
|
|
199
|
+
*/
|
|
200
|
+
export type ComplianceRegulation = 'eu_carf' | 'eu_mica';
|
|
201
|
+
/**
|
|
202
|
+
* A compliance identifier collected for MiCA or CRS/CARF compliance.
|
|
203
|
+
*/
|
|
204
|
+
export type ComplianceIdentifier = {
|
|
205
|
+
/** The type of identifier provided. */
|
|
206
|
+
type: ComplianceIdentifierType;
|
|
207
|
+
/** The identifier value. */
|
|
208
|
+
value: string;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* A compliance identifier the customer still needs to provide.
|
|
212
|
+
*/
|
|
213
|
+
export type ComplianceIdentifierRequirement = {
|
|
214
|
+
/** The type of identifier required. */
|
|
215
|
+
type: ComplianceIdentifierType;
|
|
216
|
+
/** The regulation requiring this identifier. */
|
|
217
|
+
regulation: ComplianceRegulation;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* A group describing alternative identifier types that may satisfy a requirement.
|
|
221
|
+
*/
|
|
222
|
+
export type ComplianceIdentifierAlternativeGroup = {
|
|
223
|
+
/** The original identifier types required. */
|
|
224
|
+
originalMissingIdentifiers: ComplianceIdentifierType[];
|
|
225
|
+
/** Alternative identifier types that may satisfy the original requirement. */
|
|
226
|
+
alternativeMissingIdentifiers: ComplianceIdentifierType[];
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* The compliance identifiers a customer still needs to provide.
|
|
230
|
+
*/
|
|
231
|
+
export type ComplianceIdentifierRequirements = {
|
|
232
|
+
/** Required identifier types and the regulations requiring them. */
|
|
233
|
+
identifiers: ComplianceIdentifierRequirement[];
|
|
234
|
+
/** Alternative identifier groups that may satisfy one or more requirements. */
|
|
235
|
+
alternatives: ComplianceIdentifierAlternativeGroup[];
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Result of retrieving missing compliance identifiers.
|
|
239
|
+
*/
|
|
240
|
+
export type RetrieveMissingIdentifiersResult = (ComplianceIdentifierRequirements & {
|
|
241
|
+
error?: undefined;
|
|
242
|
+
}) | {
|
|
243
|
+
identifiers?: undefined;
|
|
244
|
+
alternatives?: undefined;
|
|
245
|
+
/** Present if retrieval failed with an error. */
|
|
246
|
+
error: StripeError<OnrampError>;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Result of submitting compliance identifiers for MiCA and CRS/CARF compliance.
|
|
250
|
+
*/
|
|
251
|
+
export type SubmitIdentifiersResult = {
|
|
252
|
+
/** Whether all required identifiers were accepted. */
|
|
253
|
+
valid: boolean;
|
|
254
|
+
/** Any identifiers that still need to be collected. */
|
|
255
|
+
identifiers: ComplianceIdentifierRequirement[];
|
|
256
|
+
/** Alternative identifier groups that may satisfy one or more requirements. */
|
|
257
|
+
alternatives: ComplianceIdentifierAlternativeGroup[];
|
|
258
|
+
/** Submitted identifier types whose values were invalid. */
|
|
259
|
+
invalidIdentifiers: ComplianceIdentifierType[];
|
|
260
|
+
error?: undefined;
|
|
261
|
+
} | {
|
|
262
|
+
valid?: undefined;
|
|
263
|
+
identifiers?: undefined;
|
|
264
|
+
alternatives?: undefined;
|
|
265
|
+
invalidIdentifiers?: undefined;
|
|
266
|
+
/** Present if submission failed with an error. */
|
|
267
|
+
error: StripeError<OnrampError>;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Result of presenting the CRS/CARF declaration.
|
|
271
|
+
*/
|
|
272
|
+
export type CRSCARFDeclarationResult = {
|
|
273
|
+
/** The customer accepted the declaration. */
|
|
274
|
+
status: 'Confirmed';
|
|
275
|
+
error?: undefined;
|
|
276
|
+
} | {
|
|
277
|
+
status?: undefined;
|
|
278
|
+
/** Present if the declaration failed or was cancelled. */
|
|
279
|
+
error: StripeError<OnrampError>;
|
|
186
280
|
};
|
|
187
281
|
/**
|
|
188
282
|
* Result of KYC verification.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Onramp.d.ts","sourceRoot":"","sources":["../../../../src/types/Onramp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,sDAAsD;IACtD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sEAAsE;IACtE,UAAU,EAAE,cAAc,CAAC;IAC3B,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8FAA8F;IAC9F,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kEAAkE;IAClE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wEAAwE;IACxE,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,gDAAgD;IAChD,oBAAoB,CAAC,EAAE,6BAA6B,CAAC;CACtD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC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M,kBAAkB,GAC1B;IACE,IAAI,EAAE;QACJ,uFAAuF;QACvF,KAAK,EAAE,MAAM,CAAC;QAEd,gEAAgE;QAChE,OAAO,EAAE,MAAM,CAAC;QAEhB,+CAA+C;QAC/C,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,GACD;IACE,eAAe,EAAE;QACf,+DAA+D;QAC/D,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QAEtC,uDAAuD;QACvD,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC;IACE,oDAAoD;IACpD,WAAW,EAAE,wBAAwB,CAAC;IACtC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4DAA4D;IAC5D,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"author": "Stripe",
|
|
5
5
|
"description": "Stripe SDK for React Native",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"typescript": "tsc --noEmit",
|
|
14
14
|
"lint": "eslint \"**/*.{js,ts,tsx}\" --ignore-pattern \"docs/api-reference/*\" --ignore-path .gitignore",
|
|
15
15
|
"prepare": "bob build && rm -rf lib/*/package.json && husky",
|
|
16
|
-
"
|
|
16
|
+
"propose": "./scripts/propose.rb",
|
|
17
|
+
"release": "./scripts/publish.rb",
|
|
17
18
|
"example": "yarn --cwd example",
|
|
18
19
|
"pods": "cd example && npx pod-install --quiet",
|
|
19
20
|
"update-pods": "cd example/ios && pod update Stripe StripeApplePay StripeFinancialConnections StripePayments StripePaymentSheet StripePaymentsUI StripeCore StripeUICore StripeCryptoOnramp",
|