@stripe/stripe-react-native 0.63.0 → 0.64.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 (165) hide show
  1. package/android/gradle.properties +1 -1
  2. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +22 -0
  3. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +6 -0
  4. package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +5 -5
  5. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +2 -0
  6. package/android/src/onramp/java/com/reactnativestripesdk/OnrampMappers.kt +43 -0
  7. package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +5 -1
  8. package/android/src/test/java/com/reactnativestripesdk/mappers/MappersTest.kt +33 -0
  9. package/android/src/test/java/com/reactnativestripesdk/mappers/OnrampMappersTest.kt +298 -0
  10. package/ios/AddressSheet/AddressSheetUtils.swift +23 -0
  11. package/ios/AddressSheet/AddressSheetView.swift +9 -14
  12. package/ios/Mappers.swift +74 -0
  13. package/ios/PaymentMethodFactory.swift +19 -0
  14. package/ios/StripeSdk-Bridging-Header.h +1 -0
  15. package/ios/StripeSdk.mm +1 -1
  16. package/ios/StripeSdkImpl.swift +38 -10
  17. package/ios/StripeSwiftInterop.h +1 -0
  18. package/jest/mock.js +2 -0
  19. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  20. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  21. package/lib/commonjs/components/AddressSheet.js +1 -1
  22. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  23. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  24. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  25. package/lib/commonjs/components/CardField.js +1 -1
  26. package/lib/commonjs/components/CardField.js.map +1 -1
  27. package/lib/commonjs/components/CardForm.js +1 -1
  28. package/lib/commonjs/components/CardForm.js.map +1 -1
  29. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  30. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  31. package/lib/commonjs/components/StripeContainer.js +1 -1
  32. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  33. package/lib/commonjs/components/StripeProvider.js +1 -1
  34. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  35. package/lib/commonjs/connect/Components.js +1 -1
  36. package/lib/commonjs/connect/Components.js.map +1 -1
  37. package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
  38. package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
  39. package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
  40. package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
  41. package/lib/commonjs/connect/ModalCloseButton.js +1 -1
  42. package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
  43. package/lib/commonjs/connect/NavigationBar.js +1 -1
  44. package/lib/commonjs/connect/NavigationBar.js.map +1 -1
  45. package/lib/commonjs/connect/testUtils.js +1 -1
  46. package/lib/commonjs/connect/testUtils.js.map +1 -1
  47. package/lib/commonjs/events.js +1 -1
  48. package/lib/commonjs/events.js.map +1 -1
  49. package/lib/commonjs/functions.js +1 -1
  50. package/lib/commonjs/functions.js.map +1 -1
  51. package/lib/commonjs/helpers.js +1 -1
  52. package/lib/commonjs/hooks/useOnramp.js +1 -1
  53. package/lib/commonjs/hooks/useOnramp.js.map +1 -1
  54. package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
  55. package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
  56. package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
  57. package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
  58. package/lib/commonjs/specs/NativeCardField.js +1 -1
  59. package/lib/commonjs/specs/NativeCardField.js.map +1 -1
  60. package/lib/commonjs/specs/NativeCardForm.js +1 -1
  61. package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
  62. package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
  63. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
  64. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  65. package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
  66. package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
  67. package/lib/commonjs/specs/NativeOnrampSdkModule.js +1 -1
  68. package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +1 -1
  69. package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
  70. package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
  71. package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
  72. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  73. package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
  74. package/lib/commonjs/types/Onramp.js.map +1 -1
  75. package/lib/commonjs/types/PaymentIntent.js.map +1 -1
  76. package/lib/module/components/AddToWalletButton.js +1 -1
  77. package/lib/module/components/AddToWalletButton.js.map +1 -1
  78. package/lib/module/components/AddressSheet.js +1 -1
  79. package/lib/module/components/AddressSheet.js.map +1 -1
  80. package/lib/module/components/AuBECSDebitForm.js +1 -1
  81. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  82. package/lib/module/components/CardField.js +1 -1
  83. package/lib/module/components/CardField.js.map +1 -1
  84. package/lib/module/components/CardForm.js +1 -1
  85. package/lib/module/components/CardForm.js.map +1 -1
  86. package/lib/module/components/PlatformPayButton.js +1 -1
  87. package/lib/module/components/PlatformPayButton.js.map +1 -1
  88. package/lib/module/components/StripeContainer.js +1 -1
  89. package/lib/module/components/StripeContainer.js.map +1 -1
  90. package/lib/module/components/StripeProvider.js +1 -1
  91. package/lib/module/components/StripeProvider.js.map +1 -1
  92. package/lib/module/connect/Components.js +1 -1
  93. package/lib/module/connect/Components.js.map +1 -1
  94. package/lib/module/connect/ConnectComponentsProvider.js +1 -1
  95. package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
  96. package/lib/module/connect/EmbeddedComponent.js +1 -1
  97. package/lib/module/connect/EmbeddedComponent.js.map +1 -1
  98. package/lib/module/connect/ModalCloseButton.js +1 -1
  99. package/lib/module/connect/ModalCloseButton.js.map +1 -1
  100. package/lib/module/connect/NavigationBar.js +1 -1
  101. package/lib/module/connect/NavigationBar.js.map +1 -1
  102. package/lib/module/connect/testUtils.js +1 -1
  103. package/lib/module/connect/testUtils.js.map +1 -1
  104. package/lib/module/events.js +1 -1
  105. package/lib/module/events.js.map +1 -1
  106. package/lib/module/functions.js +1 -1
  107. package/lib/module/functions.js.map +1 -1
  108. package/lib/module/helpers.js +1 -1
  109. package/lib/module/hooks/useOnramp.js +1 -1
  110. package/lib/module/hooks/useOnramp.js.map +1 -1
  111. package/lib/module/specs/NativeAddToWalletButton.js +1 -1
  112. package/lib/module/specs/NativeAddressSheet.js +1 -1
  113. package/lib/module/specs/NativeApplePayButton.js +1 -1
  114. package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
  115. package/lib/module/specs/NativeCardField.js +1 -1
  116. package/lib/module/specs/NativeCardField.js.map +1 -1
  117. package/lib/module/specs/NativeCardForm.js +1 -1
  118. package/lib/module/specs/NativeCardForm.js.map +1 -1
  119. package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
  120. package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
  121. package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  122. package/lib/module/specs/NativeGooglePayButton.js +1 -1
  123. package/lib/module/specs/NativeNavigationBar.js +1 -1
  124. package/lib/module/specs/NativeOnrampSdkModule.js +1 -1
  125. package/lib/module/specs/NativeOnrampSdkModule.js.map +1 -1
  126. package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
  127. package/lib/module/specs/NativeStripeContainer.js +1 -1
  128. package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
  129. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  130. package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
  131. package/lib/module/types/Onramp.js.map +1 -1
  132. package/lib/module/types/PaymentIntent.js.map +1 -1
  133. package/lib/typescript/src/connect/testUtils.d.ts +4 -0
  134. package/lib/typescript/src/connect/testUtils.d.ts.map +1 -1
  135. package/lib/typescript/src/events.d.ts.map +1 -1
  136. package/lib/typescript/src/functions.d.ts +2 -0
  137. package/lib/typescript/src/functions.d.ts.map +1 -1
  138. package/lib/typescript/src/hooks/useOnramp.d.ts +8 -3
  139. package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
  140. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +1 -1
  141. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +1 -1
  142. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +3 -1
  143. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
  144. package/lib/typescript/src/types/NextAction.d.ts +8 -1
  145. package/lib/typescript/src/types/NextAction.d.ts.map +1 -1
  146. package/lib/typescript/src/types/Onramp.d.ts +40 -1
  147. package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
  148. package/lib/typescript/src/types/PaymentIntent.d.ts +11 -1
  149. package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -1
  150. package/lib/typescript/src/types/PaymentMethod.d.ts +10 -2
  151. package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -1
  152. package/package.json +1 -1
  153. package/src/components/StripeProvider.tsx +1 -1
  154. package/src/connect/testUtils.ts +2 -0
  155. package/src/events.ts +9 -3
  156. package/src/functions.ts +1 -1
  157. package/src/hooks/useOnramp.tsx +38 -23
  158. package/src/specs/NativeOnrampSdkModule.ts +1 -1
  159. package/src/specs/NativeStripeSdkModule.ts +3 -1
  160. package/src/types/NextAction.ts +9 -0
  161. package/src/types/Onramp.ts +45 -1
  162. package/src/types/PaymentIntent.ts +10 -0
  163. package/src/types/PaymentMethod.ts +9 -0
  164. package/stripe-react-native.podspec +1 -1
  165. package/android/src/main/java/com/reactnativestripesdk/FakeOnrampSdkModule.kt +0 -155
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
2
2
  //# sourceMappingURL=NativeAuBECSDebitForm.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardField.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA0CA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,yDAEkB,CAAC,CAFnBI,iCAEmB,CAAAD,QAAA,CAFnBC,iCAEmB,CAFnB,IAAAC,SAAA,CAAAL,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBM,eAEmB,CAAAD,SAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,WAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,WAEmB,CAFnBC,gBAEmB,CAFnB,CAAAC,aAEmB,CAFnB,CAAAC,gBAEmB,CAFnB,cAEkB,CAAC,CAFnBC,cAEmB,CAFnB,CAAAD,gBAEmB,CAFnB,eAEkB,EAAC,CAFnBE,eAEmB,CAAAC,MAAA,CAAAC,MAAA,EAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,WAEmB,CAFnB,IAEmB,CAFnBC,6BAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEmB,CAFnBC,UAEmB,CAFnB,IAEmB,CAFnBC,YAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,EAFnBtB,iCAEmB,CAFnB,CAAAuB,YAEmB,CAFnB,IAEmB,CAFnBC,aAEmB,CAFnB,IAEkB,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAApB,OAAA,CAAAqB,OAAA,CAFnB5B,uBAEmB,CAFnB6B,GAEmB,CAFnBxB,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAwB,QAEmB,CAAAvB,OAAA,CAAAuB,QAAA,CAFnB,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,6MACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA0CA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,yDAEkB,CAAC,CAFnBI,iCAEmB,CAAAD,QAAA,CAFnBC,iCAEmB,CAFnB,IAAAC,SAAA,CAAAL,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBM,eAEmB,CAAAD,SAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,WAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,WAEmB,CAFnBC,gBAEmB,CAFnB,CAAAC,aAEmB,CAFnB,CAAAC,gBAEmB,CAFnB,cAEkB,CAAC,CAFnBC,cAEmB,CAFnB,CAAAD,gBAEmB,CAFnB,eAEkB,EAAC,CAFnBE,eAEmB,CAAAC,MAAA,CAAAC,MAAA,EAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,WAEmB,CAFnB,IAEmB,CAFnBC,6BAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEmB,CAFnBC,UAEmB,CAFnB,IAEmB,CAFnBC,YAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,EAFnBtB,iCAEmB,CAFnB,CAAAuB,YAEmB,CAFnB,IAEmB,CAFnBC,aAEmB,CAFnB,IAEkB,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAApB,OAAA,CAAAqB,OAAA,CAFnB5B,uBAEmB,CAFnB6B,GAEmB,CAFnBxB,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAwB,QAEmB,CAAAvB,OAAA,CAAAuB,QAAA,CAFnB,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,4MACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardForm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC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opRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC,eAAgF,CAAhF,IAAAC,mBAAgF,CAAhF,UAAgF,CAAhF,IAAAC,sBAAgF,CAAAC,OAAA,CAAAD,sBAAA,CAAhF,CAAAE,eAAgF,CAAhF,UAAgF,CAAhFC,gBAAgF,CAAhF,CAAAC,cAAgF,CAAhF,CAAAC,gBAAgF,CAAhF,eAA+E,CAAC,CAAhFC,eAAgF,CAAhF,CAAAD,gBAAgF,CAAhF,gBAA+E,EAAC,CAAhFE,eAAgF,CAAAC,MAAA,CAAAC,MAAA,EAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,6BAAgF,CAAhF,IAAgF,CAAhFC,aAAgF,CAAhF,IAAgF,CAAhFC,QAAgF,CAAhF,IAAgF,CAAhFC,YAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,EAAhFrB,iCAAgF,CAAhF,CAAAsB,aAAgF,CAAhF,IAAgF,CAAhFC,cAAgF,CAAhF,IAA+E,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAnB,OAAA,CAAAoB,OAAA,CAAhF3B,uBAAgF,CAAhF4B,GAAgF,CAAhFvB,mBAAgF,CAAhF,kBAAAC,sBAAgF,EAAD,CAAC,CAAhF,IAAAuB,QAAgF,CAAAtB,OAAA,CAAAsB,QAAA,CAAhF,CAAAC,IAAgF,SAAhF,CAAAA,IAAgFA,CAAhFC,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,MAAgF,CAAhF,EAA+E,CAAC,CAAD,CAAC,CAAhFC,KAAgF,SAAhF,CAAAA,KAAgFA,CAAhFD,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,OAAgF,CAAhF,EAA+E,CAAC,CAAD,EAAC,CArChFE,OAAA,CAAAC,IAAA,2MACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
