@stripe/stripe-react-native 0.14.0 → 0.17.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 (281) hide show
  1. package/.editorconfig +15 -0
  2. package/.husky/pre-commit +4 -0
  3. package/CHANGELOG.md +55 -0
  4. package/android/build.gradle +1 -6
  5. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +2 -0
  6. package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +27 -6
  7. package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +34 -3
  8. package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +10 -1
  9. package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +284 -0
  10. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +17 -7
  11. package/android/src/main/java/com/reactnativestripesdk/GooglePayFragment.kt +8 -0
  12. package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +6 -2
  13. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +12 -11
  14. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +213 -367
  15. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +1 -0
  16. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +45 -28
  17. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +85 -46
  18. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.kt +1 -1
  19. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +2 -2
  20. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +1 -1
  21. package/android/src/main/java/com/reactnativestripesdk/{Errors.kt → utils/Errors.kt} +5 -1
  22. package/android/src/main/java/com/reactnativestripesdk/{Extensions.kt → utils/Extensions.kt} +12 -1
  23. package/android/src/main/java/com/reactnativestripesdk/{Mappers.kt → utils/Mappers.kt} +8 -5
  24. package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +18 -0
  25. package/android/src/main/res/{drawable-night/googlepay_button_background.xml → drawable/googlepay_button_background_dark.xml} +1 -1
  26. package/android/src/main/res/{drawable-night/googlepay_button_content.xml → drawable/googlepay_button_content_dark.xml} +0 -0
  27. package/android/src/main/res/{drawable-night/googlepay_button_overlay.xml → drawable/googlepay_button_overlay_dark.xml} +0 -0
  28. package/android/src/main/res/{drawable-night/pay_with_googlepay_button_content.xml → drawable/pay_with_googlepay_button_content_dark.xml} +0 -0
  29. package/android/src/main/res/{drawable-ar-night/pay_with_googlepay_button_content.xml → drawable-ar/pay_with_googlepay_button_content_dark.xml} +0 -0
  30. package/android/src/main/res/{drawable-bg-night/pay_with_googlepay_button_content.xml → drawable-bg/pay_with_googlepay_button_content_dark.xml} +0 -0
  31. package/android/src/main/res/{drawable-ca-night/pay_with_googlepay_button_content.xml → drawable-ca/pay_with_googlepay_button_content_dark.xml} +0 -0
  32. package/android/src/main/res/{drawable-cs-night/pay_with_googlepay_button_content.xml → drawable-cs/pay_with_googlepay_button_content_dark.xml} +0 -0
  33. package/android/src/main/res/{drawable-da-night/pay_with_googlepay_button_content.xml → drawable-da/pay_with_googlepay_button_content_dark.xml} +0 -0
  34. package/android/src/main/res/{drawable-de-night/pay_with_googlepay_button_content.xml → drawable-de/pay_with_googlepay_button_content_dark.xml} +0 -0
  35. package/android/src/main/res/{drawable-el-night/pay_with_googlepay_button_content.xml → drawable-el/pay_with_googlepay_button_content_dark.xml} +0 -0
  36. package/android/src/main/res/{drawable-es-night/pay_with_googlepay_button_content.xml → drawable-es/pay_with_googlepay_button_content_dark.xml} +0 -0
  37. package/android/src/main/res/{drawable-et-night/pay_with_googlepay_button_content.xml → drawable-et/pay_with_googlepay_button_content_dark.xml} +0 -0
  38. package/android/src/main/res/{drawable-fi-night/pay_with_googlepay_button_content.xml → drawable-fi/pay_with_googlepay_button_content_dark.xml} +0 -0
  39. package/android/src/main/res/{drawable-fr-night/pay_with_googlepay_button_content.xml → drawable-fr/pay_with_googlepay_button_content_dark.xml} +0 -0
  40. package/android/src/main/res/{drawable-night-hdpi/googlepay_button_background_image.9.png → drawable-hdpi/googlepay_button_background_image_dark.9.png} +0 -0
  41. package/android/src/main/res/{drawable-hr-night/pay_with_googlepay_button_content.xml → drawable-hr/pay_with_googlepay_button_content_dark.xml} +0 -0
  42. package/android/src/main/res/{drawable-id-night/pay_with_googlepay_button_content.xml → drawable-id/pay_with_googlepay_button_content_dark.xml} +0 -0
  43. package/android/src/main/res/{drawable-it-night/pay_with_googlepay_button_content.xml → drawable-it/pay_with_googlepay_button_content_dark.xml} +0 -0
  44. package/android/src/main/res/{drawable-ja-night/pay_with_googlepay_button_content.xml → drawable-ja/pay_with_googlepay_button_content_dark.xml} +0 -0
  45. package/android/src/main/res/{drawable-ko-night/pay_with_googlepay_button_content.xml → drawable-ko/pay_with_googlepay_button_content_dark.xml} +0 -0
  46. package/android/src/main/res/{drawable-night-mdpi/googlepay_button_background_image.9.png → drawable-mdpi/googlepay_button_background_image_dark.9.png} +0 -0
  47. package/android/src/main/res/{drawable-ms-night/pay_with_googlepay_button_content.xml → drawable-ms/pay_with_googlepay_button_content_dark.xml} +0 -0
  48. package/android/src/main/res/{drawable-nl-night/pay_with_googlepay_button_content.xml → drawable-nl/pay_with_googlepay_button_content_dark.xml} +0 -0
  49. package/android/src/main/res/{drawable-no-night/pay_with_googlepay_button_content.xml → drawable-no/pay_with_googlepay_button_content_dark.xml} +0 -0
  50. package/android/src/main/res/{drawable-pl-night/pay_with_googlepay_button_content.xml → drawable-pl/pay_with_googlepay_button_content_dark.xml} +0 -0
  51. package/android/src/main/res/{drawable-pt-night/pay_with_googlepay_button_content.xml → drawable-pt/pay_with_googlepay_button_content_dark.xml} +0 -0
  52. package/android/src/main/res/{drawable-ru-night/pay_with_googlepay_button_content.xml → drawable-ru/pay_with_googlepay_button_content_dark.xml} +0 -0
  53. package/android/src/main/res/{drawable-sk-night/pay_with_googlepay_button_content.xml → drawable-sk/pay_with_googlepay_button_content_dark.xml} +0 -0
  54. package/android/src/main/res/{drawable-sl-night/pay_with_googlepay_button_content.xml → drawable-sl/pay_with_googlepay_button_content_dark.xml} +0 -0
  55. package/android/src/main/res/{drawable-sr-night/pay_with_googlepay_button_content.xml → drawable-sr/pay_with_googlepay_button_content_dark.xml} +0 -0
  56. package/android/src/main/res/{drawable-sv-night/pay_with_googlepay_button_content.xml → drawable-sv/pay_with_googlepay_button_content_dark.xml} +0 -0
  57. package/android/src/main/res/{drawable-th-night/pay_with_googlepay_button_content.xml → drawable-th/pay_with_googlepay_button_content_dark.xml} +0 -0
  58. package/android/src/main/res/{drawable-tr-night/pay_with_googlepay_button_content.xml → drawable-tr/pay_with_googlepay_button_content_dark.xml} +0 -0
  59. package/android/src/main/res/{drawable-uk-night/pay_with_googlepay_button_content.xml → drawable-uk/pay_with_googlepay_button_content_dark.xml} +0 -0
  60. package/android/src/main/res/{drawable-night-v21/googlepay_button_background.xml → drawable-v21/googlepay_button_background_dark.xml} +1 -1
  61. package/android/src/main/res/{drawable-night-xhdpi/googlepay_button_background_image.9.png → drawable-xhdpi/googlepay_button_background_image_dark.9.png} +0 -0
  62. package/android/src/main/res/{drawable-night-xxhdpi/googlepay_button_background_image.9.png → drawable-xxhdpi/googlepay_button_background_image_dark.9.png} +0 -0
  63. package/android/src/main/res/{drawable-night-xxxhdpi/googlepay_button_background_image.9.png → drawable-xxxhdpi/googlepay_button_background_image_dark.9.png} +0 -0
  64. package/android/src/main/res/{layout-night/googlepay_button.xml → layout/googlepay_button_dark.xml} +4 -4
  65. package/android/src/main/res/{layout-night/pay_with_googlepay_button.xml → layout/pay_with_googlepay_button_dark.xml} +4 -4
  66. package/ios/ApplePayUtils.swift +159 -0
  67. package/ios/CardFormView.swift +20 -0
  68. package/ios/Errors.swift +11 -0
  69. package/ios/FinancialConnections.swift +258 -0
  70. package/ios/Mappers.swift +20 -22
  71. package/ios/PaymentMethodFactory.swift +9 -0
  72. package/ios/StripeSdk.m +10 -1
  73. package/ios/StripeSdk.swift +67 -44
  74. package/ios/Tests/ApplePayUtilsTests.swift +214 -0
  75. package/lib/commonjs/NativeStripeSdk.js.map +1 -1
  76. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  77. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  78. package/lib/commonjs/components/ApplePayButton.js +1 -1
  79. package/lib/commonjs/components/ApplePayButton.js.map +1 -1
  80. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  81. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  82. package/lib/commonjs/components/CardField.js +1 -1
  83. package/lib/commonjs/components/CardField.js.map +1 -1
  84. package/lib/commonjs/components/CardForm.js +1 -1
  85. package/lib/commonjs/components/CardForm.js.map +1 -1
  86. package/lib/commonjs/components/GooglePayButton.js +1 -1
  87. package/lib/commonjs/components/GooglePayButton.js.map +1 -1
  88. package/lib/commonjs/components/StripeContainer.js +1 -1
  89. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  90. package/lib/commonjs/components/StripeProvider.js +1 -1
  91. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  92. package/lib/commonjs/functions.js +1 -1
  93. package/lib/commonjs/functions.js.map +1 -1
  94. package/lib/commonjs/hooks/useApplePay.js +1 -1
  95. package/lib/commonjs/hooks/useApplePay.js.map +1 -1
  96. package/lib/commonjs/hooks/useConfirmPayment.js +1 -1
  97. package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
  98. package/lib/commonjs/hooks/useConfirmSetupIntent.js +1 -1
  99. package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
  100. package/lib/commonjs/hooks/useFinancialConnectionsSheet.js +2 -0
  101. package/lib/commonjs/hooks/useFinancialConnectionsSheet.js.map +1 -0
  102. package/lib/commonjs/hooks/useGooglePay.js +1 -1
  103. package/lib/commonjs/hooks/useGooglePay.js.map +1 -1
  104. package/lib/commonjs/hooks/usePaymentSheet.js +1 -1
  105. package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
  106. package/lib/commonjs/hooks/useStripe.js +1 -1
  107. package/lib/commonjs/hooks/useStripe.js.map +1 -1
  108. package/lib/commonjs/index.js +1 -1
  109. package/lib/commonjs/index.js.map +1 -1
  110. package/lib/commonjs/plugin/withStripe.js +1 -1
  111. package/lib/commonjs/plugin/withStripe.js.map +1 -1
  112. package/lib/commonjs/types/FinancialConnections.js +2 -0
  113. package/lib/commonjs/types/FinancialConnections.js.map +1 -0
  114. package/lib/commonjs/types/PaymentIntent.js.map +1 -1
  115. package/lib/commonjs/types/SetupIntent.js.map +1 -1
  116. package/lib/commonjs/types/index.js +1 -1
  117. package/lib/commonjs/types/index.js.map +1 -1
  118. package/lib/module/NativeStripeSdk.js.map +1 -1
  119. package/lib/module/components/AddToWalletButton.js +1 -1
  120. package/lib/module/components/AddToWalletButton.js.map +1 -1
  121. package/lib/module/components/ApplePayButton.js +1 -1
  122. package/lib/module/components/ApplePayButton.js.map +1 -1
  123. package/lib/module/components/AuBECSDebitForm.js +1 -1
  124. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  125. package/lib/module/components/CardField.js +1 -1
  126. package/lib/module/components/CardField.js.map +1 -1
  127. package/lib/module/components/CardForm.js +1 -1
  128. package/lib/module/components/CardForm.js.map +1 -1
  129. package/lib/module/components/GooglePayButton.js +1 -1
  130. package/lib/module/components/GooglePayButton.js.map +1 -1
  131. package/lib/module/components/StripeContainer.js +1 -1
  132. package/lib/module/components/StripeContainer.js.map +1 -1
  133. package/lib/module/components/StripeProvider.js +1 -1
  134. package/lib/module/components/StripeProvider.js.map +1 -1
  135. package/lib/module/functions.js +1 -1
  136. package/lib/module/functions.js.map +1 -1
  137. package/lib/module/hooks/useApplePay.js +1 -1
  138. package/lib/module/hooks/useApplePay.js.map +1 -1
  139. package/lib/module/hooks/useConfirmPayment.js +1 -1
  140. package/lib/module/hooks/useConfirmPayment.js.map +1 -1
  141. package/lib/module/hooks/useConfirmSetupIntent.js +1 -1
  142. package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
  143. package/lib/module/hooks/useFinancialConnectionsSheet.js +2 -0
  144. package/lib/module/hooks/useFinancialConnectionsSheet.js.map +1 -0
  145. package/lib/module/hooks/useGooglePay.js +1 -1
  146. package/lib/module/hooks/useGooglePay.js.map +1 -1
  147. package/lib/module/hooks/usePaymentSheet.js +1 -1
  148. package/lib/module/hooks/usePaymentSheet.js.map +1 -1
  149. package/lib/module/hooks/useStripe.js +1 -1
  150. package/lib/module/hooks/useStripe.js.map +1 -1
  151. package/lib/module/index.js +1 -1
  152. package/lib/module/index.js.map +1 -1
  153. package/lib/module/plugin/withStripe.js +1 -1
  154. package/lib/module/plugin/withStripe.js.map +1 -1
  155. package/lib/module/types/FinancialConnections.js +2 -0
  156. package/lib/module/types/FinancialConnections.js.map +1 -0
  157. package/lib/module/types/PaymentIntent.js.map +1 -1
  158. package/lib/module/types/SetupIntent.js.map +1 -1
  159. package/lib/module/types/index.js +1 -1
  160. package/lib/module/types/index.js.map +1 -1
  161. package/lib/typescript/src/NativeStripeSdk.d.ts +3 -1
  162. package/lib/typescript/src/components/CardForm.d.ts +1 -1
  163. package/lib/typescript/src/components/GooglePayButton.d.ts +2 -2
  164. package/lib/typescript/src/functions.d.ts +15 -1
  165. package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts +11 -0
  166. package/lib/typescript/src/hooks/useStripe.d.ts +3 -1
  167. package/lib/typescript/src/index.d.ts +1 -0
  168. package/lib/typescript/src/types/ApplePay.d.ts +31 -5
  169. package/lib/typescript/src/types/FinancialConnections.d.ts +100 -0
  170. package/lib/typescript/src/types/PaymentIntent.d.ts +1 -0
  171. package/lib/typescript/src/types/PaymentMethod.d.ts +9 -1
  172. package/lib/typescript/src/types/PaymentSheet.d.ts +17 -15
  173. package/lib/typescript/src/types/SetupIntent.d.ts +1 -0
  174. package/lib/typescript/src/types/Token.d.ts +18 -7
  175. package/lib/typescript/src/types/index.d.ts +2 -1
  176. package/package.json +11 -23
  177. package/src/NativeStripeSdk.tsx +7 -0
  178. package/src/components/CardForm.tsx +2 -2
  179. package/src/components/GooglePayButton.tsx +8 -2
  180. package/src/functions.ts +58 -0
  181. package/src/hooks/useFinancialConnectionsSheet.tsx +34 -0
  182. package/src/hooks/useStripe.tsx +21 -0
  183. package/src/index.tsx +1 -0
  184. package/src/types/ApplePay.ts +39 -6
  185. package/src/types/FinancialConnections.ts +126 -0
  186. package/src/types/PaymentIntent.ts +1 -0
  187. package/src/types/PaymentMethod.ts +11 -1
  188. package/src/types/PaymentSheet.ts +34 -36
  189. package/src/types/SetupIntent.ts +1 -0
  190. package/src/types/Token.ts +24 -7
  191. package/src/types/index.ts +2 -0
  192. package/android/.DS_Store +0 -0
  193. package/android/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  194. package/android/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  195. package/android/.gradle/7.1/fileChanges/last-build.bin +0 -0
  196. package/android/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  197. package/android/.gradle/7.1/gc.properties +0 -0
  198. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  199. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  200. package/android/.gradle/checksums/checksums.lock +0 -0
  201. package/android/.gradle/vcs-1/gc.properties +0 -0
  202. package/android/.idea/.gitignore +0 -3
  203. package/android/.idea/gradle.xml +0 -13
  204. package/android/.idea/misc.xml +0 -9
  205. package/android/.idea/modules/android.iml +0 -18
  206. package/android/.idea/modules.xml +0 -8
  207. package/android/.idea/vcs.xml +0 -6
  208. package/android/.idea/workspace.xml +0 -52
  209. package/android/local.properties +0 -8
  210. package/android/src/.DS_Store +0 -0
  211. package/android/src/androidTest/.DS_Store +0 -0
  212. package/android/src/androidTest/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxyTest.kt +0 -35
  213. package/android/src/main/res/drawable-night/googlepay_button_no_shadow_background.xml +0 -6
  214. package/android/src/main/res/drawable-night-hdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  215. package/android/src/main/res/drawable-night-mdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  216. package/android/src/main/res/drawable-night-v21/googlepay_button_no_shadow_background.xml +0 -7
  217. package/android/src/main/res/drawable-night-xhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  218. package/android/src/main/res/drawable-night-xxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  219. package/android/src/main/res/drawable-night-xxxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
  220. package/android/src/main/res/values-night/googlepay_strings.xml +0 -12
  221. package/ios/.DS_Store +0 -0
  222. package/ios/StripeSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  223. package/ios/StripeSdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  224. package/ios/StripeSdk.xcodeproj/project.xcworkspace/xcuserdata/charliecruzan.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  225. package/ios/StripeSdk.xcodeproj/xcuserdata/charliecruzan.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -22
  226. package/ios/StripeSdk.xcodeproj/xcuserdata/charliecruzan.xcuserdatad/xcschemes/xcschememanagement.plist +0 -27
  227. package/lib/typescript/e2e/buyNowPayLater.test.d.ts +0 -1
  228. package/lib/typescript/e2e/helpers.d.ts +0 -5
  229. package/lib/typescript/e2e/payments.test.d.ts +0 -1
  230. package/lib/typescript/e2e/paymentsWithRedirects.test.d.ts +0 -1
  231. package/lib/typescript/e2e/screenObject/BasicPaymentScreen.d.ts +0 -16
  232. package/lib/typescript/e2e/screenObject/HomeScreen.d.ts +0 -6
  233. package/lib/typescript/e2e/screenObject/components/BECSForm.d.ts +0 -8
  234. package/lib/typescript/e2e/screenObject/components/CardField.d.ts +0 -10
  235. package/lib/typescript/example/server/index.d.ts +0 -1
  236. package/lib/typescript/example/server/utils.d.ts +0 -11
  237. package/lib/typescript/example/src/App.d.ts +0 -45
  238. package/lib/typescript/example/src/Config.d.ts +0 -2
  239. package/lib/typescript/example/src/colors.d.ts +0 -8
  240. package/lib/typescript/example/src/components/Button.d.ts +0 -11
  241. package/lib/typescript/example/src/components/Collapse.d.ts +0 -6
  242. package/lib/typescript/example/src/components/PaymentScreen.d.ts +0 -7
  243. package/lib/typescript/example/src/helpers.d.ts +0 -1
  244. package/lib/typescript/example/src/screens/ACHPaymentScreen.d.ts +0 -1
  245. package/lib/typescript/example/src/screens/ACHSetupScreen.d.ts +0 -1
  246. package/lib/typescript/example/src/screens/AfterpayClearpayPaymentScreen.d.ts +0 -1
  247. package/lib/typescript/example/src/screens/AlipayPaymentScreen.d.ts +0 -1
  248. package/lib/typescript/example/src/screens/ApplePayScreen.d.ts +0 -1
  249. package/lib/typescript/example/src/screens/AuBECSDebitPaymentScreen.d.ts +0 -1
  250. package/lib/typescript/example/src/screens/AuBECSDebitSetupPaymentScreen.d.ts +0 -1
  251. package/lib/typescript/example/src/screens/BancontactPaymentScreen.d.ts +0 -1
  252. package/lib/typescript/example/src/screens/BancontactSetupFuturePaymentScreen.d.ts +0 -1
  253. package/lib/typescript/example/src/screens/CVCReCollectionScreen.d.ts +0 -1
  254. package/lib/typescript/example/src/screens/CreateTokenScreen.d.ts +0 -1
  255. package/lib/typescript/example/src/screens/EPSPaymentScreen.d.ts +0 -1
  256. package/lib/typescript/example/src/screens/FPXPaymentScreen.d.ts +0 -1
  257. package/lib/typescript/example/src/screens/GiropayPaymentScreen.d.ts +0 -1
  258. package/lib/typescript/example/src/screens/GooglePayScreen.d.ts +0 -1
  259. package/lib/typescript/example/src/screens/GrabPayPaymentScreen.d.ts +0 -1
  260. package/lib/typescript/example/src/screens/HomeScreen.d.ts +0 -1
  261. package/lib/typescript/example/src/screens/IdealPaymentScreen.d.ts +0 -1
  262. package/lib/typescript/example/src/screens/IdealSetupFuturePaymentScreen.d.ts +0 -1
  263. package/lib/typescript/example/src/screens/KlarnaPaymentScreen.d.ts +0 -1
  264. package/lib/typescript/example/src/screens/MultilineWebhookPaymentScreen.d.ts +0 -1
  265. package/lib/typescript/example/src/screens/NoWebhookPaymentScreen.d.ts +0 -1
  266. package/lib/typescript/example/src/screens/OxxoPaymentScreen.d.ts +0 -1
  267. package/lib/typescript/example/src/screens/P24PaymentScreen.d.ts +0 -1
  268. package/lib/typescript/example/src/screens/PayPalScreen.d.ts +0 -1
  269. package/lib/typescript/example/src/screens/PaymentResultScreen.d.ts +0 -8
  270. package/lib/typescript/example/src/screens/PaymentSheetAppearance.d.ts +0 -3
  271. package/lib/typescript/example/src/screens/PaymentsUICompleteScreen.d.ts +0 -1
  272. package/lib/typescript/example/src/screens/PaymentsUICustomScreen.d.ts +0 -1
  273. package/lib/typescript/example/src/screens/SepaPaymentScreen.d.ts +0 -1
  274. package/lib/typescript/example/src/screens/SepaSetupFuturePaymentScreen.d.ts +0 -1
  275. package/lib/typescript/example/src/screens/SetupFuturePaymentScreen.d.ts +0 -1
  276. package/lib/typescript/example/src/screens/SofortPaymentScreen.d.ts +0 -1
  277. package/lib/typescript/example/src/screens/SofortSetupFuturePaymentScreen.d.ts +0 -1
  278. package/lib/typescript/example/src/screens/WebhookPaymentScreen.d.ts +0 -1
  279. package/lib/typescript/src/plugin/__tests__/withStripe-test.d.ts +0 -1
  280. package/src/plugin/__tests__/fixtures/sample-AndroidManifest.xml +0 -24
  281. package/src/plugin/__tests__/withStripe-test.ts +0 -111
