@capacitor-community/stripe-terminal 6.2.1 → 6.4.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 (40) hide show
  1. package/CapacitorCommunityStripeTerminal.podspec +3 -3
  2. package/Package.swift +30 -0
  3. package/README.md +50 -38
  4. package/android/build.gradle +3 -3
  5. package/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminal.java +179 -96
  6. package/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminalPlugin.java +1 -1
  7. package/android/src/main/java/com/getcapacitor/community/stripe/terminal/TerminalEvent.kt +1 -0
  8. package/android/src/main/java/com/getcapacitor/community/stripe/terminal/TokenProvider.java +7 -6
  9. package/android/src/main/java/com/getcapacitor/community/stripe/terminal/helper/TerminalMappers.java +3 -3
  10. package/dist/docs.json +23 -17
  11. package/dist/esm/definitions.d.ts +11 -11
  12. package/dist/esm/definitions.js.map +1 -1
  13. package/dist/esm/events.enum.d.ts +1 -0
  14. package/dist/esm/events.enum.js +1 -0
  15. package/dist/esm/events.enum.js.map +1 -1
  16. package/dist/esm/index.js +1 -1
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/stripe.enum.d.ts +2 -2
  19. package/dist/esm/stripe.enum.js +2 -2
  20. package/dist/esm/stripe.enum.js.map +1 -1
  21. package/dist/esm/{terminalMappers.js → terminal-mappers.js} +2 -2
  22. package/dist/esm/terminal-mappers.js.map +1 -0
  23. package/dist/esm/web.js +14 -10
  24. package/dist/esm/web.js.map +1 -1
  25. package/dist/plugin.cjs.js +17 -14
  26. package/dist/plugin.cjs.js.map +1 -1
  27. package/dist/plugin.js +18 -15
  28. package/dist/plugin.js.map +1 -1
  29. package/ios/{Plugin → Sources/StripeTerminalPlugin}/StripeTerminal.swift +52 -45
  30. package/ios/{Plugin → Sources/StripeTerminalPlugin}/StripeTerminalPlugin.swift +22 -1
  31. package/ios/{Plugin → Sources/StripeTerminalPlugin}/TerminalEvents.swift +1 -0
  32. package/ios/{Plugin → Sources/StripeTerminalPlugin}/TerminalMappers.swift +2 -2
  33. package/ios/Tests/StripeTerminalPluginTests/StripeTerminalPluginTests.swift +15 -0
  34. package/package.json +16 -14
  35. package/dist/esm/terminalMappers.js.map +0 -1
  36. package/ios/Plugin/StripeTerminalPlugin.h +0 -10
  37. package/ios/Plugin/StripeTerminalPlugin.m +0 -24
  38. /package/dist/esm/{terminalMappers.d.ts → terminal-mappers.d.ts} +0 -0
  39. /package/ios/{Plugin → Sources/StripeTerminalPlugin}/Info.plist +0 -0
  40. /package/ios/{Plugin → Sources/StripeTerminalPlugin}/TerminalConnectTypes.swift +0 -0
@@ -10,9 +10,9 @@ Pod::Spec.new do |s|
10
10
  s.homepage = package['repository']['url']
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'StripeTerminal', '~> 3.8.0'
16
+ s.dependency 'StripeTerminal', '~> 4.1.0'
17
17
  s.swift_version = '5.1'
18
18
  end
package/Package.swift ADDED
@@ -0,0 +1,30 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapacitorCommunityStripeTerminal",
6
+ platforms: [.iOS(.v14)],
7
+ products: [
8
+ .library(
9
+ name: "CapacitorCommunityStripeTerminal",
10
+ targets: ["StripeTerminalPlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main"),
14
+ .package(url: "https://github.com/stripe/stripe-terminal-ios.git", exact: "4.1.0")
15
+ ],
16
+ targets: [
17
+ .target(
18
+ name: "StripeTerminalPlugin",
19
+ dependencies: [
20
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
21
+ .product(name: "Cordova", package: "capacitor-swift-pm"),
22
+ .product(name: "StripeTerminal", package: "stripe-terminal-ios")
23
+ ],
24
+ path: "ios/Sources/StripeTerminalPlugin"),
25
+ .testTarget(
26
+ name: "StripeTerminalPluginTests",
27
+ dependencies: ["StripeTerminalPlugin"],
28
+ path: "ios/Tests/StripeTerminalPluginTests")
29
+ ]
30
+ )
package/README.md CHANGED
@@ -18,7 +18,18 @@ __Note: Stripe Web SDK is beta version. So this plugin's implement is experiment
18
18
 