2
2
  //# sourceMappingURL=NativeConnectAccountOnboardingView.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
2
2
  //# sourceMappingURL=NativeEmbeddedPaymentElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA2BA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAL,OAAA,CAAAM,OAAA,CAFnBX,uBAEmB,CAFnBY,GAEmB,CAFnBT,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAS,QAEmB,CAAAR,OAAA,CAAAQ,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAhB,eAEmB,CAFnBa,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,EAAC,CA9BnBC,OAAA,CAAAC,IAAA,0NACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA2BA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAL,OAAA,CAAAM,OAAA,CAFnBX,uBAEmB,CAFnBY,GAEmB,CAFnBT,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAS,QAEmB,CAAAR,OAAA,CAAAQ,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAhB,eAEmB,CAFnBa,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,EAAC,CA9BnBC,OAAA,CAAAC,IAAA,yNACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
2
2
  //# sourceMappingURL=NativeGooglePayButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
2
2
  //# sourceMappingURL=NativeNavigationBar.js.map
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _default=exports.default=_reactNative.TurboModuleRegistry.getEnforcing('OnrampSdk');
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _default=exports.default=_reactNative.TurboModuleRegistry.get('OnrampSdk');
2
2
  //# sourceMappingURL=NativeOnrampSdkModule.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CA6CpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CA6CpCC,gCAAmB,CAACC,GAAG,CAAO,WAAW,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",directEventTypes:{topStateChange:{registrationName:"onStateChange"}},validAttributes:Object.assign({appearance:true,configuration:true},ConditionallyIgnoredEventHandlers({onStateChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",directEventTypes:{topStateChange:{registrationName:"onStateChange"}},validAttributes:Object.assign({appearance:true,configuration:true},ConditionallyIgnoredEventHandlers({onStateChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 3:0");
