@stripe/stripe-react-native 0.43.0 → 0.44.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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.44.0 - 2025-04-15
6
+
7
+ **Features**
8
+
9
+ - Added `LinkParams` to allow control over Link in PaymentSheet.
10
+
11
+ **Fixes**
12
+
13
+ - Updated `stripe-ios` to 24.11.\*
14
+ - Updated `stripe-android` to 21.10.\*
15
+ - Fixed an issue where launching a Financial Connections flow would fail on Android.
16
+
5
17
  ## 0.43.0 - 2025-03-11
6
18
 
7
19
  **Features**
@@ -22,6 +22,7 @@ if (project == rootProject) {
22
22
 
23
23
  apply plugin: 'com.android.library'
24
24
  apply plugin: 'kotlin-android'
25
+ apply plugin: 'kotlin-parcelize'
25
26
  //apply plugin: 'kotlin-android-extensions'
26
27
 
27
28
  def getExtOrDefault(name) {
@@ -3,4 +3,4 @@ StripeSdk_compileSdkVersion=30
3
3
  StripeSdk_targetSdkVersion=28
4
4
  StripeSdk_minSdkVersion=21
5
5
  # Keep StripeSdk_stripeVersion in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/android/gradle.properties
6
- StripeSdk_stripeVersion=21.6.+
6
+ StripeSdk_stripeVersion=21.10.+
@@ -84,6 +84,7 @@ class PaymentSheetFragment(
84
84
  }
85
85
  val primaryButtonLabel = arguments?.getString("primaryButtonLabel")
86
86
  val googlePayConfig = buildGooglePayConfig(arguments?.getBundle("googlePay"))
87
+ val linkConfig = buildLinkConfig(arguments?.getBundle("link"))
87
88
  val allowsDelayedPaymentMethods = arguments?.getBoolean("allowsDelayedPaymentMethods")
88
89
  val billingDetailsBundle = arguments?.getBundle("defaultBillingDetails")
89
90
  val billingConfigParams = arguments?.getBundle("billingDetailsCollectionConfiguration")
@@ -488,6 +489,25 @@ class PaymentSheetFragment(
488
489
  )
489
490
  }
490
491
 
492
+ internal fun buildLinkConfig(params: Bundle?): PaymentSheet.LinkConfiguration {
493
+ if (params == null) {
494
+ return PaymentSheet.LinkConfiguration()
495
+ }
496
+
497
+ val display = mapStringToLinkDisplay(params.getString("display"))
498
+
499
+ return PaymentSheet.LinkConfiguration(
500
+ display = display,
501
+ )
502
+ }
503
+
504
+ private fun mapStringToLinkDisplay(value: String?): PaymentSheet.LinkConfiguration.Display =
505
+ when (value) {
506
+ "automatic" -> PaymentSheet.LinkConfiguration.Display.Automatic
507
+ "never" -> PaymentSheet.LinkConfiguration.Display.Never
508
+ else -> PaymentSheet.LinkConfiguration.Display.Automatic
509
+ }
510
+
491
511
  @Throws(PaymentSheetException::class)
492
512
  private fun buildIntentConfiguration(intentConfigurationParams: Bundle?): PaymentSheet.IntentConfiguration? {
493
513
  if (intentConfigurationParams == null) {
@@ -1033,6 +1033,7 @@ class StripeSdkModule(
1033
1033
  @ReactMethod
1034
1034
  fun collectBankAccountToken(
1035
1035
  clientSecret: String,
1036
+ params: ReadableMap,
1036
1037
  promise: Promise,
1037
1038
  ) {
1038
1039
  if (!::stripe.isInitialized) {
@@ -1054,6 +1055,7 @@ class StripeSdkModule(
1054
1055
  @ReactMethod
1055
1056
  fun collectFinancialConnectionsAccounts(
1056
1057
  clientSecret: String,
1058
+ params: ReadableMap,
1057
1059
  promise: Promise,
1058
1060
  ) {
1059
1061
  if (!::stripe.isInitialized) {
@@ -6,7 +6,7 @@
6
6
  //
7
7
 
8
8
  import Foundation
9
- @_spi(PrivateBetaCustomerSheet) @_spi(STP) import StripePaymentSheet
9
+ @_spi(PrivateBetaCustomerSheet) @_spi(STP) @_spi(UpdatePaymentMethodBeta) import StripePaymentSheet
10
10
 
11
11
  class CustomerSheetUtils {
12
12
  internal class func buildCustomerSheetConfiguration(
@@ -21,6 +21,7 @@ class CustomerSheetUtils {
21
21
  defaultBillingDetails: NSDictionary?,
22
22
  preferredNetworks: Array<Int>?,
23
23
  allowsRemovalOfLastSavedPaymentMethod: Bool?,
24
+ updatePaymentMethodEnabled: Bool?,
24
25
  cardBrandAcceptance: PaymentSheet.CardBrandAcceptance
25
26
  ) -> CustomerSheet.Configuration {
26
27
  var config = CustomerSheet.Configuration()
@@ -59,10 +60,13 @@ class CustomerSheetUtils {
59
60
  if let allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod {
60
61
  config.allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod
61
62
  }
63
+ if let updatePaymentMethodEnabled = updatePaymentMethodEnabled {
64
+ config.updatePaymentMethodEnabled = updatePaymentMethodEnabled
65
+ }
62
66
  config.cardBrandAcceptance = cardBrandAcceptance
63
67
  return config
64
68
  }
65
-
69
+
66
70
  internal class func buildStripeCustomerAdapter(
67
71
  customerId: String,
68
72
  ephemeralKeySecret: String,
@@ -79,7 +83,7 @@ class CustomerSheetUtils {
79
83
  stripeSdk: stripeSdk
80
84
  )
81
85
  }
82
-
86
+
83
87
  if let setupIntentClientSecret = setupIntentClientSecret {
84
88
  return StripeCustomerAdapter(
85
89
  customerEphemeralKeyProvider: {
@@ -97,7 +101,7 @@ class CustomerSheetUtils {
97
101
  }
98
102
  )
99
103
  }
100
-
104
+
101
105
  internal class func buildCustomerAdapterOverride(
102
106
  customerAdapter: NSDictionary,
103
107
  customerId: String,
@@ -153,7 +157,7 @@ class CustomerSheetUtils {
153
157
  }
154
158
  }
155
159
 
156
-
160
+
157
161
  internal class func buildPaymentOptionResult(label: String, imageData: String?, paymentMethod: STPPaymentMethod?) -> NSMutableDictionary {
158
162
  let result: NSMutableDictionary = [:]
159
163
  let paymentOption: NSMutableDictionary = [:]
@@ -167,7 +171,7 @@ class CustomerSheetUtils {
167
171
  }
168
172
  return result
169
173
  }
170
-
174
+
171
175
  internal class func interpretResult(result: CustomerSheet.CustomerSheetResult) -> NSDictionary {
172
176
  var payload: NSMutableDictionary = [:]
173
177
  switch result {
@@ -25,6 +25,7 @@ extension StripeSdk {
25
25
  defaultBillingDetails: params["defaultBillingDetails"] as? NSDictionary,
26
26
  preferredNetworks: params["preferredNetworks"] as? Array<Int>,
27
27
  allowsRemovalOfLastSavedPaymentMethod: params["allowsRemovalOfLastSavedPaymentMethod"] as? Bool,
28
+ updatePaymentMethodEnabled: params["updatePaymentMethodEnabled"] as? Bool,
28
29
  cardBrandAcceptance: computeCardBrandAcceptance(params: params)
29
30
  )
30
31
  } catch {
@@ -6,14 +6,14 @@
6
6
  //
7
7
 
8
8
  import Foundation
9
- @_spi(ExperimentalAllowsRemovalOfLastSavedPaymentMethodAPI) @_spi(CustomerSessionBetaAccess) @_spi(STP) import StripePaymentSheet
9
+ @_spi(ExperimentalAllowsRemovalOfLastSavedPaymentMethodAPI) @_spi(CustomerSessionBetaAccess) @_spi(UpdatePaymentMethodBeta) @_spi(STP) import StripePaymentSheet
10
10
 
11
11
  extension StripeSdk {
12
12
  internal func buildPaymentSheetConfiguration(
13
13
  params: NSDictionary
14
14
  ) -> (error: NSDictionary?, configuration: PaymentSheet.Configuration?) {
15
15
  var configuration = PaymentSheet.Configuration()
16
-
16
+
17
17
  configuration.primaryButtonLabel = params["primaryButtonLabel"] as? String
18
18
 
19
19
  if let appearanceParams = params["appearance"] as? NSDictionary {
@@ -37,7 +37,16 @@ extension StripeSdk {
37
37
  return(error: Errors.createError(ErrorType.Failed, error.localizedDescription), configuration: nil)
38
38
  }
39
39
  }
40
-
40
+
41
+ if let linkParams = params["link"] as? NSDictionary {
42
+ do {
43
+ let display = StripeSdk.mapToLinkDisplay(value: linkParams["display"] as? String)
44
+ configuration.link = PaymentSheet.LinkConfiguration(display: display)
45
+ } catch {
46
+ return(error: Errors.createError(ErrorType.Failed, error.localizedDescription), configuration: nil)
47
+ }
48
+ }
49
+
41
50
  if let merchantDisplayName = params["merchantDisplayName"] as? String {
42
51
  configuration.merchantDisplayName = merchantDisplayName
43
52
  }
@@ -49,11 +58,11 @@ extension StripeSdk {
49
58
  if let allowsDelayedPaymentMethods = params["allowsDelayedPaymentMethods"] as? Bool {
50
59
  configuration.allowsDelayedPaymentMethods = allowsDelayedPaymentMethods
51
60
  }
52
-
61
+
53
62
  if let removeSavedPaymentMethodMessage = params["removeSavedPaymentMethodMessage"] as? String {
54
63
  configuration.removeSavedPaymentMethodMessage = removeSavedPaymentMethodMessage
55
64
  }
56
-
65
+
57
66
  if let billingConfigParams = params["billingDetailsCollectionConfiguration"] as? [String: Any?] {
58
67
  configuration.billingDetailsCollectionConfiguration.name = StripeSdk.mapToCollectionMode(str: billingConfigParams["name"] as? String)
59
68
  configuration.billingDetailsCollectionConfiguration.phone = StripeSdk.mapToCollectionMode(str: billingConfigParams["phone"] as? String)
@@ -77,19 +86,19 @@ extension StripeSdk {
77
86
  }
78
87
 
79
88
  }
80
-
89
+
81
90
  if let defaultShippingDetails = params["defaultShippingDetails"] as? NSDictionary {
82
91
  configuration.shippingDetails = {
83
92
  return AddressSheetUtils.buildAddressDetails(params: defaultShippingDetails)
84
93
  }
85
94
  }
86
-
95
+
87
96
  if #available(iOS 13.0, *) {
88
97
  if let style = params["style"] as? String {
89
98
  configuration.style = Mappers.mapToUserInterfaceStyle(style)
90
99
  }
91
100
  }
92
-
101
+
93
102
  if let customerId = params["customerId"] as? String {
94
103
  var customerEphemeralKeySecret = params["customerEphemeralKeySecret"] as? String
95
104
  var customerClientSecret = params["customerSessionClientSecret"] as? String
@@ -104,19 +113,22 @@ extension StripeSdk {
104
113
  configuration.customer = .init(id: customerId, customerSessionClientSecret: customerClientSecret)
105
114
  }
106
115
  }
107
-
116
+
108
117
  if let preferredNetworksAsInts = params["preferredNetworks"] as? Array<Int> {
109
118
  configuration.preferredNetworks = preferredNetworksAsInts.map(Mappers.intToCardBrand).compactMap { $0 }
110
119
  }
111
-
120
+
112
121
  if let allowsRemovalOfLastSavedPaymentMethod = params["allowsRemovalOfLastSavedPaymentMethod"] as? Bool {
113
122
  configuration.allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod
114
123
  }
115
-
124
+
116
125
  if let paymentMethodOrder = params["paymentMethodOrder"] as? Array<String> {
117
126
  configuration.paymentMethodOrder = paymentMethodOrder
118
127
  }
119
-
128
+
129
+ if let updatePaymentMethodEnabled = params["updatePaymentMethodEnabled"] as? Bool {
130
+ configuration.updatePaymentMethodEnabled = updatePaymentMethodEnabled
131
+ }
120
132
  switch params["paymentMethodLayout"] as? String? {
121
133
  case "Horizontal":
122
134
  configuration.paymentMethodLayout = .horizontal
@@ -125,19 +137,19 @@ extension StripeSdk {
125
137
  default:
126
138
  configuration.paymentMethodLayout = .automatic
127
139
  }
128
-
140
+
129
141
  configuration.cardBrandAcceptance = computeCardBrandAcceptance(params: params)
130
-
142
+
131
143
  return (nil, configuration)
132
144
  }
133
-
145
+
134
146
  internal func preparePaymentSheetInstance(
135
147
  params: NSDictionary,
136
148
  configuration: PaymentSheet.Configuration,
137
149
  resolve: @escaping RCTPromiseResolveBlock
138
150
  ) {
139
151
  self.paymentSheetFlowController = nil
140
-
152
+
141
153
  func handlePaymentSheetFlowControllerResult(result: Result<PaymentSheet.FlowController, Error>, stripeSdk: StripeSdk?) {
142
154
  switch result {
143
155
  case .failure(let error):
@@ -204,7 +216,7 @@ extension StripeSdk {
204
216
  paymentMethodTypes: intentConfiguration["paymentMethodTypes"] as? [String],
205
217
  captureMethod: mapCaptureMethod(captureMethodString)
206
218
  )
207
-
219
+
208
220
  if params["customFlow"] as? Bool == true {
209
221
  PaymentSheet.FlowController.create(intentConfiguration: intentConfig, configuration: configuration) { [weak self] result in
210
222
  handlePaymentSheetFlowControllerResult(result: result, stripeSdk: self)
@@ -218,7 +230,7 @@ extension StripeSdk {
218
230
  }
219
231
  }
220
232
  }
221
-
233
+
222
234
  internal func computeCardBrandAcceptance(params: NSDictionary) -> PaymentSheet.CardBrandAcceptance {
223
235
  if let cardBrandAcceptanceParams = params["cardBrandAcceptance"] as? NSDictionary {
224
236
  if let filter = cardBrandAcceptanceParams["filter"] as? String {
@@ -240,10 +252,10 @@ extension StripeSdk {
240
252
  }
241
253
  }
242
254
  }
243
-
255
+
244
256
  return .all
245
257
  }
246
-
258
+
247
259
  private func mapToCardBrandCategory(brand: String) -> PaymentSheet.CardBrandAcceptance.BrandCategory? {
248
260
  switch brand {
249
261
  case "visa":
@@ -258,7 +270,7 @@ extension StripeSdk {
258
270
  return nil
259
271
  }
260
272
  }
261
-
273
+
262
274
  private func mapCaptureMethod(_ captureMethod: String?) -> PaymentSheet.IntentConfiguration.CaptureMethod {
263
275
  if let captureMethod = captureMethod {
264
276
  switch captureMethod {
@@ -270,7 +282,7 @@ extension StripeSdk {
270
282
  }
271
283
  return PaymentSheet.IntentConfiguration.CaptureMethod.automatic
272
284
  }
273
-
285
+
274
286
  private func buildIntentConfiguration(
275
287
  modeParams: NSDictionary,
276
288
  paymentMethodTypes: [String]?,
@@ -308,7 +320,7 @@ extension StripeSdk {
308
320
  }
309
321
  })
310
322
  }
311
-
323
+
312
324
  private func buildCustomerHandlersForPaymentSheet(applePayParams: NSDictionary) -> PaymentSheet.ApplePayConfiguration.Handlers? {
313
325
  if (applePayParams["request"] == nil) {
314
326
  return nil
@@ -334,7 +346,7 @@ extension StripeSdk {
334
346
  }
335
347
  })
336
348
  }
337
-
349
+
338
350
  internal static func mapToCollectionMode(str: String?) -> PaymentSheet.BillingDetailsCollectionConfiguration.CollectionMode {
339
351
  switch str {
340
352
  case "automatic":
@@ -347,7 +359,7 @@ extension StripeSdk {
347
359
  return .automatic
348
360
  }
349
361
  }
350
-
362
+
351
363
  internal static func mapToAddressCollectionMode(str: String?) -> PaymentSheet.BillingDetailsCollectionConfiguration.AddressCollectionMode {
352
364
  switch str {
353
365
  case "automatic":
@@ -360,5 +372,16 @@ extension StripeSdk {
360
372
  return .automatic
361
373
  }
362
374
  }
375
+
376
+ internal static func mapToLinkDisplay(value: String?) -> PaymentSheet.LinkConfiguration.Display {
377
+ switch value {
378
+ case "automatic":
379
+ return .automatic
380
+ case "never":
381
+ return .never
382
+ default:
383
+ return .automatic
384
+ }
385
+ }
363
386
  }
364
387
 
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var TextInputState=require('react-native/Libraries/Components/TextInput/TextInputState');var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in TextInputState){TextInputState.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in TextInputState){TextInputState.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in TextInputState){TextInputState.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in TextInputState){return TextInputState.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","TextInputState","shouldAttributeExpo","exports","NativeModules","NativeUnimoduleProxy","_unused","isiOS","Platform","OS","isAndroid","createError","error","code","message","localizedMessage","declineCode","stripeErrorCode","type","unsupportedMethodMessage","field","focusInput","ref","__DEV__","console","log","registerInput","unregisterInput","currentlyFocusedInput"],"sour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AwB,CAAC,YAAY,CAAC,CAAC,CACrD,CACF,CACF,CAAC,CAEM,GAAM,CAAAO,aAAa,CAAAvB,OAAA,CAAAuB,aAAA,CAAG,QAAhB,CAAAA,aAAaA,CAAIJ,GAAgC,CAAK,CACjE,GAAI,eAAe,EAAI,CAAArB,cAAc,CAAE,CACrCA,cAAc,CAACyB,aAAa,CAACJ,GAAG,CAAC,CACnC,CAAC,IAAM,CACL,GAAIC,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACN,wBAAwB,CAAC,eAAe,CAAC,CAAC,CACxD,CACF,CACF,CAAC,CAEM,GAAM,CAAAQ,eAAe,CAAAxB,OAAA,CAAAwB,eAAA,CAAG,QAAlB,CAAAA,eAAeA,CAAIL,GAAgC,CAAK,CACnE,GAAI,iBAAiB,EAAI,CAAArB,cAAc,CAAE,CACvCA,cAAc,CAAC0B,eAAe,CAACL,GAAG,CAAC,CACrC,CAAC,IAAM,CACL,GAAIC,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACN,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,CAC1D,CACF,CACF,CAAC,CAEM,GAAM,CAAAS,qBAAqB,CAAAzB,OAAA,CAAAyB,qBAAA,CAAG,QAAxB,CAAAA,qBAAqBA,CAAA,CAAS,CACzC,GAAI,uBAAuB,EAAI,CAAA3B,cAAc,CAAE,CAC7C,MAAO,CAAAA,cAAc,CAAC2B,qBAAqB,CAAC,CAAC,CAC/C,CAAC,IAAM,CACL,GAAIL,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACN,wBAAwB,CAAC,uBAAuB,CAAC,CAAC,CAChE,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_TextInputState","_interopRequireDefault","shouldAttributeExpo","exports","NativeModules","NativeUnimoduleProxy","_unused","isiOS","Platform","OS","isAndroid","createError","error","code","message","localizedMessage","declineCode","stripeErrorCode","type","unsupportedMethodMessage","field","focusInput","ref","TextInputState","__DEV__","console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AAO,CAACC,GAAG,CAACP,wBAAwB,CAAC,YAAY,CAAC,CAAC,CACrD,CACF,CACF,CAAC,CAEM,GAAM,CAAAQ,aAAa,CAAAxB,OAAA,CAAAwB,aAAA,CAAG,QAAhB,CAAAA,aAAaA,CAAIL,GAAgC,CAAK,CACjE,GAAI,eAAe,EAAI,CAAAC,uBAAc,CAAE,CACrCA,uBAAc,CAACI,aAAa,CAACL,GAAG,CAAC,CACnC,CAAC,IAAM,CACL,GAAIE,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACP,wBAAwB,CAAC,eAAe,CAAC,CAAC,CACxD,CACF,CACF,CAAC,CAEM,GAAM,CAAAS,eAAe,CAAAzB,OAAA,CAAAyB,eAAA,CAAG,QAAlB,CAAAA,eAAeA,CAAIN,GAAgC,CAAK,CACnE,GAAI,iBAAiB,EAAI,CAAAC,uBAAc,CAAE,CACvCA,uBAAc,CAACK,eAAe,CAACN,GAAG,CAAC,CACrC,CAAC,IAAM,CACL,GAAIE,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACP,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,CAC1D,CACF,CACF,CAAC,CAEM,GAAM,CAAAU,qBAAqB,CAAA1B,OAAA,CAAA0B,qBAAA,CAAG,QAAxB,CAAAA,qBAAqBA,CAAA,CAAS,CACzC,GAAI,uBAAuB,EAAI,CAAAN,uBAAc,CAAE,CAC7C,MAAO,CAAAA,uBAAc,CAACM,qBAAqB,CAAC,CAAC,CAC/C,CAAC,IAAM,CACL,GAAIL,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACP,wBAAwB,CAAC,uBAAuB,CAAC,CAAC,CAChE,CACF,CACF,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodLayout=exports.CollectionMode=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodLayout=exports.LinkDisplay=exports.CollectionMode=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var LinkDisplay=exports.LinkDisplay=function(LinkDisplay){LinkDisplay["AUTOMATIC"]="automatic";LinkDisplay["NEVER"]="never";return LinkDisplay;}({});var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});
2
2
  //# sourceMappingURL=PaymentSheet.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CollectionMode","exports","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardBrandCategory","CardBrandAcceptanceFilter"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"sOAyVY,CAAAA,cAAc,CAAAC,OAAA,CAAAD,cAAA,UAAdA,cAAc,EAAdA,cAAc,0BAAdA,cAAc,kBAAdA,cAAc,0BAAd,CAAAA,cAAc,UASd,CAAAE,qBAAqB,CAAAD,OAAA,CAAAC,qBAAA,UAArBA,qBAAqB,EAArBA,qBAAqB,0BAArBA,qBAAqB,kBAArBA,qBAAqB,sBAArB,CAAAA,qBAAqB,UA8CrB,CAAAC,aAAa,CAAAF,OAAA,CAAAE,aAAA,UAAbA,aAAa,EAAbA,aAAa,0BAAbA,aAAa,oBAAbA,aAAa,0CAAb,CAAAA,aAAa,UAqCb,CAAAC,mBAAmB,CAAAH,OAAA,CAAAG,mBAAA,UAAnBA,mBAAmB,EAAnBA,mBAAmB,4BAAnBA,mBAAmB,wBAAnBA,mBAAmB,gCAAnB,CAAAA,mBAAmB,UAoBnB,CAAAC,iBAAiB,CAAAJ,OAAA,CAAAI,iBAAA,UAAjBA,iBAAiB,EAAjBA,iBAAiB,gBAAjBA,iBAAiB,4BAAjBA,iBAAiB,gBAAjBA,iBAAiB,8BAAjB,CAAAA,iBAAiB,UAejB,CAAAC,yBAAyB,CAAAL,OAAA,CAAAK,yBAAA,UAAzBA,yBAAyB,EAAzBA,yBAAyB,cAAzBA,yBAAyB,sBAAzBA,yBAAyB,kCAAzB,CAAAA,yBAAyB","ignoreList":[]}
1
+ {"version":3,"names":["LinkDisplay","exports","CollectionMode","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardBrandCategory","CardBrandAcceptanceFilter"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"0PAiLY,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,UAAXA,WAAW,EAAXA,WAAW,0BAAXA,WAAW,wBAAX,CAAAA,WAAW,UA6LX,CAAAE,cAAc,CAAAD,OAAA,CAAAC,cAAA,UAAdA,cAAc,EAAdA,cAAc,0BAAdA,cAAc,kBAAdA,cAAc,0BAAd,CAAAA,cAAc,UASd,CAAAC,qBAAqB,CAAAF,OAAA,CAAAE,qBAAA,UAArBA,qBAAqB,EAArBA,qBAAqB,0BAArBA,qBAAqB,kBAArBA,qBAAqB,sBAArB,CAAAA,qBAAqB,UA8CrB,CAAAC,aAAa,CAAAH,OAAA,CAAAG,aAAA,UAAbA,aAAa,EAAbA,aAAa,0BAAbA,aAAa,oBAAbA,aAAa,0CAAb,CAAAA,aAAa,UAqCb,CAAAC,mBAAmB,CAAAJ,OAAA,CAAAI,mBAAA,UAAnBA,mBAAmB,EAAnBA,mBAAmB,4BAAnBA,mBAAmB,wBAAnBA,mBAAmB,gCAAnB,CAAAA,mBAAmB,UAoBnB,CAAAC,iBAAiB,CAAAL,OAAA,CAAAK,iBAAA,UAAjBA,iBAAiB,EAAjBA,iBAAiB,gBAAjBA,iBAAiB,4BAAjBA,iBAAiB,gBAAjBA,iBAAiB,8BAAjB,CAAAA,iBAAiB,UAejB,CAAAC,yBAAyB,CAAAN,OAAA,CAAAM,yBAAA,UAAzBA,yBAAyB,EAAzBA,yBAAyB,cAAzBA,yBAAyB,sBAAzBA,yBAAyB,kCAAzB,CAAAA,yBAAyB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var TextInputState=require('react-native/Libraries/Components/TextInput/TextInputState');var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in TextInputState){TextInputState.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in TextInputState){TextInputState.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in TextInputState){TextInputState.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in TextInputState){return TextInputState.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","TextInputState","shouldAttributeExpo","exports","NativeModules","NativeUnimoduleProxy","_unused","isiOS","Platform","OS","isAndroid","createError","error","code","message","localizedMessage","declineCode","stripeErrorCode","type","unsupportedMethodMessage","field","focusInput","ref","__DEV__","console","log","registerInput","unregisterInput","currentlyFocusedInput"],"sourceRoot":"../../src","sources":["helpers.ts"],"mappings":"4RAGA,IAAAA,YAAA,CAAAC,OAAA,iBACA,GAAM,CAAAC,cAAc,CAAGD,OAAO,CAAC,4DAA4D,CAAC,CAOrF,GAAM,CAAAE,mBAAmB,CAAAC,OAAA,CAAAD,mBAAA,CAAG,QAAtB,CAAAA,mBAAmBA,CAAA,CAAS,CACvC,GAAI,CACF,MAAO,CAAC,CAACE,0BAAa,CAACC,oBAAoB,CAC7C,CAAE,MAAAC,OAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF,CAAC,CAEM,GAAM,CAAAC,KAAK,CAAAJ,OAAA,CAAAI,KAAA,CAAGC,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACnC,GAAM,CAAAC,SAAS,CAAAP,OAAA,CAAAO,SAAA,CAAGF,qBAAQ,CAACC,EAAE,GAAK,SAAS,CAE3C,QAAS,CAAAE,WAAWA,CAAIC,KAAqB,CAAE,CACpD,MAAO,CACLC,IAAI,CAAED,KAAK,CAACC,IAAI,CAChBC,OAAO,CAAEF,KAAK,CAACE,OAAO,CACtBC,gBAAgB,CAAEH,KAAK,CAACG,gBAAgB,CACxCC,WAAW,CAAEJ,KAAK,CAACI,WAAW,CAC9BC,eAAe,CAAEL,KAAK,CAACK,eAAe,CACtCC,IAAI,CAAEN,KAAK,CAACM,IACd,CAAC,CACH,CAEO,GAAM,CAAAC,wBAAwB,CAAAhB,OAAA,CAAAgB,wBAAA,CAAG,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/C,CAAC,IAAM,CACL,GAAIL,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACN,wBAAwB,CAAC,uBAAuB,CAAC,CAAC,CAChE,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_TextInputState","_interopRequireDefault","shouldAttributeExpo","exports","NativeModules","NativeUnimoduleProxy","_unused","isiOS","Platform","OS","isAndroid","createError","error","code","message","localizedMessage","declineCode","stripeErrorCode","type","unsupportedMethodMessage","field","focusInput","ref","TextInputState","__DEV__","console","log","registerInput","unregisterInput","currentlyFocusedInput"],"sourceRoot":"../../src","sources":["helpers.ts"],"mappings":"+WAGA,IAAAA,YAAA,CAAAC,OAAA,iBAEA,IAAAC,eAAA,CAAAC,sBAAA,CAAAF,OAAA,gEAOO,GAAM,CAAAG,mBAAmB,CAAAC,OAAA,CAAAD,mBAAA,CAAG,QAAtB,CAAAA,mBAAmBA,CAAA,CAAS,CACvC,GAAI,CACF,MAAO,CAAC,CAACE,0BAAa,CAACC,oBAAoB,CAC7C,CAAE,MAAAC,OAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF,CAAC,CAEM,GAAM,CAAAC,KAAK,CAAAJ,OAAA,CAAAI,KAAA,CAAGC,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACnC,GAAM,CAAAC,SAAS,CAAAP,OAAA,CAAAO,SAAA,CAAGF,qBAAQ,CAACC,EAAE,GAAK,SAAS,CAE3C,QAAS,CAAAE,WAAWA,CAAIC,KAAqB,CAAE,CACpD,MAAO,CACLC,IAAI,CAAED,KAAK,CAACC,IAAI,CAChBC,OAAO,CAAEF,KAAK,CAACE,OAAO,CACtBC,gBAAgB,CAAEH,KAAK,CAACG,gBAAgB,CACxCC,WAAW,CAAEJ,KAAK,CAACI,WAAW,CAC9BC,eAAe,CAAEL,KAAK,CAACK,eAAe,CACtCC,IAAI,CAAEN,KAAK,CAACM,IACd,CAAC,CACH,CAEO,GAAM,CAAAC,wBAAwB,CAAAhB,OA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qBAAqB,CAAC,CAAC,CAC/C,CAAC,IAAM,CACL,GAAIL,OAAO,CAAE,CACXC,OAAO,CAACC,GAAG,CAACP,wBAAwB,CAAC,uBAAuB,CAAC,CAAC,CAChE,CACF,CACF,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodLayout=exports.CollectionMode=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodLayout=exports.LinkDisplay=exports.CollectionMode=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var LinkDisplay=exports.LinkDisplay=function(LinkDisplay){LinkDisplay["AUTOMATIC"]="automatic";LinkDisplay["NEVER"]="never";return LinkDisplay;}({});var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});
2
2
  //# sourceMappingURL=PaymentSheet.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CollectionMode","exports","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardBrandCategory","CardBrandAcceptanceFilter"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"sOAyVY,CAAAA,cAAc,CAAAC,OAAA,CAAAD,cAAA,UAAdA,cAAc,EAAdA,cAAc,0BAAdA,cAAc,kBAAdA,cAAc,0BAAd,CAAAA,cAAc,UASd,CAAAE,qBAAqB,CAAAD,OAAA,CAAAC,qBAAA,UAArBA,qBAAqB,EAArBA,qBAAqB,0BAArBA,qBAAqB,kBAArBA,qBAAqB,sBAArB,CAAAA,qBAAqB,UA8CrB,CAAAC,aAAa,CAAAF,OAAA,CAAAE,aAAA,UAAbA,aAAa,EAAbA,aAAa,0BAAbA,aAAa,oBAAbA,aAAa,0CAAb,CAAAA,aAAa,UAqCb,CAAAC,mBAAmB,CAAAH,OAAA,CAAAG,mBAAA,UAAnBA,mBAAmB,EAAnBA,mBAAmB,4BAAnBA,mBAAmB,wBAAnBA,mBAAmB,gCAAnB,CAAAA,mBAAmB,UAoBnB,CAAAC,iBAAiB,CAAAJ,OAAA,CAAAI,iBAAA,UAAjBA,iBAAiB,EAAjBA,iBAAiB,gBAAjBA,iBAAiB,4BAAjBA,iBAAiB,gBAAjBA,iBAAiB,8BAAjB,CAAAA,iBAAiB,UAejB,CAAAC,yBAAyB,CAAAL,OAAA,CAAAK,yBAAA,UAAzBA,yBAAyB,EAAzBA,yBAAyB,cAAzBA,yBAAyB,sBAAzBA,yBAAyB,kCAAzB,CAAAA,yBAAyB","ignoreList":[]}
1
+ {"version":3,"names":["LinkDisplay","exports","CollectionMode","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardBrandCategory","CardBrandAcceptanceFilter"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"0PAiLY,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,UAAXA,WAAW,EAAXA,WAAW,0BAAXA,WAAW,wBAAX,CAAAA,WAAW,UA6LX,CAAAE,cAAc,CAAAD,OAAA,CAAAC,cAAA,UAAdA,cAAc,EAAdA,cAAc,0BAAdA,cAAc,kBAAdA,cAAc,0BAAd,CAAAA,cAAc,UASd,CAAAC,qBAAqB,CAAA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AC;AAEF,eAAO,MAAM,aAAa,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ7D,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAQjC,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,eAM/B,CAAC;AAEF,eAAO,MAAM,KAAK,SAAwB,CAAC;AAC3C,eAAO,MAAM,SAAS,SAA4B,CAAC;AAEnD,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;;;;;;;EASnD;AAED,eAAO,MAAM,wBAAwB,UAAW,MAAM,WAC4C,CAAC;AAEnG,eAAO,MAAM,UAAU,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ1D,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ7D,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAQ/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAQjC,CAAC"}
@@ -39,6 +39,10 @@ export type CustomerSheetInitParams = {
39
39
  * If false, the customer can't delete if they only have one saved payment method remaining.
40
40
  */
41
41
  allowsRemovalOfLastSavedPaymentMethod?: boolean;
42
+ /** (Private Preview) This parameter is expected to be removed once we GA this feature
43
+ * When using customerSessions, allow users to update their saved cards
44
+ */
45
+ updatePaymentMethodEnabled?: boolean;
42
46
  /**
43
47
  * By default, CustomerSheet will accept all supported cards by Stripe.
44
48
  * You can specify card brands CustomerSheet should block or allow payment for by providing an array of those card brands.
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerSheet.d.ts","sourceRoot":"","sources":["../../../../src/types/CustomerSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,uBAAuB,GAAG;IACpC,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC;IACnD,qDAAqD;IACrD,UAAU,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAC3C,oPAAoP;IACpP,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wHAAwH;IACxH,UAAU,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,0BAA0B,EAAE,MAAM,CAAC;IACnC,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,mQAAmQ;IACnQ,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC,sOAAsO;IACtO,qCAAqC,CAAC,EAAE,YAAY,CAAC,qCAAqC,CAAC;IAC3F,+IAA+I;IAC/I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2GAA2G;IAC3G,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,iEAAiE;IACjE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;yFACqF;IACrF,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACrC;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;OAGG;IACH,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC,mB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16,6 +16,8 @@ export type SetupParamsBase = IntentParams & {
16
16
  applePay?: ApplePayParams;
17
17
  /** Android only. Enable Google Pay in the Payment Sheet by passing a GooglePayParams object. */
18
18
  googlePay?: GooglePayParams;
19
+ /** Configuration for Link */
20
+ link?: LinkParams;
19
21
  /** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. */
20
22
  style?: UserInterfaceStyle;
21
23
  /** A URL that redirects back to your app that PaymentSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 */
@@ -71,6 +73,10 @@ export type SetupParamsBase = IntentParams & {
71
73
  * Note: Card brand filtering is not currently supported in Link.
72
74
  */
73
75
  cardBrandAcceptance?: CardBrandAcceptance;
76
+ /** (Private Preview) This parameter is expected to be removed once we GA this feature
77
+ * When using customerSessions, allow users to update their saved cards
78
+ */
79
+ updatePaymentMethodEnabled?: boolean;
74
80
  };
75
81
  export type SetupParams = (SetupParamsBase & {
76
82
  /** A short-lived token that allows the SDK to access a Customer’s payment methods. */
@@ -129,6 +135,19 @@ export type GooglePayParams = {
129
135
  * for more information on button types. */
130
136
  buttonType?: ButtonType;
131
137
  };
138
+ export type LinkParams = {
139
+ /** Display configuration for Link */
140
+ display?: LinkDisplay;
141
+ };
142
+ /**
143
+ * Display configuration for Link
144
+ */
145
+ export declare enum LinkDisplay {
146
+ /** Link will be displayed when available. */
147
+ AUTOMATIC = "automatic",
148
+ /** Link will never be displayed. */
149
+ NEVER = "never"
150
+ }
132
151
  /**
133
152
  * Used to customize the appearance of your PaymentSheet
134
153
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/types/PaymentSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EAC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Stripe",
5
5
  "description": "Stripe SDK for React Native",
6
6
  "main": "lib/commonjs/index",
package/src/helpers.ts CHANGED
@@ -2,7 +2,8 @@ import type React from 'react';
2
2
  import type { StripeError } from './types';
3
3
 
4
4
  import { Platform, NativeModules } from 'react-native';
5
- const TextInputState = require('react-native/Libraries/Components/TextInput/TextInputState');
5
+ // @ts-ignore TextInputState has no type definition
6
+ import TextInputState from 'react-native/Libraries/Components/TextInput/TextInputState';
6
7
 
7
8
  /**
8
9
  * Determines whether or not this library is being used inside of
@@ -47,6 +47,10 @@ export type CustomerSheetInitParams = {
47
47
  * If false, the customer can't delete if they only have one saved payment method remaining.
48
48
  */
49
49
  allowsRemovalOfLastSavedPaymentMethod?: boolean;
50
+ /** (Private Preview) This parameter is expected to be removed once we GA this feature
51
+ * When using customerSessions, allow users to update their saved cards
52
+ */
53
+ updatePaymentMethodEnabled?: boolean;
50
54
  /**
51
55
  * By default, CustomerSheet will accept all supported cards by Stripe.
52
56
  * You can specify card brands CustomerSheet should block or allow payment for by providing an array of those card brands.
@@ -27,6 +27,8 @@ export type SetupParamsBase = IntentParams & {
27
27
  applePay?: ApplePayParams;
28
28
  /** Android only. Enable Google Pay in the Payment Sheet by passing a GooglePayParams object. */
29
29
  googlePay?: GooglePayParams;
30
+ /** Configuration for Link */
31
+ link?: LinkParams;
30
32
  /** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. */
31
33
  style?: UserInterfaceStyle;
32
34
  /** A URL that redirects back to your app that PaymentSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 */
@@ -82,6 +84,10 @@ export type SetupParamsBase = IntentParams & {
82
84
  * Note: Card brand filtering is not currently supported in Link.
83
85
  */
84
86
  cardBrandAcceptance?: CardBrandAcceptance;
87
+ /** (Private Preview) This parameter is expected to be removed once we GA this feature
88
+ * When using customerSessions, allow users to update their saved cards
89
+ */
90
+ updatePaymentMethodEnabled?: boolean;
85
91
  };
86
92
 
87
93
  export type SetupParams =
@@ -161,6 +167,21 @@ export type GooglePayParams = {
161
167
  buttonType?: ButtonType;
162
168
  };
163
169
 
170
+ export type LinkParams = {
171
+ /** Display configuration for Link */
172
+ display?: LinkDisplay;
173
+ };
174
+
175
+ /**
176
+ * Display configuration for Link
177
+ */
178
+ export enum LinkDisplay {
179
+ /** Link will be displayed when available. */
180
+ AUTOMATIC = 'automatic',
181
+ /** Link will never be displayed. */
182
+ NEVER = 'never',
183
+ }
184
+
164
185
  /**
165
186
  * Used to customize the appearance of your PaymentSheet
166
187
  */
@@ -2,7 +2,7 @@ require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
4
  # Keep stripe_version in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/stripe-identity-react-native.podspec
5
- stripe_version = '~> 24.7.0'
5
+ stripe_version = '~> 24.11.0'
6
6
 
7
7
  Pod::Spec.new do |s|
8
8
  s.name = 'stripe-react-native'