@stripe/stripe-react-native 0.68.0 → 0.70.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.
Files changed (218) hide show
  1. package/android/.idea/AndroidProjectSystem.xml +6 -0
  2. package/android/.idea/caches/deviceStreaming.xml +835 -0
  3. package/android/.idea/compiler.xml +6 -0
  4. package/android/.idea/gradle.xml +17 -0
  5. package/android/.idea/migrations.xml +10 -0
  6. package/android/.idea/misc.xml +10 -0
  7. package/android/.idea/runConfigurations.xml +17 -0
  8. package/android/.idea/vcs.xml +6 -0
  9. package/android/gradle.properties +1 -1
  10. package/android/local.properties +8 -0
  11. package/android/src/main/java/com/reactnativestripesdk/LinkControllerManager.kt +175 -0
  12. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +31 -24
  13. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +7 -8
  14. package/android/src/oldarch/java/com/reactnativestripesdk/NativeOnrampSdkModuleSpec.java +8 -0
  15. package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +8 -4
  16. package/android/src/onramp/java/com/reactnativestripesdk/OnrampErrors.kt +30 -35
  17. package/android/src/onramp/java/com/reactnativestripesdk/OnrampMappers.kt +48 -0
  18. package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +65 -2
  19. package/android/src/test/java/com/reactnativestripesdk/OnrampErrorsTest.kt +106 -27
  20. package/android/src/test/java/com/reactnativestripesdk/mappers/OnrampMappersTest.kt +37 -0
  21. package/android/src/test/java/com/reactnativestripesdk/mappers/PaymentMethodMappersTest.kt +110 -0
  22. package/ios/CurrencySelectorElementView.swift +1 -1
  23. package/ios/Mappers+Checkout.swift +3 -3
  24. package/ios/Mappers.swift +19 -0
  25. package/ios/OnrampErrors.swift +21 -19
  26. package/ios/StripeOnrampSdk.mm +16 -0
  27. package/ios/StripeSdk.mm +15 -15
  28. package/ios/StripeSdkImpl+Checkout.swift +15 -39
  29. package/ios/StripeSdkImpl+LinkController.swift +108 -0
  30. package/ios/StripeSdkImpl.swift +64 -3
  31. package/jest/setup.js +2 -0
  32. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  33. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  34. package/lib/commonjs/components/AddressSheet.js +1 -1
  35. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  36. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  37. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  38. package/lib/commonjs/components/CardField.js +1 -1
  39. package/lib/commonjs/components/CardField.js.map +1 -1
  40. package/lib/commonjs/components/CardForm.js +1 -1
  41. package/lib/commonjs/components/CardForm.js.map +1 -1
  42. package/lib/commonjs/components/CurrencySelectorElement.js +1 -1
  43. package/lib/commonjs/components/CurrencySelectorElement.js.map +1 -1
  44. package/lib/commonjs/components/PaymentMethodMessagingElement.js +1 -1
  45. package/lib/commonjs/components/PaymentMethodMessagingElement.js.map +1 -1
  46. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  47. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  48. package/lib/commonjs/components/StripeContainer.js +1 -1
  49. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  50. package/lib/commonjs/components/StripeProvider.js +1 -1
  51. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  52. package/lib/commonjs/connect/Components.js +1 -1
  53. package/lib/commonjs/connect/Components.js.map +1 -1
  54. package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
  55. package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
  56. package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
  57. package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
  58. package/lib/commonjs/connect/ModalCloseButton.js +1 -1
  59. package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
  60. package/lib/commonjs/connect/NavigationBar.js +1 -1
  61. package/lib/commonjs/connect/NavigationBar.js.map +1 -1
  62. package/lib/commonjs/functions.js +1 -1
  63. package/lib/commonjs/functions.js.map +1 -1
  64. package/lib/commonjs/helpers.js +1 -1
  65. package/lib/commonjs/hooks/useCheckout.js +1 -1
  66. package/lib/commonjs/hooks/useCheckout.js.map +1 -1
  67. package/lib/commonjs/hooks/useLinkController.js +2 -0
  68. package/lib/commonjs/hooks/useLinkController.js.map +1 -0
  69. package/lib/commonjs/hooks/useOnramp.js +1 -1
  70. package/lib/commonjs/hooks/useOnramp.js.map +1 -1
  71. package/lib/commonjs/index.js +1 -1
  72. package/lib/commonjs/index.js.map +1 -1
  73. package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
  74. package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
  75. package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
  76. package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
  77. package/lib/commonjs/specs/NativeCardField.js +1 -1
  78. package/lib/commonjs/specs/NativeCardField.js.map +1 -1
  79. package/lib/commonjs/specs/NativeCardForm.js +1 -1
  80. package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
  81. package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
  82. package/lib/commonjs/specs/NativeCurrencySelectorElement.js +1 -1
  83. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
  84. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  85. package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
  86. package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
  87. package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +1 -1
  88. package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
  89. package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
  90. package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
  91. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  92. package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
  93. package/lib/commonjs/types/Errors.js +1 -1
  94. package/lib/commonjs/types/Errors.js.map +1 -1
  95. package/lib/commonjs/types/LinkController.js +2 -0
  96. package/lib/commonjs/types/LinkController.js.map +1 -0
  97. package/lib/commonjs/types/Onramp.js +1 -1
  98. package/lib/commonjs/types/Onramp.js.map +1 -1
  99. package/lib/commonjs/types/index.js +1 -1
  100. package/lib/commonjs/types/index.js.map +1 -1
  101. package/lib/module/components/AddToWalletButton.js +1 -1
  102. package/lib/module/components/AddToWalletButton.js.map +1 -1
  103. package/lib/module/components/AddressSheet.js +1 -1
  104. package/lib/module/components/AddressSheet.js.map +1 -1
  105. package/lib/module/components/AuBECSDebitForm.js +1 -1
  106. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  107. package/lib/module/components/CardField.js +1 -1
  108. package/lib/module/components/CardField.js.map +1 -1
  109. package/lib/module/components/CardForm.js +1 -1
  110. package/lib/module/components/CardForm.js.map +1 -1
  111. package/lib/module/components/CurrencySelectorElement.js +1 -1
  112. package/lib/module/components/CurrencySelectorElement.js.map +1 -1
  113. package/lib/module/components/PaymentMethodMessagingElement.js +1 -1
  114. package/lib/module/components/PaymentMethodMessagingElement.js.map +1 -1
  115. package/lib/module/components/PlatformPayButton.js +1 -1
  116. package/lib/module/components/PlatformPayButton.js.map +1 -1
  117. package/lib/module/components/StripeContainer.js +1 -1
  118. package/lib/module/components/StripeContainer.js.map +1 -1
  119. package/lib/module/components/StripeProvider.js +1 -1
  120. package/lib/module/components/StripeProvider.js.map +1 -1
  121. package/lib/module/connect/Components.js +1 -1
  122. package/lib/module/connect/Components.js.map +1 -1
  123. package/lib/module/connect/ConnectComponentsProvider.js +1 -1
  124. package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
  125. package/lib/module/connect/EmbeddedComponent.js +1 -1
  126. package/lib/module/connect/EmbeddedComponent.js.map +1 -1
  127. package/lib/module/connect/ModalCloseButton.js +1 -1
  128. package/lib/module/connect/ModalCloseButton.js.map +1 -1
  129. package/lib/module/connect/NavigationBar.js +1 -1
  130. package/lib/module/connect/NavigationBar.js.map +1 -1
  131. package/lib/module/functions.js +1 -1
  132. package/lib/module/functions.js.map +1 -1
  133. package/lib/module/helpers.js +1 -1
  134. package/lib/module/hooks/useCheckout.js +1 -1
  135. package/lib/module/hooks/useCheckout.js.map +1 -1
  136. package/lib/module/hooks/useLinkController.js +2 -0
  137. package/lib/module/hooks/useLinkController.js.map +1 -0
  138. package/lib/module/hooks/useOnramp.js +1 -1
  139. package/lib/module/hooks/useOnramp.js.map +1 -1
  140. package/lib/module/index.js +1 -1
  141. package/lib/module/index.js.map +1 -1
  142. package/lib/module/specs/NativeAddToWalletButton.js +1 -1
  143. package/lib/module/specs/NativeAddressSheet.js +1 -1
  144. package/lib/module/specs/NativeApplePayButton.js +1 -1
  145. package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
  146. package/lib/module/specs/NativeCardField.js +1 -1
  147. package/lib/module/specs/NativeCardField.js.map +1 -1
  148. package/lib/module/specs/NativeCardForm.js +1 -1
  149. package/lib/module/specs/NativeCardForm.js.map +1 -1
  150. package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
  151. package/lib/module/specs/NativeCurrencySelectorElement.js +1 -1
  152. package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
  153. package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  154. package/lib/module/specs/NativeGooglePayButton.js +1 -1
  155. package/lib/module/specs/NativeNavigationBar.js +1 -1
  156. package/lib/module/specs/NativeOnrampSdkModule.js.map +1 -1
  157. package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
  158. package/lib/module/specs/NativeStripeContainer.js +1 -1
  159. package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
  160. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  161. package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
  162. package/lib/module/types/Errors.js +1 -1
  163. package/lib/module/types/Errors.js.map +1 -1
  164. package/lib/module/types/LinkController.js +2 -0
  165. package/lib/module/types/LinkController.js.map +1 -0
  166. package/lib/module/types/Onramp.js +1 -1
  167. package/lib/module/types/Onramp.js.map +1 -1
  168. package/lib/module/types/index.js +1 -1
  169. package/lib/module/types/index.js.map +1 -1
  170. package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -1
  171. package/lib/typescript/src/connect/Components.d.ts +1 -1
  172. package/lib/typescript/src/connect/Components.d.ts.map +1 -1
  173. package/lib/typescript/src/functions.d.ts +19 -1
  174. package/lib/typescript/src/functions.d.ts.map +1 -1
  175. package/lib/typescript/src/hooks/useCheckout.d.ts.map +1 -1
  176. package/lib/typescript/src/hooks/useLinkController.d.ts +28 -0
  177. package/lib/typescript/src/hooks/useLinkController.d.ts.map +1 -0
  178. package/lib/typescript/src/hooks/useOnramp.d.ts +18 -0
  179. package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
  180. package/lib/typescript/src/index.d.ts +1 -0
  181. package/lib/typescript/src/index.d.ts.map +1 -1
  182. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +2 -0
  183. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +1 -1
  184. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +5 -2
  185. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
  186. package/lib/typescript/src/types/Checkout.d.ts +1 -14
  187. package/lib/typescript/src/types/Checkout.d.ts.map +1 -1
  188. package/lib/typescript/src/types/Errors.d.ts +8 -0
  189. package/lib/typescript/src/types/Errors.d.ts.map +1 -1
  190. package/lib/typescript/src/types/LinkController.d.ts +71 -0
  191. package/lib/typescript/src/types/LinkController.d.ts.map +1 -0
  192. package/lib/typescript/src/types/Onramp.d.ts +82 -21
  193. package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
  194. package/lib/typescript/src/types/index.d.ts +2 -1
  195. package/lib/typescript/src/types/index.d.ts.map +1 -1
  196. package/package.json +1 -1
  197. package/src/components/StripeProvider.tsx +0 -2
  198. package/src/connect/Components.tsx +10 -0
  199. package/src/functions.ts +48 -0
  200. package/src/hooks/useCheckout.tsx +0 -14
  201. package/src/hooks/useLinkController.tsx +54 -0
  202. package/src/hooks/useOnramp.tsx +50 -83
  203. package/src/index.tsx +1 -0
  204. package/src/specs/NativeOnrampSdkModule.ts +8 -0
  205. package/src/specs/NativeStripeSdkModule.ts +11 -7
  206. package/src/types/Checkout.ts +1 -19
  207. package/src/types/Errors.ts +9 -0
  208. package/src/types/LinkController.ts +75 -0
  209. package/src/types/Onramp.ts +98 -21
  210. package/src/types/index.ts +2 -0
  211. package/stripe-react-native.podspec +1 -1
  212. package/lib/commonjs/internal/stripeConfig.js +0 -2
  213. package/lib/commonjs/internal/stripeConfig.js.map +0 -1
  214. package/lib/module/internal/stripeConfig.js +0 -2
  215. package/lib/module/internal/stripeConfig.js.map +0 -1
  216. package/lib/typescript/src/internal/stripeConfig.d.ts +0 -3
  217. package/lib/typescript/src/internal/stripeConfig.d.ts.map +0 -1
  218. package/src/internal/stripeConfig.ts +0 -9