2
2
  //# sourceMappingURL=NativePaymentMethodMessagingElement.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/toluo/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
2
2
  //# sourceMappingURL=NativeStripeContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAoOpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAsOpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/toluo/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.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 EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(cfg));});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}return getElementOrThrow(elementRef).update(cfg);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/wooj/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.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 EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(cfg));});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}return getElementOrThrow(elementRef).update(cfg);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
2
2
  //# sourceMappingURL=EmbeddedPaymentElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","value","_update","_asyncToGenerator2","intentConfig","result","NativeStripeSdkModule","updateEmbeddedPaymentElement","update","_x","apply","arguments","_confirm","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","confirmationTokenHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x2","_x3","_createEmbeddedPaymentElement","configuration","setupConfirmAndSelectionHandlers","_configuration$formSh","_configuration$rowSel","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","confirmationTokenConfirmHandler","_confirmationTokenHan","_ref2","confirmationToken","confirmationTokenCreationCallback","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref3","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","isLoaded","useMemo","undefined","getElementOrThrow","ref","current","Error","useEffect","active","el","sub","_ref5","opt","_ref6","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","jsx","style","width","intentConfiguration","useCallback","currentRef","promise","Promise","resolve","Commands","reject","cfg","JSON","stringify","tag","findNodeHandle"],"sourceRoot":"../../../src","sources":["types/EmbeddedPaymentElement.tsx"],"mappings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RequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","value","_update","_asyncToGenerator2","intentConfig","result","NativeStripeSdkModule","updateEmbeddedPaymentElement","update","_x","apply","arguments","_confirm","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","confirmationTokenHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x2","_x3","_createEmbeddedPaymentElement","configuration","setupConfirmAndSelectionHandlers","_configuration$formSh","_configuration$rowSel","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","confirmationTokenConfirmHandler","_confirmationTokenHan","_ref2","confirmationToken","confirmationTokenCreationCallback","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref3","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","isLoaded","useMemo","undefined","getElementOrThrow","ref","current","Error","useEffect","active","el","sub","_ref5","opt","_ref6","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","jsx","style","width","intentConfiguration","useCallback","currentRef","promise","Promise","resolve","Commands","reject","cfg","JSON","stringify","tag","findNodeHandle"],"sourceRoot":"../../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1 @@
