@capacitor-community/stripe-terminal 6.2.0 → 6.4.0-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.
- package/CapacitorCommunityStripeTerminal.podspec +3 -3
- package/Package.swift +30 -0
- package/README.md +40 -39
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminal.java +179 -96
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminalPlugin.java +1 -1
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/TerminalEvent.kt +1 -0
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/TokenProvider.java +7 -6
- package/android/src/main/java/com/getcapacitor/community/stripe/terminal/helper/TerminalMappers.java +3 -3
- package/dist/docs.json +23 -17
- package/dist/esm/definitions.d.ts +11 -11
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/events.enum.d.ts +1 -0
- package/dist/esm/events.enum.js +1 -0
- package/dist/esm/events.enum.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stripe.enum.d.ts +2 -2
- package/dist/esm/stripe.enum.js +2 -2
- package/dist/esm/stripe.enum.js.map +1 -1
- package/dist/esm/{terminalMappers.js → terminal-mappers.js} +2 -2
- package/dist/esm/terminal-mappers.js.map +1 -0
- package/dist/esm/web.js +14 -10
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +17 -14
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +18 -15
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/StripeTerminalPlugin}/StripeTerminal.swift +52 -45
- package/ios/{Plugin → Sources/StripeTerminalPlugin}/StripeTerminalPlugin.swift +22 -1
- package/ios/{Plugin → Sources/StripeTerminalPlugin}/TerminalEvents.swift +1 -0
- package/ios/{Plugin → Sources/StripeTerminalPlugin}/TerminalMappers.swift +2 -2
- package/ios/Tests/StripeTerminalPluginTests/StripeTerminalPluginTests.swift +15 -0
- package/package.json +16 -14
- package/dist/esm/terminalMappers.js.map +0 -1
- package/ios/Plugin/StripeTerminalPlugin.h +0 -10
- package/ios/Plugin/StripeTerminalPlugin.m +0 -24
- /package/dist/esm/{terminalMappers.d.ts → terminal-mappers.d.ts} +0 -0
- /package/ios/{Plugin → Sources/StripeTerminalPlugin}/Info.plist +0 -0
- /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/
|
|
14
|
-
s.ios.deployment_target = '
|
|
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', '~>
|
|
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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @capacitor-community/stripe-terminal
|
|
2
2
|
|
|
3
|
-
Stripe SDK bindings for Capacitor Applications. __This plugin is still in
|
|
3
|
+
Stripe SDK bindings for Capacitor Applications. __This plugin is still in the RC (release candidate) phase.__
|
|
4
4
|
We have confirmed that it works well in the demo project. Please refer to https://github.com/capacitor-community/stripe/tree/main/demo/angular for the implementation.
|
|
5
5
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npm install @capacitor-community/stripe-terminal
|
|
9
|
+
npm install @capacitor-community/stripe-terminal
|
|
10
10
|
npx cap sync
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -641,16 +641,16 @@ The Promise returned by `cancelCollectPaymentMethod()` will also be resolved.
|
|
|
641
641
|
### addListener(TerminalEventsEnum.Failed, ...)
|
|
642
642
|
|
|
643
643
|
```typescript
|
|
644
|
-
addListener(eventName: TerminalEventsEnum.Failed, listenerFunc: () => void) => Promise<PluginListenerHandle>
|
|
644
|
+
addListener(eventName: TerminalEventsEnum.Failed, listenerFunc: (info: { message: string; code?: string; declineCode?: string; }) => void) => Promise<PluginListenerHandle>
|
|
645
645
|
```
|
|
646
646
|
|
|
647
647
|
Emitted when either [`collectPaymentMethod()`](#collectpaymentmethod) or [`confirmPaymentIntent()`](#confirmpaymentintent)
|
|
648
648
|
fails. The Promise returned by the relevant call will also be rejected.
|
|
649
649
|
|
|
650
|
-
| Param | Type
|
|
651
|
-
| ------------------ |
|
|
652
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.Failed</a></code>
|
|
653
|
-
| **`listenerFunc`** | <code>() => void</code>
|
|
650
|
+
| Param | Type |
|
|
651
|
+
| ------------------ | ----------------------------------------------------------------------------------------- |
|
|
652
|
+
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.Failed</a></code> |
|
|
653
|
+
| **`listenerFunc`** | <code>(info: { message: string; code?: string; declineCode?: string; }) => void</code> |
|
|
654
654
|
|
|
655
655
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
656
656
|
|
|
@@ -660,15 +660,15 @@ fails. The Promise returned by the relevant call will also be rejected.
|
|
|
660
660
|
### addListener(TerminalEventsEnum.ReportAvailableUpdate, ...)
|
|
661
661
|
|
|
662
662
|
```typescript
|
|
663
|
-
addListener(eventName: TerminalEventsEnum.ReportAvailableUpdate, listenerFunc: ({ update
|
|
663
|
+
addListener(eventName: TerminalEventsEnum.ReportAvailableUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
|
|
664
664
|
```
|
|
665
665
|
|
|
666
666
|
Emitted when a software update is available for the connected reader.
|
|
667
667
|
|
|
668
|
-
| Param | Type
|
|
669
|
-
| ------------------ |
|
|
670
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReportAvailableUpdate</a></code>
|
|
671
|
-
| **`listenerFunc`** | <code>({ update
|
|
668
|
+
| Param | Type |
|
|
669
|
+
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
670
|
+
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReportAvailableUpdate</a></code> |
|
|
671
|
+
| **`listenerFunc`** | <code>({ update }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) => void</code> |
|
|
672
672
|
|
|
673
673
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
674
674
|
|
|
@@ -678,7 +678,7 @@ Emitted when a software update is available for the connected reader.
|
|
|
678
678
|
### addListener(TerminalEventsEnum.StartInstallingUpdate, ...)
|
|
679
679
|
|
|
680
680
|
```typescript
|
|
681
|
-
addListener(eventName: TerminalEventsEnum.StartInstallingUpdate, listenerFunc: ({ update
|
|
681
|
+
addListener(eventName: TerminalEventsEnum.StartInstallingUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>
|
|
682
682
|
```
|
|
683
683
|
|
|
684
684
|
**Only applicable to Bluetooth and USB readers.**
|
|
@@ -700,10 +700,10 @@ to explain why connecting is taking longer than usual.
|
|
|
700
700
|
|
|
701
701
|
[*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-start-installing-update.html)
|
|
702
702
|
|
|
703
|
-
| Param | Type
|
|
704
|
-
| ------------------ |
|
|
705
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.StartInstallingUpdate</a></code>
|
|
706
|
-
| **`listenerFunc`** | <code>({ update
|
|
703
|
+
| Param | Type |
|
|
704
|
+
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
705
|
+
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.StartInstallingUpdate</a></code> |
|
|
706
|
+
| **`listenerFunc`** | <code>({ update }: { update: <a href="#readersoftwareupdateinterface">ReaderSoftwareUpdateInterface</a>; }) => void</code> |
|
|
707
707
|
|
|
708
708
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
709
709
|
|
|
@@ -756,7 +756,7 @@ addListener(eventName: TerminalEventsEnum.FinishInstallingUpdate, listenerFunc:
|
|
|
756
756
|
### addListener(TerminalEventsEnum.BatteryLevel, ...)
|
|
757
757
|
|
|
758
758
|
```typescript
|
|
759
|
-
addListener(eventName: TerminalEventsEnum.BatteryLevel, listenerFunc: ({ level, charging, status
|
|
759
|
+
addListener(eventName: TerminalEventsEnum.BatteryLevel, listenerFunc: ({ level, charging, status }: { level: number; charging: boolean; status: BatteryStatus; }) => void) => Promise<PluginListenerHandle>
|
|
760
760
|
```
|
|
761
761
|
|
|
762
762
|
**Only applicable to Bluetooth and USB readers.**
|
|
@@ -765,10 +765,10 @@ Emitted upon connection and every 10 minutes.
|
|
|
765
765
|
|
|
766
766
|
[*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-battery-level-update.html)
|
|
767
767
|
|
|
768
|
-
| Param | Type
|
|
769
|
-
| ------------------ |
|
|
770
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.BatteryLevel</a></code>
|
|
771
|
-
| **`listenerFunc`** | <code>({ level, charging, status
|
|
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>; }) => void</code> |
|
|
772
772
|
|
|
773
773
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
774
774
|
|
|
@@ -798,7 +798,7 @@ addListener(eventName: TerminalEventsEnum.ReaderEvent, listenerFunc: ({ event }:
|
|
|
798
798
|
### addListener(TerminalEventsEnum.RequestDisplayMessage, ...)
|
|
799
799
|
|
|
800
800
|
```typescript
|
|
801
|
-
addListener(eventName: TerminalEventsEnum.RequestDisplayMessage, listenerFunc: ({ messageType, message
|
|
801
|
+
addListener(eventName: TerminalEventsEnum.RequestDisplayMessage, listenerFunc: ({ messageType, message }: { messageType: ReaderDisplayMessage; message: string; }) => void) => Promise<PluginListenerHandle>
|
|
802
802
|
```
|
|
803
803
|
|
|
804
804
|
**Only applicable to Bluetooth and USB readers.**
|
|
@@ -807,10 +807,10 @@ Emitted when the Terminal requests that a message be displayed in your app.
|
|
|
807
807
|
|
|
808
808
|
[*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-request-reader-display-message.html)
|
|
809
809
|
|
|
810
|
-
| Param | Type
|
|
811
|
-
| ------------------ |
|
|
812
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestDisplayMessage</a></code>
|
|
813
|
-
| **`listenerFunc`** | <code>({ messageType, message
|
|
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; }) => void</code> |
|
|
814
814
|
|
|
815
815
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
816
816
|
|
|
@@ -820,7 +820,7 @@ Emitted when the Terminal requests that a message be displayed in your app.
|
|
|
820
820
|
### addListener(TerminalEventsEnum.RequestReaderInput, ...)
|
|
821
821
|
|
|
822
822
|
```typescript
|
|
823
|
-
addListener(eventName: TerminalEventsEnum.RequestReaderInput, listenerFunc: ({ options, message
|
|
823
|
+
addListener(eventName: TerminalEventsEnum.RequestReaderInput, listenerFunc: ({ options, message }: { options: ReaderInputOption[]; message: string; }) => void) => Promise<PluginListenerHandle>
|
|
824
824
|
```
|
|
825
825
|
|
|
826
826
|
**Only applicable to Bluetooth and USB readers.**
|
|
@@ -831,10 +831,10 @@ the RequestDisplayMessage event will be emitted.
|
|
|
831
831
|
|
|
832
832
|
[*Stripe docs reference*](https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-reader-listener/on-request-reader-input.html)
|
|
833
833
|
|
|
834
|
-
| Param | Type
|
|
835
|
-
| ------------------ |
|
|
836
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestReaderInput</a></code>
|
|
837
|
-
| **`listenerFunc`** | <code>({ options, message
|
|
834
|
+
| Param | Type |
|
|
835
|
+
| ------------------ | -------------------------------------------------------------------------------------------------- |
|
|
836
|
+
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.RequestReaderInput</a></code> |
|
|
837
|
+
| **`listenerFunc`** | <code>({ options, message }: { options: ReaderInputOption[]; message: string; }) => void</code> |
|
|
838
838
|
|
|
839
839
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
840
840
|
|
|
@@ -862,13 +862,13 @@ addListener(eventName: TerminalEventsEnum.PaymentStatusChange, listenerFunc: ({
|
|
|
862
862
|
### addListener(TerminalEventsEnum.ReaderReconnectStarted, ...)
|
|
863
863
|
|
|
864
864
|
```typescript
|
|
865
|
-
addListener(eventName: TerminalEventsEnum.ReaderReconnectStarted, listenerFunc: ({ reader, reason
|
|
865
|
+
addListener(eventName: TerminalEventsEnum.ReaderReconnectStarted, listenerFunc: ({ reader, reason }: { reader: ReaderInterface; reason: string; }) => void) => Promise<PluginListenerHandle>
|
|
866
866
|
```
|
|
867
867
|
|
|
868
|
-
| Param | Type
|
|
869
|
-
| ------------------ |
|
|
870
|
-
| **`eventName`** | <code><a href="#terminaleventsenum">TerminalEventsEnum.ReaderReconnectStarted</a></code>
|
|
871
|
-
| **`listenerFunc`** | <code>({ reader, reason
|
|
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; }) => void</code> |
|
|
872
872
|
|
|
873
873
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
874
874
|
|
|
@@ -922,7 +922,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
|
|
|
922
922
|
|
|
923
923
|
#### ReaderInterface
|
|
924
924
|
|
|
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;
|
|
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; }</code>
|
|
926
926
|
|
|
927
927
|
|
|
928
928
|
#### ReaderSoftwareUpdateInterface
|
|
@@ -995,7 +995,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
|
|
|
995
995
|
|
|
996
996
|
| Members | Value |
|
|
997
997
|
| ---------------------- | ------------------------------- |
|
|
998
|
-
| **`
|
|
998
|
+
| **`tapToPayDevice`** | <code>'tapToPayDevice'</code> |
|
|
999
999
|
| **`wisePad3s`** | <code>'wisePad3s'</code> |
|
|
1000
1000
|
| **`appleBuiltIn`** | <code>'appleBuiltIn'</code> |
|
|
1001
1001
|
| **`chipper1X`** | <code>'chipper1X'</code> |
|
|
@@ -1075,6 +1075,7 @@ addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: (
|
|
|
1075
1075
|
| ---------------------------------- | --------------------------------------------------- |
|
|
1076
1076
|
| **`Loaded`** | <code>'terminalLoaded'</code> |
|
|
1077
1077
|
| **`DiscoveredReaders`** | <code>'terminalDiscoveredReaders'</code> |
|
|
1078
|
+
| **`DiscoveringReaders`** | <code>'terminalDiscoveringReaders'</code> |
|
|
1078
1079
|
| **`CancelDiscoveredReaders`** | <code>'terminalCancelDiscoveredReaders'</code> |
|
|
1079
1080
|
| **`ConnectedReader`** | <code>'terminalConnectedReader'</code> |
|
|
1080
1081
|
| **`DisconnectedReader`** | <code>'terminalDisconnectedReader'</code> |
|
package/android/build.gradle
CHANGED
|
@@ -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
|
-
|
|
10
|
-
stripeterminalCoreVersion = project.hasProperty('stripeterminalCoreVersion') ? rootProject.ext.stripeterminalCoreVersion : '
|
|
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-
|
|
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
|
}
|