@@ -1,5 +1,3 @@
1
- export type CartSummaryItemType = 'final' | 'pending';
2
-
3
1
  export type ContactFieldsType =
4
2
  | 'emailAddress'
5
3
  | 'name'
@@ -20,7 +18,7 @@ export type AddressFields =
20
18
  export interface ShippingMethod {
21
19
  label: string;
22
20
  amount: string;
23
- type?: CartSummaryItemType;
21
+ isPending?: boolean;
24
22
  identifier: string;
25
23
  detail?: string;
26
24
  }
@@ -51,11 +49,46 @@ export interface ShippingContact {
51
49
  phoneNumber?: number;
52
50
  postalAddress: PostalAddress;
53
51
  }
54
- export interface CartSummaryItem {
52
+
53
+ export type CartSummaryItem =
54
+ | DeferredCartSummaryItem
55
+ | ImmediateCartSummaryItem
56
+ | RecurringCartSummaryItem;
57
+
58
+ export type CartSummaryItemType = 'Deferred' | 'Immediate' | 'Recurring';
59
+
60
+ /** Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */
61
+ export type DeferredCartSummaryItem = {
62
+ paymentType: 'Deferred';
63
+ /** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */
64
+ deferredDate: number;
55
65
  label: string;
56
66
  amount: string;
57
- type?: CartSummaryItemType;
58
- }
67
+ };
68
+
69
+ /** Use this type for payments that will occur immediately. */
70
+ export type ImmediateCartSummaryItem = {
71
+ paymentType: 'Immediate';
72
+ /** When creating items for estimates or charges whose final value is not yet known, set this to true. */
73
+ isPending?: boolean;
74
+ label: string;
75
+ amount: string;
76
+ };
77
+
78
+ /** Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.*/
79
+ export type RecurringCartSummaryItem = {
80
+ paymentType: 'Recurring';
81
+ /** The amount of time – in calendar units such as day, month, or year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'month' and intervalCount to 3, then the payment interval is three months.*/
82
+ intervalUnit: 'minute' | 'hour' | 'day' | 'month' | 'year';
83
+ /** The number of interval units that make up the total payment interval. For example, if you set the intervalUnit to 'month' and intervalCount to 3, then the payment interval is three months.*/
84
+ intervalCount: number;
85
+ /** The unix timestamp of the start date. Measured in seconds. */
86
+ startDate?: number;
87
+ /** The unix timestamp of the end date. Measured in seconds. */
88
+ endDate?: number;
89
+ label: string;
90
+ amount: string;
91
+ };
59
92
 