1
- {"version":3,"names":["CryptoNetwork","exports"],"sourceRoot":"../../../src","sources":["types/Onramp.ts"],"mappings":"yFAkHY,CAAAA,aAAa,CAAAC,OAAA,CAAAD,aAAA,UAAbA,aAAa,EAAbA,aAAa,sBAAbA,aAAa,wBAAbA,aAAa,oBAAbA,aAAa,sBAAbA,aAAa,sBAAbA,aAAa,0BAAbA,aAAa,gBAAbA,aAAa,kBAAbA,aAAa,wBAAbA,aAAa,4BAAbA,aAAa,gBAAbA,aAAa,oBAAb,CAAAA,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["CryptoNetwork","exports"],"sourceRoot":"../../../src","sources":["types/Onramp.ts"],"mappings":"yFA2JY,CAAAA,aAAa,CAAAC,OAAA,CAAAD,aAAA,UAAbA,aAAa,EAAbA,aAAa,sBAAbA,aAAa,wBAAbA,aAAa,oBAAbA,aAAa,sBAAbA,aAAa,sBAAbA,aAAa,0BAAbA,aAAa,gBAAbA,aAAa,kBAAbA,aAAa,wBAAbA,aAAa,4BAAbA,aAAa,gBAAbA,aAAa,oBAAb,CAAAA,aAAa","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["Status","exports"],"sourceRoot":"../../../src","sources":["types/PaymentIntent.ts"],"mappings":"kFAsEY,CAAAA,MAAM,CAAAC,OAAA,CAAAD,MAAA,UAANA,MAAM,EAANA,MAAM,0BAANA,MAAM,kDAANA,MAAM,gDAANA,MAAM,wBAANA,MAAM,4BAANA,MAAM,oCAANA,MAAM,sCAANA,MAAM,4BAAN,CAAAA,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["Status","exports"],"sourceRoot":"../../../src","sources":["types/PaymentIntent.ts"],"mappings":"kFAuEY,CAAAA,MAAM,CAAAC,OAAA,CAAAD,MAAA,UAANA,MAAM,EAANA,MAAM,0BAANA,MAAM,kDAANA,MAAM,gDAANA,MAAM,wBAANA,MAAM,4BAANA,MAAM,oCAANA,MAAM,sCAANA,MAAM,4BAAN,CAAAA,MAAM","ignoreList":[]}
@@ -16,6 +16,8 @@ export declare const mockNativeConstants: {
16
16
  deviceType: string;
17
17
  appName: string;
18
18
  appVersion: string;
19
+ isNewArchitecture: boolean;
20
+ reactNativeVersion: string;
19
21
  };
20
22
  };
