@capgo/capacitor-pay 7.1.12 → 8.0.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.
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
s.frameworks = 'PassKit'
|
package/Package.swift
CHANGED
|
@@ -3,14 +3,14 @@ import PackageDescription
|
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
5
|
name: "CapgoCapacitorPay",
|
|
6
|
-
platforms: [.iOS(.
|
|
6
|
+
platforms: [.iOS(.v15)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
9
|
name: "CapgoCapacitorPay",
|
|
10
10
|
targets: ["PayPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
@@ -11,18 +11,18 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
apply plugin: 'com.android.library'
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
|
-
namespace "app.capgo.pay"
|
|
22
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
21
|
+
namespace = "app.capgo.pay"
|
|
22
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
23
23
|
defaultConfig {
|
|
24
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
24
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -34,7 +34,7 @@ android {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
lintOptions {
|
|
37
|
-
abortOnError false
|
|
37
|
+
abortOnError = false
|
|
38
38
|
}
|
|
39
39
|
compileOptions {
|
|
40
40
|
sourceCompatibility JavaVersion.VERSION_21
|
|
@@ -26,7 +26,7 @@ import org.json.JSONObject;
|
|
|
26
26
|
@CapacitorPlugin(name = "Pay")
|
|
27
27
|
public class PayPlugin extends Plugin {
|
|
28
28
|
|
|
29
|
-
private final String pluginVersion = "
|
|
29
|
+
private final String pluginVersion = "8.0.2";
|
|
30
30
|
|
|
31
31
|
private static final int LOAD_PAYMENT_DATA_REQUEST_CODE = 8001;
|
|
32
32
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export type PayPlatform = 'ios' | 'android' | 'web';
|
|
2
|
+
export type ApplePayNetwork = 'amex' | 'chinaUnionPay' | 'discover' | 'eftpos' | 'electron' | 'girocard' | 'interac' | 'jcb' | 'mada' | 'maestro' | 'masterCard' | 'privateLabel' | 'quicPay' | 'suica' | 'visa' | 'vPay' | 'id' | 'cartesBancaires';
|
|
3
|
+
export type ApplePayMerchantCapability = '3DS' | 'credit' | 'debit' | 'emv';
|
|
4
|
+
export type ApplePaySummaryItemType = 'final' | 'pending';
|
|
5
|
+
export type ApplePayContactField = 'emailAddress' | 'name' | 'phoneNumber' | 'postalAddress';
|
|
6
|
+
export type ApplePayShippingType = 'shipping' | 'delivery' | 'servicePickup' | 'storePickup';
|
|
7
7
|
export interface ApplePaySummaryItem {
|
|
8
8
|
label: string;
|
|
9
9
|
amount: string;
|
|
@@ -115,7 +115,7 @@ export interface ApplePayPaymentResult {
|
|
|
115
115
|
shippingContact?: ApplePayContact;
|
|
116
116
|
billingContact?: ApplePayContact;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type GooglePayEnvironment = 'test' | 'production';
|
|
119
119
|
export interface GooglePayAvailabilityOptions {
|
|
120
120
|
/**
|
|
121
121
|
* Environment used to construct the Google Payments client. Defaults to `'test'`.
|
|
@@ -5,7 +5,7 @@ import PassKit
|
|
|
5
5
|
|
|
6
6
|
@objc(PayPlugin)
|
|
7
7
|
public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationControllerDelegate {
|
|
8
|
-
private let pluginVersion: String = "
|
|
8
|
+
private let pluginVersion: String = "8.0.2"
|
|
9
9
|
public let identifier = "PayPlugin"
|
|
10
10
|
public let jsName = "Pay"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-pay",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Capacitor plugin to trigger native payment for iOS(Apple pay) and Android(Google Pay)",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/Cap-go/capacitor-pay/issues"
|
|
27
27
|
},
|
|
28
|
+
"homepage": "https://capgo.app/docs/plugins/pay/",
|
|
28
29
|
"keywords": [
|
|
29
30
|
"capacitor",
|
|
30
31
|
"plugin",
|
|
@@ -50,23 +51,25 @@
|
|
|
50
51
|
"prepublishOnly": "npm run build"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@capacitor/android": "^
|
|
54
|
-
"@capacitor/core": "^
|
|
55
|
-
"@capacitor/docgen": "^0.3.
|
|
56
|
-
"@capacitor/ios": "^
|
|
54
|
+
"@capacitor/android": "^8.0.0",
|
|
55
|
+
"@capacitor/core": "^8.0.0",
|
|
56
|
+
"@capacitor/docgen": "^0.3.1",
|
|
57
|
+
"@capacitor/ios": "^8.0.0",
|
|
57
58
|
"@ionic/eslint-config": "^0.4.0",
|
|
58
59
|
"@ionic/prettier-config": "^4.0.0",
|
|
59
60
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
61
|
+
"@types/node": "^24.10.1",
|
|
62
|
+
"eslint": "^8.57.1",
|
|
63
|
+
"eslint-plugin-import": "^2.31.0",
|
|
64
|
+
"prettier": "^3.6.2",
|
|
65
|
+
"prettier-plugin-java": "^2.7.7",
|
|
66
|
+
"rimraf": "^6.1.0",
|
|
67
|
+
"rollup": "^4.53.2",
|
|
65
68
|
"swiftlint": "^2.0.0",
|
|
66
|
-
"typescript": "
|
|
69
|
+
"typescript": "^5.9.3"
|
|
67
70
|
},
|
|
68
71
|
"peerDependencies": {
|
|
69
|
-
"@capacitor/core": ">=
|
|
72
|
+
"@capacitor/core": ">=8.0.0"
|
|
70
73
|
},
|
|
71
74
|
"prettier": "@ionic/prettier-config",
|
|
72
75
|
"swiftlint": "@ionic/swiftlint-config",
|