@@ -11,7 +11,7 @@ import Foundation
11
11
 
12
12
  extension StripeSdkImpl {
13
13
  internal func currentCheckoutStateResult(checkout: Checkout) -> NSDictionary {
14
- Mappers.mapFromCheckoutState(checkout.state)
14
+ Mappers.mapFromCheckoutState(isLoading: checkout.isLoading, session: checkout.session)
15
15
  }
16
16
 
17
17
  @objc(initCheckoutSession:configuration:resolver:rejecter:)
@@ -21,7 +21,10 @@ extension StripeSdkImpl {
21
21
  resolver resolve: @escaping RCTPromiseResolveBlock,
22
22
  rejecter reject: @escaping RCTPromiseRejectBlock
23
23
  ) {
24
- let checkoutConfiguration = buildCheckoutConfiguration(params: configuration)
24
+ let checkoutConfiguration = buildCheckoutConfiguration(
25
+ clientSecret: clientSecret,
26
+ params: configuration
27
+ )
25
28
 
26
29
  Task { @MainActor [weak self] in
27
30
  guard let self else {
@@ -30,18 +33,16 @@ extension StripeSdkImpl {
30
33
  }
31
34
 
32
35
  do {
33
- let checkout = try await Checkout(
34
- clientSecret: clientSecret,
35
- configuration: checkoutConfiguration
36
- )
36
+ let checkout = try await Checkout(configuration: checkoutConfiguration)
37
37
  let sessionKey = UUID().uuidString
38
38
 
39
- let cancellable = checkout.$state
39
+ let cancellable = checkout.$isLoading
40
+ .combineLatest(checkout.$session)
40
41
  .dropFirst()
41
- .sink { [weak self] state in
42
+ .sink { [weak self] isLoading, session in
42
43
  self?.emitter?.emitCheckoutSessionDidChangeState([
43
44
  "sessionKey": sessionKey,
44
- "state": Mappers.mapFromCheckoutState(state),
45
+ "state": Mappers.mapFromCheckoutState(isLoading: isLoading, session: session),
45
46
  ])
46
47
  }
47
48
 
@@ -84,32 +85,6 @@ extension StripeSdkImpl {
84
85
  }
85
86
  }
86
87
 
87
- @objc(checkoutUpdateBillingAddress:address:name:phone:resolver:rejecter:)
88
- public func checkoutUpdateBillingAddress(
89
- sessionKey: String,
90
- address: NSDictionary,
91
- name: String?,
92
- phone: String?,
93
- resolver resolve: @escaping RCTPromiseResolveBlock,
94
- rejecter reject: @escaping RCTPromiseRejectBlock
95
- ) {
96
- performCheckoutAddressMutation(
97
- sessionKey: sessionKey,
98
- address: address,
99
- name: name,
100
- phone: phone,
101
- missingCountryMessage: "A billing address country is required.",
102
- resolver: resolve,
103
- rejecter: reject
104
- ) { checkout, addressUpdate in
105
- try await checkout.updateBillingAddress(
106
- name: addressUpdate.name,
107
- phone: addressUpdate.phone,
108
- address: addressUpdate.address
109
- )
110
- }
111
- }
112
-
113
88
  @objc(checkoutApplyPromotionCode:code:resolver:rejecter:)
114
89
  public func checkoutApplyPromotionCode(
115
90
  sessionKey: String,
@@ -234,8 +209,11 @@ extension StripeSdkImpl {
234
209
  resolve(nil)
235
210
  }
236
211
 
237
- internal func buildCheckoutConfiguration(params: NSDictionary) -> Checkout.Configuration {
238
- var configuration = Checkout.Configuration()
212
+ internal func buildCheckoutConfiguration(
213
+ clientSecret: String,
214
+ params: NSDictionary
215
+ ) -> Checkout.Configuration {
216
+ var configuration = Checkout.Configuration(clientSecret: clientSecret)
239
217
 
240
218
  if let adaptivePricing = params["adaptivePricing"] as? NSDictionary,
241
219
  let allowed = adaptivePricing["allowed"] as? Bool {
@@ -329,8 +307,6 @@ extension StripeSdkImpl {
329
307
  switch checkoutError {
330
308
  case .invalidClientSecret:
331
309
  return "InvalidClientSecret"
332
- case .sessionNotOpen:
333
- return "SessionNotOpen"
334
310
  case .sheetCurrentlyPresented:
335
311
  return "SheetCurrentlyPresented"
336
312
  default:
@@ -0,0 +1,108 @@
1
+ //
2
+ // StripeSdkImpl+LinkController.swift
3
+ // stripe-react-native
4
+ //
5
+ // @PrivatePreview This implementation is in private preview and may change without notice.
6
+ //
7
+
8
+ import Foundation
9
+ @_spi(LinkControllerPreview) import StripePaymentSheet
10
+
11
+ extension StripeSdkImpl {
12
+ @objc(initLinkController:resolver:rejecter:)
13
+ public func initLinkController(
14
+ _ params: NSDictionary,
15
+ resolver resolve: @escaping RCTPromiseResolveBlock,
16
+ rejecter reject: @escaping RCTPromiseRejectBlock
17
+ ) {
18
+ let email = params["email"] as? String
19
+ let phoneNumber = params["phoneNumber"] as? String
20
+ let merchantDisplayName = params["merchantDisplayName"] as? String
21
+ let allowLogout = params["allowLogout"] as? Bool ?? true
22
+ let setupIntentClientSecret = params["setupIntentClientSecret"] as? String
23
+
24
+ var supportedPaymentMethodTypes: [LinkPaymentMethodType]?
25
+ if let rawTypes = params["supportedPaymentMethodTypes"] as? [String] {
26
+ supportedPaymentMethodTypes = rawTypes.compactMap { rawValue in
27
+ switch rawValue {
28
+ case "card": return .card
29
+ case "bankAccount": return .bankAccount
30
+ default: return nil
31
+ }
32
+ }
33
+ }
34
+
35
+ let configuration = LinkConfiguration(
36
+ supportedPaymentMethodTypes: supportedPaymentMethodTypes,
37
+ allowLogout: allowLogout,
38
+ merchantDisplayName: merchantDisplayName
39
+ )
40
+
41
+ LinkController.create(
42
+ apiClient: STPAPIClient.shared,
43
+ setupIntentClientSecret: setupIntentClientSecret,
44
+ configuration: configuration
45
+ ) { [weak self] result in
46
+ switch result {
47
+ case .success(let controller):
48
+ self?.linkController = controller
49
+ self?.linkControllerEmail = email
50
+ self?.linkControllerPhone = phoneNumber
51
+ resolve([:])
52
+ case .failure(let error):
53
+ resolve(Errors.createError(ErrorType.Failed, error))
54
+ }
55
+ }
56
+ }
57
+
58
+ @objc(presentLinkController:rejecter:)
59
+ public func presentLinkController(
60
+ _ resolve: @escaping RCTPromiseResolveBlock,
61
+ rejecter reject: @escaping RCTPromiseRejectBlock
62
+ ) {
63
+ guard let controller = linkController else {
64
+ resolve(Errors.createError(ErrorType.Failed, "LinkController has not been initialized. Call initLinkController first."))
65
+ return
66
+ }
67
+
68
+ Task { @MainActor in
69
+ let presentingViewController = findViewControllerPresenter(
70
+ from: RCTKeyWindow()?.rootViewController ?? UIViewController()
71
+ )
72
+
73
+ controller.present(
74
+ email: linkControllerEmail ?? "",
75
+ phoneNumber: linkControllerPhone,
76
+ from: presentingViewController
77
+ ) { result in
78
+ switch result {
79
+ case .success(.completed(let paymentMethod)):
80
+ var response: [String: Any] = [:]
81
+ if let paymentMethodDict = Mappers.mapFromPaymentMethod(paymentMethod) {
82
+ response["paymentMethod"] = paymentMethodDict
83
+ }
84
+ if let preview = controller.paymentMethodPreview {
85
+ response["paymentMethodPreview"] = Self.mapLinkPaymentMethodPreview(preview)
86
+ }
87
+ resolve(response)
88
+ case .success(.canceled):
89
+ resolve(Errors.createError(ErrorType.Canceled, "The customer canceled the Link flow."))
90
+ case .failure(let error):
91
+ resolve(Errors.createError(ErrorType.Failed, error))
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ private static func mapLinkPaymentMethodPreview(_ preview: LinkController.PaymentMethodPreview) -> [String: Any] {
98
+ let iconBase64 = "data:image/png;base64," + (preview.icon.pngData()?.base64EncodedString(options: []) ?? "")
99
+ var result: [String: Any] = [
100
+ "icon": iconBase64,
101
+ "label": preview.label,
102
+ ]
103
+ if let sublabel = preview.sublabel {
104
+ result["sublabel"] = sublabel
105
+ }
106
+ return result
107
+ }
108
+ }
@@ -10,9 +10,9 @@ import StripePaymentsUI
10
10
  import UIKit
11
11
  #if canImport(StripeCryptoOnramp)
12
12
  @_spi(CryptoOnrampAlpha) import StripeCryptoOnramp
13
- @_spi(CryptoOnrampAlpha) @_spi(ReactNativeSDK) @_spi(AppearanceAPIAdditionsPreview) import StripePaymentSheet
13
+ @_spi(LinkControllerPreview) @_spi(CryptoOnrampAlpha) @_spi(ReactNativeSDK) @_spi(AppearanceAPIAdditionsPreview) import StripePaymentSheet
14
14
  #else
15
- @_spi(ReactNativeSDK) import StripePaymentSheet
15
+ @_spi(LinkControllerPreview) @_spi(ReactNativeSDK) import StripePaymentSheet
16
16
  #endif
17
17
 
18
18
  @available(iOS 13.0, *)
@@ -103,6 +103,11 @@ public class StripeSdkImpl: NSObject, UIAdaptivePresentationControllerDelegate {
103
103
  var applePayShippingAddressErrors: [Error]?
104
104
  var applePayCouponCodeErrors: [Error]?
105
105
 
106
+ // LinkController - Private Preview
107
+ var linkController: LinkController?
108
+ var linkControllerEmail: String?
109
+ var linkControllerPhone: String?
110
+
106
111
  var customerSheetConfiguration = CustomerSheet.Configuration()
107
112
  var customerSheet: CustomerSheet?
108
113
  var customerAdapter: StripeCustomerAdapter?
@@ -1417,6 +1422,62 @@ public class StripeSdkImpl: NSObject, UIAdaptivePresentationControllerDelegate {
1417
1422
  }
1418
1423
  }
1419
1424
 
1425
+ @objc(getWalletOwnershipChallenge:network:resolver:rejecter:)
1426
+ public func getWalletOwnershipChallenge(
1427
+ walletAddress: String,
1428
+ network: String,
1429
+ resolver resolve: @escaping RCTPromiseResolveBlock,
1430
+ rejecter reject: @escaping RCTPromiseRejectBlock
1431
+ ) {
1432
+ guard isPublishableKeyAvailable(resolve), let coordinator = requireOnrampCoordinator(resolve) else {
1433
+ return
1434
+ }
1435
+
1436
+ guard let cryptoNetwork = CryptoNetwork(rawValue: network) else {
1437
+ let errorResult = Errors.createError(ErrorType.Unknown, "Invalid network: \(network)")
1438
+ resolve(["error": errorResult["error"]!])
1439
+ return
1440
+ }
1441
+
1442
+ Task {
1443
+ do {
1444
+ let challenge = try await coordinator.getWalletOwnershipChallenge(
1445
+ walletAddress: walletAddress,
1446
+ network: cryptoNetwork
1447
+ )
1448
+ resolve(["challenge": Mappers.mapFromWalletOwnershipChallenge(challenge)])
1449
+ } catch {
1450
+ let errorResult = OnrampErrors.createFailedError(error)
1451
+ resolve(["error": errorResult["error"]!])
1452
+ }
1453
+ }
1454
+ }
1455
+
1456
+ @objc(submitWalletOwnershipSignature:signature:resolver:rejecter:)
1457
+ public func submitWalletOwnershipSignature(
1458
+ challengeId: String,
1459
+ signature: String,
1460
+ resolver resolve: @escaping RCTPromiseResolveBlock,
1461
+ rejecter reject: @escaping RCTPromiseRejectBlock
1462
+ ) {
1463
+ guard isPublishableKeyAvailable(resolve), let coordinator = requireOnrampCoordinator(resolve) else {
1464
+ return
1465
+ }
1466
+
1467
+ Task {
1468
+ do {
1469
+ let consumerWallet = try await coordinator.submitWalletOwnershipSignature(
1470
+ challengeId: challengeId,
1471
+ signature: signature
1472
+ )
1473
+ resolve(["consumerWallet": Mappers.mapFromCryptoConsumerWallet(consumerWallet)])
1474
+ } catch {
1475
+ let errorResult = OnrampErrors.createFailedError(error)
1476
+ resolve(["error": errorResult["error"]!])
1477
+ }
1478
+ }
1479
+ }
1480
+
1420
1481
  @objc(attachKycInfo:resolver:rejecter:)
1421
1482
  public func attachKycInfo(
1422
1483
  info: NSDictionary,
@@ -1518,7 +1579,7 @@ public class StripeSdkImpl: NSObject, UIAdaptivePresentationControllerDelegate {
1518
1579
  let presentingViewController = await MainActor.run {
1519
1580
  findViewControllerPresenter(from: RCTKeyWindow()?.rootViewController ?? UIViewController())
1520
1581
  }
1521
- let result = try await coordinator.presentCRSCARFDeclaration(from: presentingViewController)
1582
+ let result = try await coordinator.presentUserAttestation(from: presentingViewController)
1522
1583
  switch result {
1523
1584
  case .confirmed:
1524
1585
  resolve(["status": "Confirmed"])
package/jest/setup.js CHANGED
@@ -12,6 +12,8 @@ jest.mock('../src/specs/NativeOnrampSdkModule', () => ({
12
12
  hasLinkAccount: jest.fn(),
13
13
  registerLinkUser: jest.fn(),
14
14
  registerWalletAddress: jest.fn(),
15
+ getWalletOwnershipChallenge: jest.fn(),
16
+ submitWalletOwnershipSignature: jest.fn(),
15
17
  attachKycInfo: jest.fn(),
16
18
  presentKycInfoVerification: jest.fn(),
17
19
  updatePhoneNumber: jest.fn(),
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddToWalletButton=AddToWalletButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddToWalletButton=_interopRequireDefault(require("../specs/NativeAddToWalletButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AddToWalletButton.tsx";var _excluded=["onComplete"];function AddToWalletButton(_ref){var onComplete=_ref.onComplete,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddToWalletButton.default,Object.assign({},props,{onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);}}));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddToWalletButton=AddToWalletButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddToWalletButton=_interopRequireDefault(require("../specs/NativeAddToWalletButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AddToWalletButton.tsx";var _excluded=["onComplete"];function AddToWalletButton(_ref){var onComplete=_ref.onComplete,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddToWalletButton.default,Object.assign({},props,{onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);}}));}
2
2
  //# sourceMappingURL=AddToWalletButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddToWalletButton","_jsxRuntime","_jsxFileName","_excluded","AddToWalletButton","_ref","onComplete","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AddToWalletButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAcA,IAAAC,wBAAA,CAAAF,sBAAA,CAAAC,OAAA,sCAAuE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,wFAAAC,SAAA,gBAkEhE,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAAkC,IAA/B,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,CAAAF,SAAA,EACtD,MACE,GAAAF,WAAA,CAAAS,GAAA,EAACV,wBAAA,CAAAS,OAAuB,CAAAE,MAAA,CAAAC,MAAA,IAClBL,KAAK,EACTM,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CACdC,KAEE,QACC,CAAAR,UAAU,CAACQ,KAAK,CAACC,WAAW,CAAC,EAAC,EACpC,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddToWalletButton","_jsxRuntime","_jsxFileName","_excluded","AddToWalletButton","_ref","onComplete","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AddToWalletButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAcA,IAAAC,wBAAA,CAAAF,sBAAA,CAAAC,OAAA,sCAAuE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,qFAAAC,SAAA,gBAkEhE,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAAkC,IAA/B,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,CAAAF,SAAA,EACtD,MACE,GAAAF,WAAA,CAAAS,GAAA,EAACV,wBAAA,CAAAS,OAAuB,CAAAE,MAAA,CAAAC,MAAA,IAClBL,KAAK,EACTM,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CACdC,KAEE,QACC,CAAAR,UAAU,CAACQ,KAAK,CAACC,WAAW,CAAC,EAAC,EACpC,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddressSheet=AddressSheet;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddressSheet=_interopRequireDefault(require("../specs/NativeAddressSheet"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AddressSheet.tsx";var _excluded=["onSubmit","onError"];function AddressSheet(_ref){var onSubmit=_ref.onSubmit,onError=_ref.onError,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddressSheet.default,Object.assign({},props,{onSubmitAction:function onSubmitAction(event){return onSubmit(event.nativeEvent.result);},onErrorAction:function onErrorAction(event){return onError(event.nativeEvent.error);}}));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddressSheet=AddressSheet;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddressSheet=_interopRequireDefault(require("../specs/NativeAddressSheet"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AddressSheet.tsx";var _excluded=["onSubmit","onError"];function AddressSheet(_ref){var onSubmit=_ref.onSubmit,onError=_ref.onError,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddressSheet.default,Object.assign({},props,{onSubmitAction:function onSubmitAction(event){return onSubmit(event.nativeEvent.result);},onErrorAction:function onErrorAction(event){return onError(event.nativeEvent.error);}}));}
2
2
  //# sourceMappingURL=AddressSheet.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddressSheet","_jsxRuntime","_jsxFileName","_excluded","AddressSheet","_ref","onSubmit","onError","props","_objectWithoutProperties2","default","jsx","Object","assign","onSubmitAction","event","nativeEvent","result","onErrorAction","error"],"sourceRoot":"../../../src","sources":["components/AddressSheet.tsx"],"mappings":"8RAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAQA,IAAAC,mBAAA,CAAAF,sBAAA,CAAAC,OAAA,iCAA6D,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,mFAAAC,SAAA,wBA4DtD,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAyC,IAAtC,CAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CAAEC,OAAO,CAAAF,IAAA,CAAPE,OAAO,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,CAAAF,SAAA,EACxD,MACE,GAAAF,WAAA,CAAAU,GAAA,EAACX,mBAAA,CAAAU,OAAkB,CAAAE,MAAA,CAAAC,MAAA,IACbL,KAAK,EACTM,cAAc,CAAE,QAAhB,CAAAA,cAAcA,CAAGC,KAAK,QAAK,CAAAT,QAAQ,CAACS,KAAK,CAACC,WAAW,CAACC,MAAM,CAAC,EAAC,CAC9DC,aAAa,CAAE,QAAf,CAAAA,aAAaA,CAAGH,KAAK,QAAK,CAAAR,OAAO,CAACQ,KAAK,CAACC,WAAW,CAACG,KAAK,CAAC,EAAC,EAC5D,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddressSheet","_jsxRuntime","_jsxFileName","_excluded","AddressSheet","_ref","onSubmit","onError","props","_objectWithoutProperties2","default","jsx","Object","assign","onSubmitAction","event","nativeEvent","result","onErrorAction","error"],"sourceRoot":"../../../src","sources":["components/AddressSheet.tsx"],"mappings":"8RAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAQA,IAAAC,mBAAA,CAAAF,sBAAA,CAAAC,OAAA,iCAA6D,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,gFAAAC,SAAA,wBA4DtD,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAyC,IAAtC,CAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CAAEC,OAAO,CAAAF,IAAA,CAAPE,OAAO,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,CAAAF,SAAA,EACxD,MACE,GAAAF,WAAA,CAAAU,GAAA,EAACX,mBAAA,CAAAU,OAAkB,CAAAE,MAAA,CAAAC,MAAA,IACbL,KAAK,EACTM,cAAc,CAAE,QAAhB,CAAAA,cAAcA,CAAGC,KAAK,QAAK,CAAAT,QAAQ,CAACS,KAAK,CAACC,WAAW,CAACC,MAAM,CAAC,EAAC,CAC9DC,aAAa,CAAE,QAAf,CAAAA,aAAaA,CAAGH,KAAK,QAAK,CAAAR,OAAO,CAACQ,KAAK,CAACC,WAAW,CAACG,KAAK,CAAC,EAAC,EAC5D,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AuBECSDebitForm=AuBECSDebitForm;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAuBECSDebitForm=_interopRequireDefault(require("../specs/NativeAuBECSDebitForm"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AuBECSDebitForm.tsx";var _excluded=["onComplete","companyName","formStyle"];function AuBECSDebitForm(_ref){var onComplete=_ref.onComplete,companyName=_ref.companyName,formStyle=_ref.formStyle,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAuBECSDebitForm.default,Object.assign({onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);},companyName:companyName,formStyle:Object.assign({},formStyle)},props));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AuBECSDebitForm=AuBECSDebitForm;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAuBECSDebitForm=_interopRequireDefault(require("../specs/NativeAuBECSDebitForm"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AuBECSDebitForm.tsx";var _excluded=["onComplete","companyName","formStyle"];function AuBECSDebitForm(_ref){var onComplete=_ref.onComplete,companyName=_ref.companyName,formStyle=_ref.formStyle,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAuBECSDebitForm.default,Object.assign({onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);},companyName:companyName,formStyle:Object.assign({},formStyle)},props));}
2
2
  //# sourceMappingURL=AuBECSDebitForm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAuBECSDebitForm","_jsxRuntime","_jsxFileName","_excluded","AuBECSDebitForm","_ref","onComplete","companyName","formStyle","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AuBECSDebitForm.tsx"],"mappings":"oSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,sBAAA,CAAAF,sBAAA,CAAAC,OAAA,oCAAmE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,sFAAAC,SAAA,0CA6B5D,QAAS,CAAAC,eAAeA,CAAAC,IAAA,CAKrB,IAJR,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,SAAS,CAAAH,IAAA,CAATG,SAAS,CACNC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAN,IAAA,CAAAF,SAAA,EAER,MACE,GAAAF,WAAA,CAAAW,GAAA,EAACZ,sBAAA,CAAAW,OAAqB,CAAAE,MAAA,CAAAC,MAAA,EACpBC,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CAAGC,KAAK,QAAK,CAAAV,UAAU,CAACU,KAAK,CAACC,WAAW,CAAC,EAAC,CAC3DV,WAAW,CAAEA,WAAY,CACzBC,SAAS,CAAAK,MAAA,CAAAC,MAAA,IAAON,SAAS,CAAG,EACxBC,KAAK,CACV,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAuBECSDebitForm","_jsxRuntime","_jsxFileName","_excluded","AuBECSDebitForm","_ref","onComplete","companyName","formStyle","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AuBECSDebitForm.tsx"],"mappings":"oSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,sBAAA,CAAAF,sBAAA,CAAAC,OAAA,oCAAmE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,mFAAAC,SAAA,0CA6B5D,QAAS,CAAAC,eAAeA,CAAAC,IAAA,CAKrB,IAJR,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,SAAS,CAAAH,IAAA,CAATG,SAAS,CACNC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAN,IAAA,CAAAF,SAAA,EAER,MACE,GAAAF,WAAA,CAAAW,GAAA,EAACZ,sBAAA,CAAAW,OAAqB,CAAAE,MAAA,CAAAC,MAAA,EACpBC,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CAAGC,KAAK,QAAK,CAAAV,UAAU,CAACU,KAAK,CAACC,WAAW,CAAC,EAAC,CAC3DV,WAAW,CAAEA,WAAY,CACzBC,SAAS,CAAAK,MAAA,CAAAC,MAAA,IAAON,SAAS,CAAG,EACxBC,KAAK,CACV,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardField=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _helpers=require("../helpers");var _NativeCardField=_interopRequireWildcard(require("../specs/NativeCardField"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails"];var _this=this,_jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/CardField.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardField=exports.CardField=(0,_react.forwardRef)(function(_ref,ref){var onCardChange=_ref.onCardChange,onFocus=_ref.onFocus,onBlur=_ref.onBlur,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,autofocus=_ref.autofocus,postalCodeEnabled=_ref.postalCodeEnabled,disabled=_ref.disabled,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onCardChangeHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,validExpiryDate:card.validExpiryDate,validNumber:card.validNumber,validCVC:card.validCVC};if(card.hasOwnProperty('postalCode')){data.postalCode=card.postalCode||'';}if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onCardChange&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onCardChange==null||onCardChange(data);},[onCardChange]);var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);onFocus==null||onFocus(focusedField);}else{onBlur==null||onBlur();}},[onFocus,onBlur]);var focus=function focus(){_NativeCardField.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardField.Commands.blur(inputRef.current);};var clear=function clear(){_NativeCardField.Commands.clear(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur,clear:clear};});(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardField.default,Object.assign({ref:inputRef,onCardChange:onCardChangeHandler,onFocusChange:onFocusHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},autofocus:autofocus!=null?autofocus:false,postalCodeEnabled:postalCodeEnabled!=null?postalCodeEnabled:true,disabled:disabled!=null?disabled:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false},props));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardField=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _helpers=require("../helpers");var _NativeCardField=_interopRequireWildcard(require("../specs/NativeCardField"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails"];var _this=this,_jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/CardField.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardField=exports.CardField=(0,_react.forwardRef)(function(_ref,ref){var onCardChange=_ref.onCardChange,onFocus=_ref.onFocus,onBlur=_ref.onBlur,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,autofocus=_ref.autofocus,postalCodeEnabled=_ref.postalCodeEnabled,disabled=_ref.disabled,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onCardChangeHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,validExpiryDate:card.validExpiryDate,validNumber:card.validNumber,validCVC:card.validCVC};if(card.hasOwnProperty('postalCode')){data.postalCode=card.postalCode||'';}if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onCardChange&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onCardChange==null||onCardChange(data);},[onCardChange]);var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);onFocus==null||onFocus(focusedField);}else{onBlur==null||onBlur();}},[onFocus,onBlur]);var focus=function focus(){_NativeCardField.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardField.Commands.blur(inputRef.current);};var clear=function clear(){_NativeCardField.Commands.clear(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur,clear:clear};});(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardField.default,Object.assign({ref:inputRef,onCardChange:onCardChangeHandler,onFocusChange:onFocusHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},autofocus:autofocus!=null?autofocus:false,postalCodeEnabled:postalCodeEnabled!=null?postalCodeEnabled:true,disabled:disabled!=null?disabled:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false},props));});
2
2
  //# sourceMappingURL=CardField.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_helpers","_NativeCardField","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardField","exports","forwardRef","_ref","ref","onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails","props","_objectWithoutProperties2","inputRef","useRef","onCardChangeHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","validExpiryDate","validNumber","validCVC","postalCode","number","cvc","__DEV__","console","warn","onFocusHandler","focusedField","focusInput","current","focus","Commands","blur","clear","useImperativeHandle","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","onFocusChange","backgroundColor","borderColor","borderWidth","borderRadius","cursorColor","fontSize","placeholderColor","textColor","textErrorColor","fontFamily","expiration"],"sourceRoot":"../../../src","sources":["components/CardField.tsx"],"mappings":"qRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAaA,IAAAC,QAAA,CAAAD,OAAA,eAMA,IAAAE,gBAAA,CAAAH,uBAAA,CAAAC,OAAA,8BAGkC,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,+IAAAC,KAAA,MAAAC,YAAA,qFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CA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AEa,mBAAoB,CAClCoC,aAAa,CAAEhB,cAAe,CAC9B9B,SAAS,CAAE,CACT+C,eAAe,CAAE/C,SAAS,cAATA,SAAS,CAAE+C,eAAe,CAC3CC,WAAW,CAAEhD,SAAS,cAATA,SAAS,CAAEgD,WAAW,CACnCC,WAAW,CAAEjD,SAAS,cAATA,SAAS,CAAEiD,WAAW,CACnCC,YAAY,CAAElD,SAAS,cAATA,SAAS,CAAEkD,YAAY,CACrCC,WAAW,CAAEnD,SAAS,cAATA,SAAS,CAAEmD,WAAW,CACnCC,QAAQ,CAAEpD,SAAS,cAATA,SAAS,CAAEoD,QAAQ,CAC7BC,gBAAgB,CAAErD,SAAS,cAATA,SAAS,CAAEqD,gBAAgB,CAC7CC,SAAS,CAAEtD,SAAS,cAATA,SAAS,CAAEsD,SAAS,CAC/BC,cAAc,CAAEvD,SAAS,cAATA,SAAS,CAAEuD,cAAc,CACzCC,UAAU,CAAExD,SAAS,cAATA,SAAS,CAAEwD,UACzB,CAAE,CACFvD,YAAY,CAAE,CACZwB,MAAM,CAAExB,YAAY,cAAZA,YAAY,CAAEwB,MAAM,CAC5BgC,UAAU,CAAExD,YAAY,cAAZA,YAAY,CAAEwD,UAAU,CACpC/B,GAAG,CAAEzB,YAAY,cAAZA,YAAY,CAAEyB,GAAG,CACtBF,UAAU,CAAEvB,YAAY,cAAZA,YAAY,CAAEuB,UAC5B,CAAE,CACFtB,SAAS,CAAEA,SAAS,OAATA,SAAS,CAAI,KAAM,CAC9BC,iBAAiB,CAAEA,iBAAiB,OAAjBA,iBAAiB,CAAI,IAAK,CAC7CC,QAAQ,CAAEA,QAAQ,OAARA,QAAQ,CAAI,KAAM,CAC5BC,6BAA6B,CAAEA,6BAA6B,OAA7BA,6BAA6B,CAAI,KAAM,EAClEC,KAAK,CACV,CAAC,CAEN,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_helpers","_NativeCardField","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardField","exports","forwardRef","_ref","ref","onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails","props","_objectWithoutProperties2","inputRef","useRef","onCardChangeHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","validExpiryDate","validNumber","validCVC","postalCode","number","cvc","__DEV__","console","warn","onFocusHandler","focusedField","focusInput","current","focus","Commands","blur","clear","useImperativeHandle","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","onFocusChange","backgroundColor","borderColor","borderWidth","borderRadius","cursorColor","fontSize","placeholderColor","textColor","textErrorColor","fontFamily","expiration"],"sourceRoot":"../../../src","sources":["components/CardField.tsx"],"mappings":"qRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAaA,IAAAC,QAAA,CAAAD,OAAA,eAMA,IAAAE,gBAAA,CAAAH,uBAAA,CAAAC,OAAA,8BAGkC,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,+IAAAC,KAAA,MAAAC,YAAA,kFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAA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9B,SAAS,CAAE,CACT+C,eAAe,CAAE/C,SAAS,cAATA,SAAS,CAAE+C,eAAe,CAC3CC,WAAW,CAAEhD,SAAS,cAATA,SAAS,CAAEgD,WAAW,CACnCC,WAAW,CAAEjD,SAAS,cAATA,SAAS,CAAEiD,WAAW,CACnCC,YAAY,CAAElD,SAAS,cAATA,SAAS,CAAEkD,YAAY,CACrCC,WAAW,CAAEnD,SAAS,cAATA,SAAS,CAAEmD,WAAW,CACnCC,QAAQ,CAAEpD,SAAS,cAATA,SAAS,CAAEoD,QAAQ,CAC7BC,gBAAgB,CAAErD,SAAS,cAATA,SAAS,CAAEqD,gBAAgB,CAC7CC,SAAS,CAAEtD,SAAS,cAATA,SAAS,CAAEsD,SAAS,CAC/BC,cAAc,CAAEvD,SAAS,cAATA,SAAS,CAAEuD,cAAc,CACzCC,UAAU,CAAExD,SAAS,cAATA,SAAS,CAAEwD,UACzB,CAAE,CACFvD,YAAY,CAAE,CACZwB,MAAM,CAAExB,YAAY,cAAZA,YAAY,CAAEwB,MAAM,CAC5BgC,UAAU,CAAExD,YAAY,cAAZA,YAAY,CAAEwD,UAAU,CACpC/B,GAAG,CAAEzB,YAAY,cAAZA,YAAY,CAAEyB,GAAG,CACtBF,UAAU,CAAEvB,YAAY,cAAZA,YAAY,CAAEuB,UAC5B,CAAE,CACFtB,SAAS,CAAEA,SAAS,OAATA,SAAS,CAAI,KAAM,CAC9BC,iBAAiB,CAAEA,iBAAiB,OAAjBA,iBAAiB,CAAI,IAAK,CAC7CC,QAAQ,CAAEA,QAAQ,OAARA,QAAQ,CAAI,KAAM,CAC5BC,6BAA6B,CAAEA,6BAA6B,OAA7BA,6BAA6B,CAAI,KAAM,EAClEC,KAAK,CACV,CAAC,CAEN,CACF,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardForm=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeCardForm=_interopRequireWildcard(require("../specs/NativeCardForm"));var _helpers=require("../helpers");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onFormComplete","cardStyle","placeholders","defaultValues","autofocus","dangerouslyGetFullCardDetails","disabled"];var _this=this,_jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/CardForm.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardForm=exports.CardForm=(0,_react.forwardRef)(function(_ref,ref){var onFormComplete=_ref.onFormComplete,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,defaultValues=_ref.defaultValues,autofocus=_ref.autofocus,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,disabled=_ref.disabled,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onFormCompleteHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,country:card.country,postalCode:card.postalCode};if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onFormComplete&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onFormComplete==null||onFormComplete(data);},[onFormComplete]);var focus=function focus(){_NativeCardForm.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardForm.Commands.blur(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur};});var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);}},[]);(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardForm.default,Object.assign({ref:inputRef,onFormComplete:onFormCompleteHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},defaultValues:Object.assign({},defaultValues!=null?defaultValues:{}),onFocusChange:onFocusHandler,autofocus:autofocus!=null?autofocus:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false,disabled:disabled!=null?disabled:false,postalCodeEnabled:true},props));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardForm=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeCardForm=_interopRequireWildcard(require("../specs/NativeCardForm"));var _helpers=require("../helpers");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onFormComplete","cardStyle","placeholders","defaultValues","autofocus","dangerouslyGetFullCardDetails","disabled"];var _this=this,_jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/CardForm.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardForm=exports.CardForm=(0,_react.forwardRef)(function(_ref,ref){var onFormComplete=_ref.onFormComplete,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,defaultValues=_ref.defaultValues,autofocus=_ref.autofocus,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,disabled=_ref.disabled,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onFormCompleteHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,country:card.country,postalCode:card.postalCode};if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onFormComplete&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onFormComplete==null||onFormComplete(data);},[onFormComplete]);var focus=function focus(){_NativeCardForm.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardForm.Commands.blur(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur};});var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);}},[]);(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardForm.default,Object.assign({ref:inputRef,onFormComplete:onFormCompleteHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},defaultValues:Object.assign({},defaultValues!=null?defaultValues:{}),onFocusChange:onFocusHandler,autofocus:autofocus!=null?autofocus:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false,disabled:disabled!=null?disabled:false,postalCodeEnabled:true},props));});
2
2
  //# sourceMappingURL=CardForm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_NativeCardForm","_helpers","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardForm","exports","forwardRef","_ref","ref","onFormComplete","cardStyle","placeholders","defaultValues","autofocus","dangerouslyGetFullCardDetails","disabled","props","_objectWithoutProperties2","inputRef","useRef","onFormCompleteHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","country","postalCode","number","cvc","__DEV__","console","warn","focus","Commands","current","blur","useImperativeHandle","onFocusHandler","focusedField","focusInput","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","backgroundColor","borderColor","borderWidth","borderRadius","cursorColor","fontSize","placeholderColor","textColor","textErrorColor","fontFamily","expiration","onFocusChange","postalCodeEnabled"],"sourceRoot":"../../../src","sources":["components/CardForm.tsx"],"mappings":"oRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAaA,IAAAC,eAAA,CAAAF,uBAAA,CAAAC,OAAA,6BACA,IAAAE,QAAA,CAAAF,OAAA,eAKoB,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,0HAAAC,KAAA,MAAAC,YAAA,oFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CA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C,gBAAgB,CAAEjD,SAAS,cAATA,SAAS,CAAEiD,gBAAgB,CAC7CC,SAAS,CAAElD,SAAS,cAATA,SAAS,CAAEkD,SAAS,CAC/BC,cAAc,CAAEnD,SAAS,cAATA,SAAS,CAAEmD,cAAc,CACzCC,UAAU,CAAEpD,SAAS,cAATA,SAAS,CAAEoD,UACzB,CAAE,CACFnD,YAAY,CAAE,CACZsB,MAAM,CAAEtB,YAAY,cAAZA,YAAY,CAAEsB,MAAM,CAC5B8B,UAAU,CAAEpD,YAAY,cAAZA,YAAY,CAAEoD,UAAU,CACpC7B,GAAG,CAAEvB,YAAY,cAAZA,YAAY,CAAEuB,GAAG,CACtBF,UAAU,CAAErB,YAAY,cAAZA,YAAY,CAAEqB,UAC5B,CAAE,CACFpB,aAAa,CAAAX,MAAA,CAAAmD,MAAA,IACPxC,aAAa,OAAbA,aAAa,CAAI,CAAC,CAAC,CACvB,CACFoD,aAAa,CAAErB,cAAe,CAC9B9B,SAAS,CAAEA,SAAS,OAATA,SAAS,CAAI,KAAM,CAC9BC,6BAA6B,CAAEA,6BAA6B,OAA7BA,6BAA6B,CAAI,KAAM,CACtEC,QAAQ,CAAEA,QAAQ,OAARA,QAAQ,CAAI,KAAM,CAC5BkD,iBAAiB,OACbjD,KAAK,CACV,CAAC,CAEN,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_NativeCardForm","_helpers","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardForm","exports","forwardRef","_ref","ref","onFormComplete","cardStyle","placeholders","defaultValues","autofocus","dangerouslyGetFullCardDetails","disabled","props","_objectWithoutProperties2","inputRef","useRef","onFormCompleteHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","country","postalCode","number","cvc","__DEV__","console","warn","focus","Commands","current","blur","useImperativeHandle","onFocusHandler","focusedField","focusInput","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","backgroundColor","borderColor","borderWidth","borderRadius","cursorColor","fontSize","placeholderColor","textColor","textErrorColor","fontFamily","expiration","onFocusChange","postalCodeEnabled"],"sourceRoot":"../../../src","sources":["components/CardForm.tsx"],"mappings":"oRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAaA,IAAAC,eAAA,CAAAF,uBAAA,CAAAC,OAAA,6BACA,IAAAE,QAAA,CAAAF,OAAA,eAKoB,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,0HAAAC,KAAA,MAAAC,YAAA,iFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,EAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,CAAAc,EAAA,KAAAP,CAAA,CAAAK,GAAA,EAAAL,CAAA,CAAAM,GAAA,EAAAP,CAA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AAa,CAAErB,cAAe,CAC9B9B,SAAS,CAAEA,SAAS,OAATA,SAAS,CAAI,KAAM,CAC9BC,6BAA6B,CAAEA,6BAA6B,OAA7BA,6BAA6B,CAAI,KAAM,CACtEC,QAAQ,CAAEA,QAAQ,OAARA,QAAQ,CAAI,KAAM,CAC5BkD,iBAAiB,OACbjD,KAAK,CACV,CAAC,CAEN,CACF,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CurrencySelectorElement=CurrencySelectorElement;exports.CurrencySelectorLabelContent=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _NativeCurrencySelectorElement=_interopRequireDefault(require("../specs/NativeCurrencySelectorElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/CurrencySelectorElement.tsx";var _excluded=["checkout","disabled","appearance"];function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CurrencySelectorLabelContent=exports.CurrencySelectorLabelContent=function(CurrencySelectorLabelContent){CurrencySelectorLabelContent["Automatic"]="automatic";CurrencySelectorLabelContent["CurrencyCode"]="currencyCode";CurrencySelectorLabelContent["Amount"]="amount";return CurrencySelectorLabelContent;}({});function CurrencySelectorElement(_ref){var checkout=_ref.checkout,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,appearance=_ref.appearance,a11yProps=(0,_objectWithoutProperties2.default)(_ref,_excluded);var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),height=_useState2[0],setHeight=_useState2[1];var handleHeightChange=(0,_react.useCallback)(function(e){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(e.nativeEvent.height);},[]);return(0,_jsxRuntime.jsx)(_NativeCurrencySelectorElement.default,Object.assign({sessionKey:checkout.sessionKey,disabled:disabled,appearance:appearance,style:[styles.container,{height:height}],onHeightChange:handleHeightChange},a11yProps));}var styles=_reactNative.StyleSheet.create({container:{width:'100%'}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CurrencySelectorElement=CurrencySelectorElement;exports.CurrencySelectorLabelContent=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _NativeCurrencySelectorElement=_interopRequireDefault(require("../specs/NativeCurrencySelectorElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/CurrencySelectorElement.tsx";var _excluded=["checkout","disabled","appearance"];function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CurrencySelectorLabelContent=exports.CurrencySelectorLabelContent=function(CurrencySelectorLabelContent){CurrencySelectorLabelContent["Automatic"]="automatic";CurrencySelectorLabelContent["CurrencyCode"]="currencyCode";CurrencySelectorLabelContent["Amount"]="amount";return CurrencySelectorLabelContent;}({});function CurrencySelectorElement(_ref){var checkout=_ref.checkout,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,appearance=_ref.appearance,a11yProps=(0,_objectWithoutProperties2.default)(_ref,_excluded);var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),height=_useState2[0],setHeight=_useState2[1];var handleHeightChange=(0,_react.useCallback)(function(e){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(e.nativeEvent.height);},[]);return(0,_jsxRuntime.jsx)(_NativeCurrencySelectorElement.default,Object.assign({sessionKey:checkout.sessionKey,disabled:disabled,appearance:appearance,style:[styles.container,{height:height}],onHeightChange:handleHeightChange},a11yProps));}var styles=_reactNative.StyleSheet.create({container:{width:'100%'}});
2
2
  //# sourceMappingURL=CurrencySelectorElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_NativeCurrencySelectorElement","_interopRequireDefault","_jsxRuntime","_jsxFileName","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CurrencySelectorLabelContent","exports","CurrencySelectorElement","_ref","checkout","_ref$disabled","disabled","appearance","a11yProps","_objectWithoutProperties2","_useState","useState","_useState2","_slicedToArray2","height","setHeight","handleHeightChange","useCallback","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeEvent","jsx","assign","sessionKey","style","styles","container","onHeightChange","StyleSheet","create","width"],"sourceRoot":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AE,MACT,CACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_NativeCurrencySelectorElement","_interopRequireDefault","_jsxRuntime","_jsxFileName","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CurrencySelectorLabelContent","exports","CurrencySelectorElement","_ref","checkout","_ref$disabled","disabled","appearance","a11yProps","_objectWithoutProperties2","_useState","useState","_useState2","_slicedToArray2","height","setHeight","handleHeightChange","useCallback","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeEvent","jsx","assign","sessionKey","style","styles","container","onHeightChange","StyleSheet","create","width"],"sourceRoot":"../../../src","sources":["components/CurrencySelectorElement.tsx"],"mappings":"4bAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAQA,IAAAE,8BAAA,CAAAC,sBAAA,CAAAH,OAAA,4CAEgD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,YAAA,2FAAAC,SAAA,+CAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,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jC,CAAC,CACD,EACF,CAAC,CAED,MACE,GAAArC,WAAA,CAAA8C,GAAA,EAAChD,8BAAA,CAAAe,OAA6B,CAAAO,MAAA,CAAA2B,MAAA,EAC5BC,UAAU,CAAErB,QAAQ,CAACqB,UAAW,CAChCnB,QAAQ,CAAEA,QAAS,CACnBC,UAAU,CAAEA,UAAW,CACvBmB,KAAK,CAAE,CAACC,MAAM,CAACC,SAAS,CAAE,CAAEd,MAAM,CAANA,MAAO,CAAC,CAAE,CACtCe,cAAc,CAAEb,kBAAmB,EAC/BR,SAAS,CACd,CAAC,CAEN,CAEA,GAAM,CAAAmB,MAAM,CAAGG,uBAAU,CAACC,MAAM,CAAC,CAC/BH,SAAS,CAAE,CACTI,KAAK,CAAE,MACT,CACF,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodMessagingElement=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _NativePaymentMethodMessagingElement=_interopRequireDefault(require("../specs/NativePaymentMethodMessagingElement"));var _events=require("../events");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["appearance","configuration","onStateChange"];var _this=this,_jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/PaymentMethodMessagingElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var PaymentMethodMessagingElement=exports.PaymentMethodMessagingElement=function PaymentMethodMessagingElement(_ref){var appearance=_ref.appearance,configuration=_ref.configuration,onStateChange=_ref.onStateChange,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var viewRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(),_useState2=(0,_slicedToArray2.default)(_useState,2),height=_useState2[0],setHeight=_useState2[1];(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('paymentMethodMessagingElementDidUpdateHeight',function(_ref2){var h=_ref2.height;_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('paymentMethodMessagingElementConfigureResult',function(_ref3){var s=_ref3.status;var state;if(s==='loaded'){state={status:'loaded'};}else if(s==='loading'){state={status:'loading'};}else if(s==='no_content'){state={status:'no_content'};}else{state={status:'failed',error:new Error('Failed to configure payment method messaging element')};}onStateChange==null||onStateChange(state);});return function(){return sub.remove();};},[onStateChange]);return(0,_jsxRuntime.jsx)(_NativePaymentMethodMessagingElement.default,Object.assign({appearance:appearance,style:[{width:'100%',height:height}],configuration:configuration},props,{ref:viewRef}));};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentMethodMessagingElement=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _NativePaymentMethodMessagingElement=_interopRequireDefault(require("../specs/NativePaymentMethodMessagingElement"));var _events=require("../events");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["appearance","configuration","onStateChange"];var _this=this,_jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/PaymentMethodMessagingElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var PaymentMethodMessagingElement=exports.PaymentMethodMessagingElement=function PaymentMethodMessagingElement(_ref){var appearance=_ref.appearance,configuration=_ref.configuration,onStateChange=_ref.onStateChange,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var viewRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(),_useState2=(0,_slicedToArray2.default)(_useState,2),height=_useState2[0],setHeight=_useState2[1];(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('paymentMethodMessagingElementDidUpdateHeight',function(_ref2){var h=_ref2.height;_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('paymentMethodMessagingElementConfigureResult',function(_ref3){var s=_ref3.status;var state;if(s==='loaded'){state={status:'loaded'};}else if(s==='loading'){state={status:'loading'};}else if(s==='no_content'){state={status:'no_content'};}else{state={status:'failed',error:new Error('Failed to configure payment method messaging element')};}onStateChange==null||onStateChange(state);});return function(){return sub.remove();};},[onStateChange]);return(0,_jsxRuntime.jsx)(_NativePaymentMethodMessagingElement.default,Object.assign({appearance:appearance,style:[{width:'100%',height:height}],configuration:configuration},props,{ref:viewRef}));};
2
2
  //# sourceMappingURL=PaymentMethodMessagingElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_NativePaymentMethodMessagingElement","_interopRequireDefault","_events","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PaymentMethodMessagingElement","exports","_ref","appearance","configuration","onStateChange","props","_objectWithoutProperties2","viewRef","useRef","_useState","useState","_useState2","_slicedToArray2","height","setHeight","useEffect","sub","addListener","_ref2","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","remove","_ref3","s","status","state","error","Error","jsx","assign","style","width","ref"],"sourceRoot":"../../../src","sources":["components/PaymentMethodMessagingElement.tsx"],"mappings":"qYAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAUA,IAAAE,oCAAA,CAAAC,sBAAA,CAAAH,OAAA,kDAGA,IAAAI,OAAA,CAAAJ,OAAA,cAAwC,IAAAK,WAAA,CAAAL,OAAA,0BAAAM,SAAA,oDAAAC,KAAA,MAAAC,YAAA,yGAAAT,wBAAAU,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAZ,uBAAA,UAAAA,wBAAAU,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,W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,GAAG,CAACQ,MAAM,CAAC,CAAC,GAC3B,CAAC,CAAC,CAEF,GAAAT,gBAAS,EAAC,UAAM,CAEd,GAAM,CAAAC,GAAG,CAAG,GAAAC,mBAAW,EACrB,8CAA8C,CAC9C,SAAAQ,KAAA,CAAmB,IAAR,CAAAC,CAAC,CAAAD,KAAA,CAATE,MAAM,CACP,GAAI,CAAAC,KAAyC,CAE7C,GAAIF,CAAC,GAAK,QAAQ,CAAE,CAClBE,KAAK,CAAG,CAAED,MAAM,CAAE,QAAS,CAAC,CAC9B,CAAC,IAAM,IAAID,CAAC,GAAK,SAAS,CAAE,CAC1BE,KAAK,CAAG,CAAED,MAAM,CAAE,SAAU,CAAC,CAC/B,CAAC,IAAM,IAAID,CAAC,GAAK,YAAY,CAAE,CAC7BE,KAAK,CAAG,CAAED,MAAM,CAAE,YAAa,CAAC,CAClC,CAAC,IAAM,CACLC,KAAK,CAAG,CACND,MAAM,CAAE,QAAQ,CAChBE,KAAK,CAAE,GAAI,CAAAC,KAAK,CACd,sDACF,CACF,CAAC,CACH,CACA1B,aAAa,QAAbA,aAAa,CAAGwB,KAAK,CAAC,CACxB,CACF,CAAC,CACD,MAAO,kBAAM,CAAAZ,GAAG,CAACQ,MAAM,CAAC,CAAC,GAC3B,CAAC,CAAE,CAACpB,aAAa,CAAC,CAAC,CAEnB,MACE,GAAA7B,WAAA,CAAAwD,GAAA,EAAC3D,oCAAA,CAAAiB,OAAmC,CAAAO,MAAA,CAAAoC,MAAA,EAClC9B,UAAU,CAAEA,UAAW,CACvB+B,KAAK,CAAE,CAAC,CAAEC,KAAK,CAAE,MAAM,CAAErB,MAAM,CAAEA,MAAO,CAAC,CAAE,CAC3CV,aAAa,CAAEA,aAAc,EACzBE,KAAK,EACT8B,GAAG,CAAE5B,OAAQ,EACd,CAAC,CAEN,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_NativePaymentMethodMessagingElement","_interopRequireDefault","_events","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PaymentMethodMessagingElement","exports","_ref","appearance","configuration","onStateChange","props","_objectWithoutProperties2","viewRef","useRef","_useState","useState","_useState2","_slicedToArray2","height","setHeight","useEffect","sub","addListener","_ref2","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","remove","_ref3","s","status","state","error","Error","jsx","assign","style","width","ref"],"sourceRoot":"../../../src","sources":["components/PaymentMethodMessagingElement.tsx"],"mappings":"qYAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAUA,IAAAE,oCAAA,CAAAC,sBAAA,CAAAH,OAAA,kDAGA,IAAAI,OAAA,CAAAJ,OAAA,cAAwC,IAAAK,WAAA,CAAAL,OAAA,0BAAAM,SAAA,oDAAAC,KAAA,MAAAC,YAAA,sGAAAT,wBAAAU,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAZ,uBAAA,UAAAA,wBAAAU,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,C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AM,CAEd,GAAM,CAAAC,GAAG,CAAG,GAAAC,mBAAW,EACrB,8CAA8C,CAC9C,SAAAQ,KAAA,CAAmB,IAAR,CAAAC,CAAC,CAAAD,KAAA,CAATE,MAAM,CACP,GAAI,CAAAC,KAAyC,CAE7C,GAAIF,CAAC,GAAK,QAAQ,CAAE,CAClBE,KAAK,CAAG,CAAED,MAAM,CAAE,QAAS,CAAC,CAC9B,CAAC,IAAM,IAAID,CAAC,GAAK,SAAS,CAAE,CAC1BE,KAAK,CAAG,CAAED,MAAM,CAAE,SAAU,CAAC,CAC/B,CAAC,IAAM,IAAID,CAAC,GAAK,YAAY,CAAE,CAC7BE,KAAK,CAAG,CAAED,MAAM,CAAE,YAAa,CAAC,CAClC,CAAC,IAAM,CACLC,KAAK,CAAG,CACND,MAAM,CAAE,QAAQ,CAChBE,KAAK,CAAE,GAAI,CAAAC,KAAK,CACd,sDACF,CACF,CAAC,CACH,CACA1B,aAAa,QAAbA,aAAa,CAAGwB,KAAK,CAAC,CACxB,CACF,CAAC,CACD,MAAO,kBAAM,CAAAZ,GAAG,CAACQ,MAAM,CAAC,CAAC,GAC3B,CAAC,CAAE,CAACpB,aAAa,CAAC,CAAC,CAEnB,MACE,GAAA7B,WAAA,CAAAwD,GAAA,EAAC3D,oCAAA,CAAAiB,OAAmC,CAAAO,MAAA,CAAAoC,MAAA,EAClC9B,UAAU,CAAEA,UAAW,CACvB+B,KAAK,CAAE,CAAC,CAAEC,KAAK,CAAE,MAAM,CAAErB,MAAM,CAAEA,MAAO,CAAC,CAAE,CAC3CV,aAAa,CAAEA,aAAc,EACzBE,KAAK,EACT8B,GAAG,CAAE5B,OAAQ,EACd,CAAC,CAEN,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PlatformPayButton=PlatformPayButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _PlatformPay=require("../types/PlatformPay");var _NativeApplePayButton=_interopRequireDefault(require("../specs/NativeApplePayButton"));var _NativeGooglePayButton=_interopRequireDefault(require("../specs/NativeGooglePayButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/PlatformPayButton.tsx";var _excluded=["type","appearance","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style"];function PlatformPayButton(_ref){var _ref$type=_ref.type,type=_ref$type===void 0?_PlatformPay.ButtonType.Default:_ref$type,_ref$appearance=_ref.appearance,appearance=_ref$appearance===void 0?_PlatformPay.ButtonStyle.Automatic:_ref$appearance,onPress=_ref.onPress,disabled=_ref.disabled,borderRadius=_ref.borderRadius,onShippingMethodSelected=_ref.onShippingMethodSelected,onShippingContactSelected=_ref.onShippingContactSelected,onCouponCodeEntered=_ref.onCouponCodeEntered,setOrderTracking=_ref.setOrderTracking,style=_ref.style,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var shippingMethodCallback=onShippingMethodSelected?function(value){onShippingMethodSelected&&onShippingMethodSelected(value.nativeEvent);}:undefined;var shippingContactCallback=onShippingContactSelected?function(value){onShippingContactSelected(value.nativeEvent);}:undefined;var couponCodeCallback=onCouponCodeEntered?function(value){onCouponCodeEntered&&onCouponCodeEntered(value.nativeEvent);}:undefined;var orderTrackingCallback=setOrderTracking?function(){setOrderTracking(_NativeStripeSdkModule.default.configureOrderTracking);}:undefined;var callbackProps={onShippingMethodSelectedAction:shippingMethodCallback,onShippingContactSelectedAction:shippingContactCallback,onCouponCodeEnteredAction:couponCodeCallback,onOrderTrackingAction:orderTrackingCallback,hasShippingMethodCallback:!!onShippingMethodSelected,hasShippingContactCallback:!!onShippingContactSelected,hasCouponCodeCallback:!!onCouponCodeEntered,hasOrderTrackingCallback:!!setOrderTracking};return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{disabled:disabled,activeOpacity:disabled?0.3:1,onPress:onPress,style:[disabled?styles.disabled:styles.notDisabled,style],children:_reactNative.Platform.OS==='ios'?(0,_jsxRuntime.jsx)(_NativeApplePayButton.default,Object.assign({type:type,buttonStyle:appearance,buttonBorderRadius:borderRadius,disabled:disabled!=null?disabled:false,style:styles.nativeButtonStyle},callbackProps,props)):(0,_jsxRuntime.jsx)(_NativeGooglePayButton.default,Object.assign({type:type,appearance:appearance,borderRadius:borderRadius,style:styles.nativeButtonStyle},props))});}var styles=_reactNative.StyleSheet.create({disabled:{flex:0,opacity:0.4},notDisabled:{flex:0},nativeButtonStyle:{flex:1}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PlatformPayButton=PlatformPayButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _PlatformPay=require("../types/PlatformPay");var _NativeApplePayButton=_interopRequireDefault(require("../specs/NativeApplePayButton"));var _NativeGooglePayButton=_interopRequireDefault(require("../specs/NativeGooglePayButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/PlatformPayButton.tsx";var _excluded=["type","appearance","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style"];function PlatformPayButton(_ref){var _ref$type=_ref.type,type=_ref$type===void 0?_PlatformPay.ButtonType.Default:_ref$type,_ref$appearance=_ref.appearance,appearance=_ref$appearance===void 0?_PlatformPay.ButtonStyle.Automatic:_ref$appearance,onPress=_ref.onPress,disabled=_ref.disabled,borderRadius=_ref.borderRadius,onShippingMethodSelected=_ref.onShippingMethodSelected,onShippingContactSelected=_ref.onShippingContactSelected,onCouponCodeEntered=_ref.onCouponCodeEntered,setOrderTracking=_ref.setOrderTracking,style=_ref.style,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var shippingMethodCallback=onShippingMethodSelected?function(value){onShippingMethodSelected&&onShippingMethodSelected(value.nativeEvent);}:undefined;var shippingContactCallback=onShippingContactSelected?function(value){onShippingContactSelected(value.nativeEvent);}:undefined;var couponCodeCallback=onCouponCodeEntered?function(value){onCouponCodeEntered&&onCouponCodeEntered(value.nativeEvent);}:undefined;var orderTrackingCallback=setOrderTracking?function(){setOrderTracking(_NativeStripeSdkModule.default.configureOrderTracking);}:undefined;var callbackProps={onShippingMethodSelectedAction:shippingMethodCallback,onShippingContactSelectedAction:shippingContactCallback,onCouponCodeEnteredAction:couponCodeCallback,onOrderTrackingAction:orderTrackingCallback,hasShippingMethodCallback:!!onShippingMethodSelected,hasShippingContactCallback:!!onShippingContactSelected,hasCouponCodeCallback:!!onCouponCodeEntered,hasOrderTrackingCallback:!!setOrderTracking};return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{disabled:disabled,activeOpacity:disabled?0.3:1,onPress:onPress,style:[disabled?styles.disabled:styles.notDisabled,style],children:_reactNative.Platform.OS==='ios'?(0,_jsxRuntime.jsx)(_NativeApplePayButton.default,Object.assign({type:type,buttonStyle:appearance,buttonBorderRadius:borderRadius,disabled:disabled!=null?disabled:false,style:styles.nativeButtonStyle},callbackProps,props)):(0,_jsxRuntime.jsx)(_NativeGooglePayButton.default,Object.assign({type:type,appearance:appearance,borderRadius:borderRadius,style:styles.nativeButtonStyle},props))});}var styles=_reactNative.StyleSheet.create({disabled:{flex:0,opacity:0.4},notDisabled:{flex:0},nativeButtonStyle:{flex:1}});
2
2
  //# sourceMappingURL=PlatformPayButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_NativeStripeSdkModule","_PlatformPay","_NativeApplePayButton","_NativeGooglePayButton","_jsxRuntime","_jsxFileName","_excluded","PlatformPayButton","_ref","_ref$type","type","ButtonType","Default","_ref$appearance","appearance","ButtonStyle","Automatic","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style","props","_objectWithoutProperties2","default","shippingMethodCallback","value","nativeEvent","undefined","shippingContactCallback","couponCodeCallback","orderTrackingCallback","NativeStripeSdk","configureOrderTracking","callbackProps","onShippingMethodSelectedAction","onShippingContactSelectedAction","onCouponCodeEnteredAction","onOrderTrackingAction","hasShippingMethodCallback","hasShippingContactCallback","hasCouponCodeCallback","hasOrderTrackingCallback","jsx","TouchableOpacity","activeOpacity","styles","notDisabled","children","Platform","OS","Object","assign","buttonStyle","buttonBorderRadius","nativeButtonStyle","StyleSheet","create","flex","opacity"],"sourceRoot":"../../../src","sources":["components/PlatformPayButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASA,IAAAE,sBAAA,CAAAH,sBAAA,CAAAC,OAAA,oCACA,IAAAG,YAAA,CAAAH,OAAA,yBAMA,IAAAI,qBAAA,CAAAL,sBAAA,CAAAC,OAAA,mCACA,IAAAK,sBAAA,CAAAN,sBAAA,CAAAC,OAAA,oCAAmE,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,YAAA,wFAAAC,SAAA,mKA4E5D,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAYvB,KAAAC,SAAA,CAAAD,IAAA,CAXRE,IAAI,CAAJA,IAAI,CAAAD,SAAA,UAAGE,uBAAU,CAACC,OAAO,CAAAH,SAAA,CAAAI,eAAA,CAAAL,IAAA,CACzBM,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAGE,wBAAW,CAACC,SAAS,CAAAH,eAAA,CAClCI,OAAO,CAAAT,IAAA,CAAPS,OAAO,CACPC,QAAQ,CAAAV,IAAA,CAARU,QAAQ,CACRC,YAAY,CAAAX,IAAA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PlatformPay","_NativeApplePayButton","_NativeGooglePayButton","_jsxRuntime","_jsxFileName","_excluded","PlatformPayButton","_ref","_ref$type","type","ButtonType","Default","_ref$appearance","appearance","ButtonStyle","Automatic","onPress","disabled","borderRadius","onShippingMethodSelected","onShippingContactSelected","onCouponCodeEntered","setOrderTracking","style","props","_objectWithoutProperties2","default","shippingMethodCallback","value","nativeEvent","undefined","shippingContactCallback","couponCodeCallback","orderTrackingCallback","NativeStripeSdk","configureOrderTracking","callbackProps","onShippingMethodSelectedAction","onShippingContactSelectedAction","onCouponCodeEnteredAction","onOrderTrackingAction","hasShippingMethodCallback","hasShippingContactCallback","hasCouponCodeCallback","hasOrderTrackingCallback","jsx","TouchableOpacity","activeOpacity","styles","notDisabled","children","Platform","OS","Object","assign","buttonStyle","buttonBorderRadius","nativeButtonStyle","StyleSheet","create","flex","opacity"],"sourceRoot":"../../../src","sources":["components/PlatformPayButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASA,IAAAE,sBAAA,CAAAH,sBAAA,CAAAC,OAAA,oCACA,IAAAG,YAAA,CAAAH,OAAA,yBAMA,IAAAI,qBAAA,CAAAL,sBAAA,CAAAC,OAAA,mCACA,IAAAK,sBAAA,CAAAN,sBAAA,CAAAC,OAAA,oCAAmE,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,YAAA,qFAAAC,SAAA,mKA4E5D,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAYvB,KAAAC,SAAA,CAAAD,IAAA,CAXRE,IAAI,CAAJA,IAAI,CAAAD,SAAA,UAAGE,uBAAU,CAACC,OAAO,CAAAH,SAAA,CAAAI,eAAA,CAAAL,IAAA,CACzBM,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAGE,wBAAW,CAACC,SAAS,CAAAH,eAAA,CAClCI,OAAO,CAAAT,IAAA,CAAPS,OAAO,CACPC,QAAQ,CAAAV,IAAA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