21
23
  /**
@@ -38,6 +40,8 @@ export declare const mockCreateNativeStripeSdkMock: (additionalMethods?: Record<
38
40
  deviceType: string;
39
41
  appName: string;
40
42
  appVersion: string;
43
+ isNewArchitecture: boolean;
44
+ reactNativeVersion: string;
41
45
  };
42
46
  }, [], any>;
43
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../../src/connect/testUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAY/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,oBAAmB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;;;;;;;;;;;;;;;;;CAO3C,CAAC"}
1
+ {"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../../src/connect/testUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAc/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,oBAAmB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;;;;;;;;;;;;;;;;;;;CAO3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,iBAAiB,EAGlB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C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,CAAC,IAAI,CAAC,CAAC;IACtE,mCAAmC,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACrE,oCAAoC,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,2CAA2C,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7E,4CAA4C,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9E,4CAA4C,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/E,CAAC;AAEF,wBAAgB,WAAW,CAAC,MAAM,SAAS,MAAM,MAAM,EACrD,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GACrC,iBAAiB,CAEnB;AASD,KAAK,cAAc,GAAG;IACpB,+BAA+B,EAAE,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,YAAY,GAAG,MAAM,cAAc,CAAC;AAEzC,wBAAgB,iBAAiB,CAAC,MAAM,SAAS,YAAY,EAC3D,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,KAAK,IAAI,GAChD,iBAAiB,CAMnB"}
@@ -88,6 +88,8 @@ export declare const Constants: {
88
88
  deviceType: string;
89
89
  appName: string;
90
90
  appVersion: string;
91
+ isNewArchitecture: boolean;
92
+ reactNativeVersion: string;
91
93
  };
92
94
  };
93
95
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/functions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,E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O,CAAC,IAAI,CAIzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QACnB,OAAO,CAAC,wBAAwB,CAEzC,CAAC;AAEJ,eAAO,MAAM,sCAAsC,GACjD,SAAS,OAAO,KACf,OAAO,CAAC,IAAI,CAOd,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Onramp, OnrampError, StripeError } from '../types';
2
- import type { Address, PlatformPay } from '../types';
2
+ import type { Address } from '../types';
3
3
  import { CryptoPaymentToken } from '../types/Onramp';
4
4
  /**
5
5
  * useOnramp hook
@@ -95,11 +95,16 @@ export declare function useOnramp(): {
95
95
  * @param platformPayParams Platform-specific parameters (required when `paymentMethod` is 'PlatformPay').
96
96
  * - iOS: provide `applePay` params
97
97
  * - Android: provide `googlePay` params
98
- * @returns Promise that resolves to an object with displayData or error
98
+ * - To receive Apple Pay billing details back as `kycInfo`, request `.name` and/or `.postalAddress`
99
+ * in `applePay.requiredBillingContactFields`
100
+ * - To receive Google Pay billing details back as `kycInfo`, ensure that the `GooglePayConfig`
101
+ * passed to `configure` has `billingAddressConfig` with `format` set to `Full` and the desired fields
102
+ * set to `true`.
103
+ * @returns Promise that resolves to an object with displayData, optional kycInfo, or error
99
104
  */
