@stripe/stripe-react-native 0.57.1 → 0.57.2

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 (111) hide show
  1. package/README.md +0 -8
  2. package/android/.idea/AndroidProjectSystem.xml +6 -0
  3. package/android/.idea/caches/deviceStreaming.xml +1029 -0
  4. package/android/.idea/compiler.xml +6 -0
  5. package/android/.idea/gradle.xml +19 -0
  6. package/android/.idea/migrations.xml +10 -0
  7. package/android/.idea/misc.xml +10 -0
  8. package/android/.idea/runConfigurations.xml +17 -0
  9. package/android/.idea/vcs.xml +6 -0
  10. package/android/local.properties +8 -0
  11. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementView.kt +49 -0
  12. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementViewManager.kt +61 -0
  13. package/android/src/main/java/com/reactnativestripesdk/EventEmitterCompat.kt +4 -0
  14. package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerDelegate.java +3 -0
  15. package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerInterface.java +2 -0
  16. package/ios/StripeSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  17. package/ios/StripeSdk.xcodeproj/project.xcworkspace/xcuserdata/tianzhao.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  18. package/ios/StripeSdk.xcodeproj/xcuserdata/tianzhao.xcuserdatad/xcschemes/xcschememanagement.plist +19 -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/connect/Components.js +1 -1
  34. package/lib/commonjs/connect/Components.js.map +1 -1
  35. package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
  36. package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
  37. package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
  38. package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
  39. package/lib/commonjs/connect/ModalCloseButton.js +1 -1
  40. package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
  41. package/lib/commonjs/connect/NavigationBar.js +1 -1
  42. package/lib/commonjs/connect/NavigationBar.js.map +1 -1
  43. package/lib/commonjs/events.js.map +1 -1
  44. package/lib/commonjs/helpers.js +1 -1
  45. package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
  46. package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
  47. package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
  48. package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
  49. package/lib/commonjs/specs/NativeCardField.js +1 -1
  50. package/lib/commonjs/specs/NativeCardField.js.map +1 -1
  51. package/lib/commonjs/specs/NativeCardForm.js +1 -1
  52. package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
  53. package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
  54. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
  55. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  56. package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
  57. package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
  58. package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
  59. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  60. package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
  61. package/lib/module/components/AddToWalletButton.js +1 -1
  62. package/lib/module/components/AddToWalletButton.js.map +1 -1
  63. package/lib/module/components/AddressSheet.js +1 -1
  64. package/lib/module/components/AddressSheet.js.map +1 -1
  65. package/lib/module/components/AuBECSDebitForm.js +1 -1
  66. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  67. package/lib/module/components/CardField.js +1 -1
  68. package/lib/module/components/CardField.js.map +1 -1
  69. package/lib/module/components/CardForm.js +1 -1
  70. package/lib/module/components/CardForm.js.map +1 -1
  71. package/lib/module/components/PlatformPayButton.js +1 -1
  72. package/lib/module/components/PlatformPayButton.js.map +1 -1
  73. package/lib/module/components/StripeContainer.js +1 -1
  74. package/lib/module/components/StripeContainer.js.map +1 -1
  75. package/lib/module/connect/Components.js +1 -1
  76. package/lib/module/connect/Components.js.map +1 -1
  77. package/lib/module/connect/ConnectComponentsProvider.js +1 -1
  78. package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
  79. package/lib/module/connect/EmbeddedComponent.js +1 -1
  80. package/lib/module/connect/EmbeddedComponent.js.map +1 -1
  81. package/lib/module/connect/ModalCloseButton.js +1 -1
  82. package/lib/module/connect/ModalCloseButton.js.map +1 -1
  83. package/lib/module/connect/NavigationBar.js +1 -1
  84. package/lib/module/connect/NavigationBar.js.map +1 -1
  85. package/lib/module/events.js.map +1 -1
  86. package/lib/module/helpers.js +1 -1
  87. package/lib/module/specs/NativeAddToWalletButton.js +1 -1
  88. package/lib/module/specs/NativeAddressSheet.js +1 -1
  89. package/lib/module/specs/NativeApplePayButton.js +1 -1
  90. package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
  91. package/lib/module/specs/NativeCardField.js +1 -1
  92. package/lib/module/specs/NativeCardField.js.map +1 -1
  93. package/lib/module/specs/NativeCardForm.js +1 -1
  94. package/lib/module/specs/NativeCardForm.js.map +1 -1
  95. package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
  96. package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
  97. package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  98. package/lib/module/specs/NativeGooglePayButton.js +1 -1
  99. package/lib/module/specs/NativeNavigationBar.js +1 -1
  100. package/lib/module/specs/NativeStripeContainer.js +1 -1
  101. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  102. package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
  103. package/lib/typescript/src/events.d.ts +1 -0
  104. package/lib/typescript/src/events.d.ts.map +1 -1
  105. package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts +1 -0
  106. package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts.map +1 -1
  107. package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts.map +1 -1
  108. package/package.json +2 -3
  109. package/src/events.ts +1 -0
  110. package/src/specs/NativeEmbeddedPaymentElement.ts +5 -1
  111. package/src/types/EmbeddedPaymentElement.tsx +24 -3
package/README.md CHANGED
@@ -215,14 +215,6 @@ function App() {
215
215
 
216
216
  You can find more details about the `StripeProvider` component in the [API reference](https://stripe.dev/stripe-react-native/api-reference/index.html#StripeProvider).
217
217
 
218
- ##### Additional steps for webhook forwarding
219
-
220
- Certain payment methods require a [webhook listener](https://stripe.com/docs/payments/payment-intents/verifying-status#webhooks) to notify you of changes in the status. When developing locally, you can use the [Stripe CLI](https://stripe.com/docs/stripe-cli) to forward webhook events to your local dev server.
221
-
222
- - [Install the `stripe-cli`](https://stripe.com/docs/stripe-cli#install)
223
- - Run `stripe listen --forward-to localhost:4242/webhook`
224
- - The CLI will print a webhook secret (such as, `whsec_***`) to the console. Set STRIPE_WEBHOOK_SECRET to this value in your `example/.env` file.
225
-
226
218
  ## Testing
227
219
 
228
220
  This library includes a built in mock file for Jest.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AndroidProjectSystem">
4
+ <option name="providerId" value="com.android.tools.idea.GradleProjectSystem" />
5
+ </component>
6
+ </project>