60
93
  export interface PresentParams {
61
94
  cartItems: CartSummaryItem[];
@@ -0,0 +1,126 @@
1
+ import type { BankAccount } from './Token';
2
+ import type { StripeError } from './Errors';
3
+
4
+ export type SessionResult =
5
+ | {
6
+ /** The updated Financial Connections Session object. */
7
+ session: Session;
8
+ error?: undefined;
9
+ }
10
+ | {
11
+ session?: undefined;
12
+ error: StripeError<FinancialConnectionsSheetError>;
13
+ };
14
+
15
+ export type TokenResult =
16
+ | {
17
+ /** The updated Financial Connections Session object. */
18
+ session: Session;
19
+ /** The Stripe token object associated with the bank account. */
20
+ token: BankAccountToken;
21
+ error?: undefined;
22
+ }
23
+ | {
24
+ session?: undefined;
25
+ token?: undefined;
26
+ error: StripeError<FinancialConnectionsSheetError>;
27
+ };
28
+
29
+ export type Session = {
30
+ /** A unique ID for this session. */
31
+ id: string;
32
+ /** The client secret for this session. */
33
+ clientSecret: string;
34
+ /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
35
+ livemode: boolean;
36
+ /** The accounts that were collected as part of this Session. */
37
+ accounts: Array<Account>;
38
+ };
39
+
40
+ export type BankAccountToken = {
41
+ /** Bank account details. */
42
+ bankAccount: BankAccount | null;
43
+ /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
44
+ livemode: boolean;
45
+ /** A unique ID for this token. */
46
+ id: string | null;
47
+ used: boolean;
48
+ type: 'BankAccount';
49
+ /** The UNIX timestamp (in milliseconds) of the date this token was created. */
50
+ created: number | null;
51
+ };
52
+
53
+ export type Account = {
54
+ /** A unique ID for this Financial Connections Account. */
55
+ id: string;
56
+ /** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
57
+ livemode: boolean;
58
+ displayName: string | null;
59
+ /** The current status of the account. Either active, inactive, or disconnected. */
60
+ status: AccountStatus;
61
+ institutionName: string;
62
+ last4: string | null;
63
+ /** The UNIX timestamp (in milliseconds) of the date this account was created. */
64
+ created: number;
65
+ /** The balance of this account. */
66
+ balance: Balance | null;
67
+ /** The last balance refresh. Includes the timestamp and the status. */
68
+ balanceRefresh: BalanceRefresh | null;
69
+ /** The category of this account, either cash, credit, investment, or other. */
70
+ category: Category;
71
+ /** The subcategory of this account, either checking, credit_card, line_of_credit, mortgage, savings, or other. */
72
+ subcategory: Subcategory;
73
+ /** Permissions requested for accounts collected during this session. */
74
+ permissions: Array<Permission> | null;
75
+ /** The supported payment method types for this account. */
76
+ supportedPaymentMethodTypes: Array<PaymentMethodType>;
77
+ };
78
+
79
+ export type AccountStatus = 'active' | 'inactive' | 'disconnected';
80
+
81
+ export type Category = 'cash' | 'credit' | 'investment' | 'other';
82
+
83
+ export type PaymentMethodType = 'us_bank_account' | 'link';
84
+
85
+ export type Subcategory =
86
+ | 'checking'
87
+ | 'credit_card'
88
+ | 'line_of_credit'
89
+ | 'mortgage'
90
+ | 'other'
91
+ | 'savings';
92
+
93
+ export type Permission =
94
+ | 'balances'
95
+ | 'ownership'
96
+ | 'payment_method'
97
+ | 'transactions'
98
+ | 'account_numbers';
99
+
100
+ export type Balance = {
101
+ /** The UNIX timestamp (in milliseconds) of time that the external institution calculated this balance. */
102
+ asOf: number;
103
+ /** The type of this balance, either cash or credit. */
104
+ type: BalanceType;
105
+ /** The funds available to the account holder. Typically this is the current balance less any holds. Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Each value is an integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */
106
+ cash: { available: Map<String, number> | null };
107
+ /** The credit that has been used by the account holder. Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */
108
+ credit: { used: Map<String, number> | null };
109
+ /** The balances owed to (or by) the account holder. Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */
110
+ current: Map<String, number>;
111
+ };
112
+
113
+ export type BalanceRefresh = {
114
+ status: BalanceRefreshStatus;
115
+ /** The UNIX timestamp (in milliseconds) of the time at which the last refresh attempt was initiated. */
116
+ lastAttemptedAt: number;
117
+ };
118
+
119
+ export type BalanceType = 'cash' | 'credit';
120
+
121
+ export type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
122
+
123
+ export enum FinancialConnectionsSheetError {
124
+ Failed = 'Failed',
125
+ Canceled = 'Canceled',
126
+ }
@@ -7,6 +7,7 @@ import type * as PaymentMethod from './PaymentMethod';
7
7
  export interface Result {
8
8
  id: string;
9
9
  amount: number;
10
+ /** The UNIX timestamp (in milliseconds) of the date this PaymentIntent was created. */
10
11
  created: string;
11
12
  currency: string;
12
13
  status: Status;
@@ -42,7 +42,8 @@ export type CreateParams =
42
42
  // | WeChatPayParams
43
43
  | BancontactParams
44
44
  | USBankAccountParams
45
- | PayPalParams;
45
+ | PayPalParams
46
+ | AffirmParams;
46
47
 
47
48
  export type ConfirmParams = CreateParams;
48
49
 
@@ -175,6 +176,15 @@ export interface AuBecsDebitParams {
175
176
  paymentMethodData: { formDetails: FormDetails };
176
177
  }
177
178
 
179
+ export type AffirmParams = {
180
+ paymentMethodType: 'Affirm';
181
+ paymentMethodData?: {
182
+ /** Affirm requires that shipping is present for the payment to succeed because it significantly helps with loan approval rates. Shipping details can either be provided here or via the Payment Intent- https://stripe.com/docs/api/payment_intents/create#create_payment_intent-shipping. */
183
+ shippingDetails?: ShippingDetails;
184
+ billingDetails?: BillingDetails;
185
+ };
186
+ };
187
+
178
188
  /**
179
189
  * If paymentMethodData is null, it is assumed that the bank account details have already been attached
180
190
  * via `collectBankAccountForPayment` or `collectBankAccountForSetup`.
@@ -1,20 +1,24 @@
1
1
  import type { BillingDetails } from './Common';
2
+ import type { CartSummaryItem } from './ApplePay';
2
3
 
3
- export type SetupParams = ClientSecretParams &
4
- GooglePayParams &
5
- ApplePayParams & {
6
- /** Your customer-facing business name. On Android, this is required and cannot be an empty string. */
7
- merchantDisplayName: string;
8
- customerId?: string;
9
- customerEphemeralKeySecret?: string;
10
- customFlow?: boolean;
11
- style?: 'alwaysLight' | 'alwaysDark' | 'automatic';
12
- returnURL?: string;
13
- defaultBillingDetails?: BillingDetails;
14
- allowsDelayedPaymentMethods?: boolean;
15
- } & { appearance?: AppearanceParams };
4
+ export type SetupParams = ClientSecretParams & {
5
+ /** Your customer-facing business name. On Android, this is required and cannot be an empty string. */
6
+ merchantDisplayName: string;
7
+ customerId?: string;
8
+ customerEphemeralKeySecret?: string;
9
+ customFlow?: boolean;
10
+ /** iOS only. Enable Apple Pay in the Payment Sheet by passing an ApplePayParams object. */
11
+ applePay?: ApplePayParams;
12
+ /** Android only. Enable Google Pay in the Payment Sheet by passing a GooglePayParams object. */
13
+ googlePay?: GooglePayParams;
14
+ style?: 'alwaysLight' | 'alwaysDark' | 'automatic';
15
+ returnURL?: string;
16
+ defaultBillingDetails?: BillingDetails;
17
+ allowsDelayedPaymentMethods?: boolean;
18
+ appearance?: AppearanceParams;
19
+ };
16
20
 
17
- type ClientSecretParams =
21
+ export type ClientSecretParams =
18
22
  | {
19
23
  paymentIntentClientSecret: string;
20
24
  setupIntentClientSecret?: undefined;
@@ -24,29 +28,23 @@ type ClientSecretParams =
24
28
  paymentIntentClientSecret?: undefined;
25
29
  };
26
30
 
27
- type ApplePayParams =
28
- | {
29
- applePay?: true;
30
- merchantCountryCode: string;
31
- }
32
- | {
33
- applePay?: false;
34
- merchantCountryCode?: string;
35
- };
31
+ export type ApplePayParams = {
32
+ /** The two-letter ISO 3166 code of the country of your business, e.g. "US" */
33
+ merchantCountryCode: string;
34
+ /**
35
+ * An array of CartSummaryItem item objects that summarize the amount of the payment. If you're using a SetupIntent
36
+ * for a recurring payment, you should set this to display the amount you intend to charge. */
37
+ paymentSummaryItems?: CartSummaryItem[];
38
+ };
36
39
 
37
- type GooglePayParams =
38
- | {
39
- googlePay?: true;
40
- merchantCountryCode: string;
41
- currencyCode?: string;
42
- testEnv?: boolean;
43
- }
44
- | {
45
- googlePay?: false;
46
- merchantCountryCode?: string;
47
- currencyCode?: string;
48
- testEnv?: boolean;
49
- };
40
+ export type GooglePayParams = {
41
+ /** The two-letter ISO 3166 code of the country of your business, e.g. "US" */
42
+ merchantCountryCode: string;
43
+ /** The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent. */
44
+ currencyCode?: string;
45
+ /** Whether or not to use the Google Pay test environment. Set to `true` until you have applied for and been granted access to the Production environment. */
46
+ testEnv?: boolean;
47
+ };
50
48
 
51
49
  /**
52
50
  * Used to customize the appearance of your PaymentSheet
@@ -6,6 +6,7 @@ export interface Result {
6
6
  id: string;
7
7
  clientSecret: string;
8
8
  lastSetupError: LastPaymentError | null;
9
+ /** The UNIX timestamp (in milliseconds) of the date this Setup Intent was created. */
9
10
  created: string | null;
10
11
  livemode: boolean;
11
12
  paymentMethodId: string | null;
@@ -20,6 +20,7 @@ export type Type =
20
20
 
21
21
  export interface Result {
22
22
  id: string;
23
+ /** The UNIX timestamp (in milliseconds) of the date this token was created. */
23
24
  created: string;
24
25
  type: Type;
25
26
  used: boolean;
@@ -29,15 +30,31 @@ export interface Result {
29
30
  }
30
31
 
31
32
  export interface BankAccount {
32
- bankName: string;
33
- accountHolderName: string;
34
- accountHolderType: BankAcccountHolderType;
35
- currency: string;
36
- country: string;
37
- routingNumber: string;
38
- status: 'Errored' | 'New' | 'Validated' | 'VerificationFailed' | 'Verified';
33
+ /** A unique ID for this bank account. */
34
+ id: string;
35
+ /** The name of the associated bank. */
36
+ bankName: string | null;
37
+ /** The name of the person or business that owns the bank account. This field is required when attaching the bank account to a Customer object. */
38
+ accountHolderName: string | null;
39
+ /** The type of entity that holds the account. */
40
+ accountHolderType: BankAcccountHolderType | null;
41
+ /** The currency the bank account is in. This must be a country/currency pairing that Stripe supports. */
42
+ currency: string | null;
43
+ /** The country in which the bank account is located. */
44
+ country: string | null;
45
+ routingNumber: string | null;
46
+ status: BankAccountStatus | null;
47
+ fingerprint: string | null;
48
+ last4: string | null;
39
49
  }
40
50
 
51
+ export type BankAccountStatus =
52
+ | 'Errored'
53
+ | 'New'
54
+ | 'Validated'
55
+ | 'VerificationFailed'
56
+ | 'Verified';
57
+
41
58
  export interface Card {
42
59
  country: string;
43
60
  brand: CardBrand;
@@ -25,6 +25,7 @@ import * as AuBECSDebitFormComponent from './components/AuBECSDebitFormComponent
25
25
  import * as CardFieldInput from './components/CardFieldInput';
26
26
  import * as CardFormView from './components/CardFormView';
27
27
  import * as Token from './Token';
28
+ import * as FinancialConnections from './FinancialConnections';
28
29
 
29
30
  export {
30
31
  ApplePay,
@@ -39,6 +40,7 @@ export {
39
40
  CardFieldInput,
40
41
  CardFormView,
41
42
  Token,
43
+ FinancialConnections,
42
44
  };
43
45
 
44
46
  export * from './Errors';
package/android/.DS_Store DELETED
Binary file
File without changes
@@ -1,2 +0,0 @@
1
- #Tue Jun 21 15:53:42 EDT 2022
2
- gradle.version=7.1
File without changes
@@ -1,3 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GradleMigrationSettings" migrationVersion="1" />
4
- <component name="GradleSettings">
5
- <option name="linkedExternalProjectsSettings">
6
- <GradleProjectSettings>
7
- <option name="testRunner" value="GRADLE" />
8
- <option name="distributionType" value="DEFAULT_WRAPPED" />
9
- <option name="externalProjectPath" value="$PROJECT_DIR$" />
10
- </GradleProjectSettings>
11
- </option>
12
- </component>
13
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
4
- <output url="file://$PROJECT_DIR$/build/classes" />
5
- </component>
6
- <component name="ProjectType">
7
- <option name="id" value="Android" />
8
- </component>
9
- </project>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id=":" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="android-gradle" name="Android-Gradle">
5
- <configuration>
6
- <option name="GRADLE_PROJECT_PATH" value=":" />
7
- <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" />
8
- <option name="LAST_KNOWN_AGP_VERSION" />
9
- </configuration>
10
- </facet>
11
- </component>
12
- <component name="NewModuleRootManager" inherit-compiler-output="true">
13
- <exclude-output />
14
- <content url="file://$MODULE_DIR$/../.." />
15
- <orderEntry type="inheritedJdk" />
16
- <orderEntry type="sourceFolder" forTests="false" />
17
- </component>
18
- </module>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/modules/android.iml" filepath="$PROJECT_DIR$/.idea/modules/android.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
- </component>
6
- </project>
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AutoImportSettings">
4
- <option name="autoReloadType" value="NONE" />
5
- </component>
6
- <component name="ChangeListManager">
7
- <list default="true" id="6bd19f01-32d7-4d37-8b5e-6bd0f29ff270" name="Changes" comment="">
8
- <change afterPath="$PROJECT_DIR$/src/androidTest/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxyTest.kt" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/../ios/StripeSdk.xcodeproj/project.pbxproj" beforeDir="false" afterPath="$PROJECT_DIR$/../ios/StripeSdk.xcodeproj/project.pbxproj" afterDir="false" />
11
- </list>
12
- <option name="SHOW_DIALOG" value="false" />
13
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
- <option name="LAST_RESOLUTION" value="IGNORE" />
16
- </component>
17
- <component name="Git.Settings">
18
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
19
- </component>
20
- <component name="ProjectId" id="2AtuQTRuDgWJsBWelsxPwKKLnTE" />
21
- <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
22
- <component name="ProjectViewState">
23
- <option name="hideEmptyMiddlePackages" value="true" />
24
- <option name="showLibraryContents" value="true" />
25
- </component>
26
- <component name="PropertiesComponent">
27
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
28
- <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
29
- <property name="RunOnceActivity.cidr.known.project.marker" value="true" />
30
- <property name="cidr.known.project.marker" value="true" />
31
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
32
- </component>
33
- <component name="RecentsManager">
34
- <key name="CreateTestDialog.Recents.Supers">
35
- <recent name="" />
36
- </key>
37
- <key name="CreateTestDialog.RecentsKey">
38
- <recent name="" />
39
- </key>
40
- </component>
41
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
42
- <component name="TaskManager">
43
- <task active="true" id="Default" summary="Default task">
44
- <changelist id="6bd19f01-32d7-4d37-8b5e-6bd0f29ff270" name="Changes" comment="" />
45
- <created>1655841188103</created>
46
- <option name="number" value="Default" />
47
- <option name="presentableId" value="Default" />
48
- <updated>1655841188103</updated>
49
- </task>
50
- <servers />
51
- </component>
52
- </project>
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Tue Jun 21 15:53:06 EDT 2022
8
- sdk.dir=/Users/charliecruzan/Library/Android/sdk
Binary file
Binary file
@@ -1,35 +0,0 @@
1
- package com.reactnativestripesdk.pushprovisioning
2
-
3
- import android.content.Context
4
- import androidx.test.core.app.ApplicationProvider
5
- import com.facebook.react.bridge.ReactApplicationContext
6
- import org.junit.Assert.*
7
- import org.junit.Test
8
-
9
- class PushProvisioningProxyTest {
10
- private val reactApplicationContext = ReactApplicationContext(
11
- ApplicationProvider.getApplicationContext<Context>()
12
- )
13
-
14
- @Test
15
- fun getApiVersion() {
16
- // This value very rarely changes, so the test is hard coded
17
- assertEquals(
18
- "2019-09-09",
19
- PushProvisioningProxy.getApiVersion()
20
- )
21
- }
22
-
23
- @Test
24
- fun isNFCEnabled() {
25
- assertEquals(
26
- false,
27
- PushProvisioningProxy.isNFCEnabled(reactApplicationContext)
28
- )
29
- }
30
-
31
- @Test
32
- fun isTokenInWallet() {
33
- assertEquals(TapAndPayProxy.isTokenInWallet({}, "4242"), false)
34
- }
35
- }
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
3
- <item
4
- android:drawable="@drawable/googlepay_button_no_shadow_background_image" />
5
- </selector>
6
-
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <ripple xmlns:android="http://schemas.android.com/apk/res/android"
3
- android:color="#e0ffffff">
4
- <item
5
- android:drawable="@drawable/googlepay_button_no_shadow_background_image" />
6
- </ripple>
7
-
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <resources>
3
- <string name="googlepay_button_content_description">Google Pay</string>
4
- <string name="buy_with_googlepay_button_content_description">Buy with Google Pay</string>
5
- <string name="donate_with_googlepay_button_content_description">Donate With Google Pay</string>
6
- <string name="pay_with_googlepay_button_content_description">Pay With Google Pay</string>
7
- <string name="subscribe_with_googlepay_button_content_description">Subscribe With Google Pay</string>
8
- <string name="book_with_googlepay_button_content_description">Book With Google Pay</string>
9
- <string name="checkout_with_googlepay_button_content_description">Checkout With Google Pay</string>
10
- <string name="order_with_googlepay_button_content_description">Order With Google Pay</string>
11
- <string name="view_in_googlepay_button_content_description">View In Google Pay</string>
12
- </resources>
package/ios/.DS_Store DELETED
Binary file
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
- </Workspace>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>