100
105
  collectPaymentMethod: {
101
106
  (paymentMethod: "Card" | "BankAccount" | "CardAndBankAccount", platformPayParams?: undefined): Promise<Onramp.CollectPaymentMethodResult>;
102
- (paymentMethod: "PlatformPay", platformPayParams: PlatformPay.PaymentMethodParams): Promise<Onramp.CollectPaymentMethodResult>;
107
+ (paymentMethod: "PlatformPay", platformPayParams: Onramp.OnrampPlatformPayParams): Promise<Onramp.CollectPaymentMethodResult>;
103
108
  };
104
109
  /**
105
110
  * Creates a crypto payment token for the payment method currently selected on the coordinator.
@@ -1 +1 @@
1
- {"version":3,"file":"useOnramp.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOnramp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,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KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC;IAsKhD;;;;;OAKG;kCAxJsB,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;IA2JjE;;;;;;OAMG;uCAzJM,kBAAkB,KACxB,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC;IA2J3C;;;;OAIG;kBAzJiC,OAAO,CAAC;QAC5C,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;KAClC,CAAC;IA0JA;;;;;;OAMG;0BA5JyB,WAAW,CAAC,WAAW,CAAC,KAAG,OAAO;EA+JjE"}
@@ -22,6 +22,6 @@ export interface Spec extends TurboModule {
22
22
  addListener: (eventType: string) => void;
23
23
  removeListeners: (count: number) => void;
24
24
  }
25
- declare const _default: Spec;
25
+ declare const _default: Spec | null;
26
26
  export default _default;
27
27
  //# sourceMappingURL=NativeOnrampSdkModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeOnrampSdkModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeOnrampSdkModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,eAAe,CACb,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9B,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACpE,gB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AAc,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,KACzC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACrC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7D,yBAAyB,CACvB,yBAAyB,EAAE,MAAM,GAChC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7C,oBAAoB,CAClB,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,YAAY,CAAC,GAAG,CAAC,GACnC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC9C,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/D,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAC3E,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACrE,eAAe,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAC3E,yBAAyB,CACvB,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAC7C,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC5C,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACrC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;;AAED,wBAA0D"}
@@ -12,7 +12,7 @@ export interface Spec extends TurboModule {
12
12
  createPaymentMethod(params: UnsafeObject<PaymentMethod.CreateParams>, options: UnsafeObject<PaymentMethod.CreateOptions>): Promise<CreatePaymentMethodResult>;
13
13
  handleNextAction(paymentIntentClientSecret: string, returnURL?: string | null): Promise<HandleNextActionResult>;
14
14
  handleNextActionForSetup(setupIntentClientSecret: string, returnURL?: string | null): Promise<HandleNextActionForSetupResult>;
15
- confirmPayment(paymentIntentClientSecret: string, params?: UnsafeObject<PaymentIntent.ConfirmParams>, options?: UnsafeObject<PaymentIntent.ConfirmOptions>): Promise<ConfirmPaymentResult>;
15
+ confirmPayment(paymentIntentClientSecret: string, params: UnsafeObject<PaymentIntent.ConfirmParams> | null, options?: UnsafeObject<PaymentIntent.ConfirmOptions>): Promise<ConfirmPaymentResult>;
16
16
  confirmSetupIntent(paymentIntentClientSecret: string, params: UnsafeObject<SetupIntent.ConfirmParams>, options: UnsafeObject<SetupIntent.ConfirmOptions>): Promise<ConfirmSetupIntentResult>;
17
17
  retrievePaymentIntent(clientSecret: string): Promise<RetrievePaymentIntentResult>;
18
18
  retrieveSetupIntent(clientSecret: string): Promise<RetrieveSetupIntentResult>;
@@ -39,6 +39,8 @@ export interface Spec extends TurboModule {
39
39
  deviceType: string;
40
40
  appName: string;
41
41
  appVersion: string;
42
+ isNewArchitecture: boolean;
43
+ reactNativeVersion: string;
42
44
  };
43
45
  };
44
46
  canAddCardToWallet(params: UnsafeObject<CanAddCardToWalletParams>): Promise<CanAddCardToWalletResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeStripeSdkModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeStripeSdkModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,gCAAgC,EAChC,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,iBAAiB,EACjB,eAAe,EACf,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAu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AG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,kBAAkB,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAExD,sCAAsC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExE,wBAAwB,CACtB,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IAEpC,oBAAoB,CAClB,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtD,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,oCAAoC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAG1D,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;;AAED,wBAAmE"}
@@ -1,4 +1,4 @@
1
- export type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | OxxoVoucherAction;
1
+ export type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | MultibancoVoucherAction | OxxoVoucherAction;
2
2
  export type VerifyWithMicrodepositsAction = {
3
3
  type: 'verifyWithMicrodeposits';
4
4
  redirectUrl: string;
@@ -26,6 +26,13 @@ export type KonbiniVoucherAction = {
26
26
  type: 'konbiniVoucher';
27
27
  voucherURL: string;
28
28
  };
29
+ export type MultibancoVoucherAction = {
30
+ type: 'multibanco';
31
+ voucherURL: string;
32
+ entity?: string;
33
+ reference?: string;
34
+ expiresAt?: number;
35
+ };
29
36
  export type OxxoVoucherAction = {
30
37
  type: 'oxxoVoucher';
31
38
  expiration: number;
@@ -1 +1 @@
1
- {"version":3,"file":"NextAction.d.ts","sourceRoot":"","sources":["../../../../src/types/NextAction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB,6BAA6B,GAC7B,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,yBAAyB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,M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M,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { Address } from './Common';
2
2
  import type { OnrampError, StripeError } from './Errors';
3
+ import type { ApplePayBaseParams, ApplePayPaymentMethodParams } from './PlatformPay';
3
4
  /**
4
5
  * Configuration used to initialize and customize the crypto onramp experience.
5
6
  *
@@ -26,7 +27,11 @@ export type GooglePayConfig = {
26
27
  merchantCountryCode: string;
27
28
  /** Merchant name displayed in the Google Pay sheet. */