19
19
  ### iOS
20
20
 
21
- - [iOS Configure your app](https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=ios#configure)
21
+ Stripe Terminal require development target 14.0 or later. Change Podfile( `ios/App/Podfile` ) like below:
22
+
23
+ ```diff
24
+ require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
25
+
26
+ - platform :ios, '13.0'
27
+ + platform :ios, '14.0'
28
+ ```
29
+
30
+ Follow Stripe's documentation for other configuration items.
31
+
32
+ - [Stripe - iOS Configure your app](https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=ios#configure)
22
33
 
23
34
  ### Android
24
35
 
@@ -641,16 +652,16 @@ The Promise returned by `cancelCollectPaymentMethod()` will also be resolved.
641
652
  ### addListener(TerminalEventsEnum.Failed, ...)
642
653
 
643
654
  ```typescript
644
- addListener(eventName: TerminalEventsEnum.Failed, listenerFunc: () => void) => Promise<PluginListenerHandle>
655
+ addListener(eventName: TerminalEventsEnum.Failed, listenerFunc: (info: { message: string; code?: string; declineCode?: string; }) => void) => Promise<PluginListenerHandle>
645
656
  ```
646
657
 
647
658
  Emitted when either [`collectPaymentMethod()`](#collectpaymentmethod) or [`confirmPaymentIntent()`](#confirmpaymentintent)
648
659
  fails. The Promise returned by the relevant call will also be rejected.
649
660
 
650
- | Param | Type |
651
- | ------------------ | ------------------------------------------------------------------------ |
652
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.Failed</a></code> |
653
- | **`listenerFunc`** | <code>() =&gt; void</code> |
661
+ | Param | Type |
662
+ | ------------------ | ----------------------------------------------------------------------------------------- |
663
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.Failed</a></code> |
664
+ | **`listenerFunc`** | <code>(info: { message: string; code?: string; declineCode?: string; }) =&gt; void</code> |
654
665
 
655
666
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
656
667
 
@@ -660,15 +671,15 @@ fails. The Promise returned by the relevant call will also be rejected.
660
671
  ### addListener(TerminalEventsEnum.ReportAvailableUpdate, ...)
661
672
 
662
673
  ```typescript
663
- addListener(eventName: TerminalEventsEnum.ReportAvailableUpdate, listenerFunc: ({ update, }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
674
+ addListener(eventName: TerminalEventsEnum.ReportAvailableUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
664
675
  ```
665
676
 
666
677
  Emitted when a software update is available for the connected reader.
667
678
 
668
- | Param | Type |
669
- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
670
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReportAvailableUpdate</a></code> |
671
- | **`listenerFunc`** | <code>({ update, }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) =&gt; void</code> |
679
+ | Param | Type |
680
+ | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
681
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReportAvailableUpdate</a></code> |
682
+ | **`listenerFunc`** | <code>({ update }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) =&gt; void</code> |
672
683
 
673
684
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
674
685
 
@@ -678,7 +689,7 @@ Emitted when a software update is available for the connected reader.
678
689
  ### addListener(TerminalEventsEnum.StartInstallingUpdate, ...)
679
690
 
680
691
  ```typescript
681
- addListener(eventName: TerminalEventsEnum.StartInstallingUpdate, listenerFunc: ({ update, }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
692
+ addListener(eventName: TerminalEventsEnum.StartInstallingUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
682
693
  ```
683
694
 
684
695
  **Only applicable to Bluetooth and USB readers.**
@@ -700,10 +711,10 @@ to explain why connecting is taking longer than usual.
700
711
 
701
712
  [*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-start-installing-update.html)
702
713
 
703
- | Param | Type |
704
- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
705
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.StartInstallingUpdate</a></code> |
706
- | **`listenerFunc`** | <code>({ update, }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) =&gt; void</code> |
714
+ | Param | Type |
715
+ | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
716
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.StartInstallingUpdate</a></code> |
717
+ | **`listenerFunc`** | <code>({ update }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) =&gt; void</code> |
707
718
 
708
719
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
709
720
 
@@ -756,7 +767,7 @@ addListener(eventName: TerminalEventsEnum.FinishInstallingUpdate, listenerFunc:
756
767
  ### addListener(TerminalEventsEnum.BatteryLevel, ...)
757
768
 
758
769
  ```typescript
759
- addListener(eventName: TerminalEventsEnum.BatteryLevel, listenerFunc: ({ level, charging, status, }: { level: number; charging: boolean; status: BatteryStatus; }) => void) => Promise<PluginListenerHandle>
770
+ addListener(eventName: TerminalEventsEnum.BatteryLevel, listenerFunc: ({ level, charging, status }: { level: number; charging: boolean; status: BatteryStatus; }) => void) => Promise<PluginListenerHandle>
760
771
  ```
761
772
 
762
773
  **Only applicable to Bluetooth and USB readers.**
@@ -765,10 +776,10 @@ Emitted upon connection and every 10 minutes.
765
776
 
766
777
  [*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-battery-level-update.html)
767
778
 
768
- | Param | Type |
769
- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
770
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.BatteryLevel</a></code> |
771
- | **`listenerFunc`** | <code>({ level, charging, status, }: { level: number; charging: boolean; status: <a href="#batterystatus">BatteryStatus</a>; }) =&gt; void</code> |
779
+ | Param | Type |
780
+ | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
781
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.BatteryLevel</a></code> |
782
+ | **`listenerFunc`** | <code>({ level, charging, status }: { level: number; charging: boolean; status: <a href="#batterystatus">BatteryStatus</a>; }) =&gt; void</code> |
772
783
 
773
784
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
774
785
 
@@ -798,7 +809,7 @@ addListener(eventName: TerminalEventsEnum.ReaderEvent, listenerFunc: ({ event }:
798
809
  ### addListener(TerminalEventsEnum.RequestDisplayMessage, ...)
799
810
 
800
811
  ```typescript
801
- addListener(eventName: TerminalEventsEnum.RequestDisplayMessage, listenerFunc: ({ messageType, message, }: { messageType: ReaderDisplayMessage; message: string; }) => void) => Promise<PluginListenerHandle>
812
+ addListener(eventName: TerminalEventsEnum.RequestDisplayMessage, listenerFunc: ({ messageType, message }: { messageType: ReaderDisplayMessage; message: string; }) => void) => Promise<PluginListenerHandle>
802
813
  ```
803
814
 
804
815
  **Only applicable to Bluetooth and USB readers.**
@@ -807,10 +818,10 @@ Emitted when the Terminal requests that a message be displayed in your app.
807
818
 
808
819
  [*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-request-reader-display-message.html)
809
820
 
810
- | Param | Type |
811
- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
812
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestDisplayMessage</a></code> |
813
- | **`listenerFunc`** | <code>({ messageType, message, }: { messageType: <a href="#readerdisplaymessage">ReaderDisplayMessage</a>; message: string; }) =&gt; void</code> |
821
+ | Param | Type |
822
+ | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
823
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestDisplayMessage</a></code> |
824
+ | **`listenerFunc`** | <code>({ messageType, message }: { messageType: <a href="#readerdisplaymessage">ReaderDisplayMessage</a>; message: string; }) =&gt; void</code> |
814
825
 
815
826
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
816
827
 
@@ -820,7 +831,7 @@ Emitted when the Terminal requests that a message be displayed in your app.
820
831
  ### addListener(TerminalEventsEnum.RequestReaderInput, ...)
821
832
 
822
833
  ```typescript
823
- addListener(eventName: TerminalEventsEnum.RequestReaderInput, listenerFunc: ({ options, message, }: { options: ReaderInputOption[]; message: string; }) => void) => Promise<PluginListenerHandle>
834
+ addListener(eventName: TerminalEventsEnum.RequestReaderInput, listenerFunc: ({ options, message }: { options: ReaderInputOption[]; message: string; }) => void) => Promise<PluginListenerHandle>
824
835
  ```
825
836
 
826
837
  **Only applicable to Bluetooth and USB readers.**
@@ -831,10 +842,10 @@ the RequestDisplayMessage event will be emitted.
831
842
 
832
843
  [*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-request-reader-input.html)
833
844
 
834
- | Param | Type |
835
- | ------------------ | --------------------------------------------------------------------------------------------------- |
836
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestReaderInput</a></code> |
837
- | **`listenerFunc`** | <code>({ options, message, }: { options: ReaderInputOption[]; message: string; }) =&gt; void</code> |
845
+ | Param | Type |
846
+ | ------------------ | -------------------------------------------------------------------------------------------------- |
847
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestReaderInput</a></code> |
848
+ | **`listenerFunc`** | <code>({ options, message }: { options: ReaderInputOption[]; message: string; }) =&gt; void</code> |
838
849
 
839
850
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
840
851
 
@@ -862,13 +873,13 @@ addListener(eventName: TerminalEventsEnum.PaymentStatusChange, listenerFunc: ({
862
873
  ### addListener(TerminalEventsEnum.ReaderReconnectStarted, ...)
863
874
 
864
875
  ```typescript
865
- addListener(eventName: TerminalEventsEnum.ReaderReconnectStarted, listenerFunc: ({ reader, reason, }: { reader: ReaderInterface; reason: string; }) => void) => Promise<PluginListenerHandle>
876
+ addListener(eventName: TerminalEventsEnum.ReaderReconnectStarted, listenerFunc: ({ reader, reason }: { reader: ReaderInterface; reason: string; }) => void) => Promise<PluginListenerHandle>
866
877
  ```
867
878
 
868
- | Param | Type |
869
- | ------------------ | -------------------------------------------------------------------------------------------------------------------------- |
870
- | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReaderReconnectStarted</a></code> |
871
- | **`listenerFunc`** | <code>({ reader, reason, }: { reader: <a href="#readerinterface">ReaderInterface</a>; reason: string; }) =&gt; void</code> |
879
+ | Param | Type |
880
+ | ------------------ | ------------------------------------------------------------------------------------------------------------------------- |
881
+ | **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReaderReconnectStarted</a></code> |
882
+ | **`listenerFunc`** | <code>({ reader, reason }: { reader: <a href="#readerinterface">ReaderInterface</a>; reason: string; }) =&gt; void</code> |
872
883
 
873
884
  **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
874
885
 
@@ -922,7 +933,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
922
933
 
923
934
  #### ReaderInterface
924
935
 
925
- <code>{ /** * The unique serial number is primary identifier inner plugin. */ serialNumber: string; label: string; batteryLevel: number; batteryStatus: <a href="#batterystatus">BatteryStatus</a>; simulated: boolean; id: number; availableUpdate: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; locationId: string; ipAddress: string; status: <a href="#networkstatus">NetworkStatus</a>; location: <a href="#locationinterface">LocationInterface</a>; locationStatus: <a href="#locationstatus">LocationStatus</a>; deviceType: <a href="#devicetype">DeviceType</a>; deviceSoftwareVersion: string | null; /** * iOS Only properties. These properties are not available on Android. */ isCharging: number; /** * Android Only properties. These properties are not available on iOS. */ baseUrl: string; bootloaderVersion: string; configVersion: string; emvKeyProfileId: string; firmwareVersion: string; hardwareVersion: string; macKeyProfileId: string; pinKeyProfileId: string; trackKeyProfileId: string; settingsVersion: string; pinKeysetId: string; /** * @deprecated This property has been deprecated and should use the `serialNumber` property. */ index?: number; }</code>
936
+ <code>{ /** * The unique serial number is primary identifier inner plugin. */ serialNumber: string; label: string; batteryLevel: number; batteryStatus: <a href="#batterystatus">BatteryStatus</a>; simulated: boolean; id: number; availableUpdate: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; locationId: string; ipAddress: string; status: <a href="#networkstatus">NetworkStatus</a>; location: <a href="#locationinterface">LocationInterface</a>; locationStatus: <a href="#locationstatus">LocationStatus</a>; deviceType: <a href="#devicetype">DeviceType</a>; deviceSoftwareVersion: string | null; /** * iOS Only properties. These properties are not available on Android. */ isCharging: number; /** * Android Only properties. These properties are not available on iOS. */ baseUrl: string; bootloaderVersion: string; configVersion: string; emvKeyProfileId: string; firmwareVersion: string; hardwareVersion: string; macKeyProfileId: string; pinKeyProfileId: string; trackKeyProfileId: string; settingsVersion: string; pinKeysetId: string; }</code>
926
937
 
927
938
 
928
939
  #### ReaderSoftwareUpdateInterface
@@ -995,7 +1006,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
995
1006
 
996
1007
  | Members | Value |
997
1008
  | ---------------------- | ------------------------------- |
998
- | **`cotsDevice`** | <code>'cotsDevice'</code> |
1009
+ | **`tapToPayDevice`** | <code>'tapToPayDevice'</code> |
999
1010
  | **`wisePad3s`** | <code>'wisePad3s'</code> |
1000
1011
  | **`appleBuiltIn`** | <code>'appleBuiltIn'</code> |
1001
1012
  | **`chipper1X`** | <code>'chipper1X'</code> |
@@ -1075,6 +1086,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
1075
1086
  | ---------------------------------- | --------------------------------------------------- |
1076
1087
  | **`Loaded`** | <code>'terminalLoaded'</code> |
1077
1088
  | **`DiscoveredReaders`** | <code>'terminalDiscoveredReaders'</code> |
1089
+ | **`DiscoveringReaders`** | <code>'terminalDiscoveringReaders'</code> |
1078
1090
  | **`CancelDiscoveredReaders`** | <code>'terminalCancelDiscoveredReaders'</code> |
1079
1091
  | **`ConnectedReader`** | <code>'terminalConnectedReader'</code> |
1080
1092
  | **`DisconnectedReader`** | <code>'terminalDisconnectedReader'</code> |
@@ -6,8 +6,8 @@ ext {
6
6
 
7
7
  playServicesWalletVersion = project.hasProperty('playServicesWalletVersion') ? rootProject.ext.playServicesWalletVersion : '19.2.+'
8
8
  volleyVersion = project.hasProperty('volleyVersion') ? rootProject.ext.volleyVersion : '1.2.1'
9
- stripeterminalLocalmobileVersion = project.hasProperty('stripeterminalLocalmobileVersion') ? rootProject.ext.stripeterminalLocalmobileVersion : '3.5.+'
10
- stripeterminalCoreVersion = project.hasProperty('stripeterminalCoreVersion') ? rootProject.ext.stripeterminalCoreVersion : '3.8.+'
9
+ stripeterminalTapToPayVersion = project.hasProperty('stripeterminalTapToPayVersion') ? rootProject.ext.stripeterminalTapToPayVersion : '4.1.0'
10
+ stripeterminalCoreVersion = project.hasProperty('stripeterminalCoreVersion') ? rootProject.ext.stripeterminalCoreVersion : '4.1.0'
11
11
  }
12
12
 
13
13
  buildscript {
@@ -70,7 +70,7 @@ dependencies {
70
70
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
71
71
 
72
72
  implementation "com.stripe:stripeterminal-core:$stripeterminalCoreVersion"
73
- implementation "com.stripe:stripeterminal-localmobile:$stripeterminalLocalmobileVersion"
73
+ implementation "com.stripe:stripeterminal-taptopay:$stripeterminalTapToPayVersion"
74
74
  implementation "com.android.volley:volley:$volleyVersion"
75
75
  implementation "com.google.android.gms:play-services-wallet:$playServicesWalletVersion"
76
76
  }