28
29
  merchantName: string;
29
- /** Whether an existing payment method is required. Defaults to false. */
30
+ /** Set to true to request an email address. Defaults to false. */
31
+ isEmailRequired?: boolean;
32
+ /** Set to false if you don't support credit cards. Defaults to true. */
33
+ allowCreditCards?: boolean;
34
+ /** Whether an existing payment method is required. Defaults to true. */
30
35
  existingPaymentMethodRequired?: boolean;
31
36
  /** Billing address collection configuration. */
32
37
  billingAddressConfig?: GooglePayBillingAddressConfig;
@@ -42,6 +47,37 @@ export type GooglePayBillingAddressConfig = {
42
47
  /** Whether a phone number is required. Defaults to false. */
43
48
  isPhoneNumberRequired?: boolean;
44
49
  };
50
+ /**
51
+ * Google Pay parameters for the onramp collectPaymentMethod call.
52
+ * Only includes the fields passed to GooglePayPaymentMethodLauncher.present().
53
+ * Google Pay config (merchantCountryCode, testEnv, etc.) belongs in GooglePayConfig
54
+ * provided to configure().
55
+ */
56
+ export type OnrampGooglePayParams = {
57
+ /** ISO 4217 alphabetic currency code (e.g. "USD"). */
58
+ currencyCode: string;
59
+ /** Amount in the currency's smallest unit. */
60
+ amount: number;
61
+ /** An optional label to display with the amount. */
62
+ label?: string;
63
+ /** A unique ID that identifies a transaction attempt. Required when sending callbacks to the Google Transaction Events API. */
64
+ transactionId?: string;
65
+ };
66
+ /**
67
+ * Platform Pay parameters for the onramp collectPaymentMethod call.
68
+ */
69
+ export type OnrampPlatformPayParams = {
70
+ /**
71
+ * Google Pay parameters. Android only.
72
+ */
73
+ googlePay?: OnrampGooglePayParams;
74
+ /**
75
+ * Apple Pay parameters. iOS only.
76
+ * To receive `kycInfo` back from `collectPaymentMethod`, request Apple Pay billing
77
+ * `.name` and/or `.postalAddress` via `requiredBillingContactFields`.
78
+ */
79
+ applePay?: ApplePayBaseParams & ApplePayPaymentMethodParams;
80
+ };
45
81
  /**
46
82
  * Customization options for Link/Stripe-provided UI.
47
83
  */
@@ -241,9 +277,12 @@ export type PaymentMethodDisplayData = {
241
277
  export type CollectPaymentMethodResult = {
242
278
  /** Display data for the selected payment method. */
243
279
  displayData: PaymentMethodDisplayData;
280
+ /** Partial KYC data returned from Platform Pay billing details, when requested. */
281
+ kycInfo?: KycInfo;
244
282
  error?: undefined;
245
283
  } | {
246
284
  displayData?: undefined;
285
+ kycInfo?: undefined;
247
286
  /** Present if collection/selection failed with an error. */
248
287
  error: StripeError<OnrampError>;
249
288
  };