@capgo/capacitor-pay 7.1.6 → 7.1.7
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.
|
@@ -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
|
|
29
|
+
private final String pluginVersion = "7.1.7";
|
|
30
30
|
|
|
31
31
|
private static final int LOAD_PAYMENT_DATA_REQUEST_CODE = 8001;
|
|
32
32
|
|
|
@@ -242,7 +242,7 @@ public class PayPlugin extends Plugin {
|
|
|
242
242
|
public void getPluginVersion(final PluginCall call) {
|
|
243
243
|
try {
|
|
244
244
|
final JSObject ret = new JSObject();
|
|
245
|
-
ret.put("version", this.
|
|
245
|
+
ret.put("version", this.pluginVersion);
|
|
246
246
|
call.resolve(ret);
|
|
247
247
|
} catch (final Exception e) {
|
|
248
248
|
call.reject("Could not get plugin version", e);
|
|
@@ -5,7 +5,7 @@ import PassKit
|
|
|
5
5
|
|
|
6
6
|
@objc(PayPlugin)
|
|
7
7
|
public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationControllerDelegate {
|
|
8
|
-
private let
|
|
8
|
+
private let pluginVersion: String = "7.1.7"
|
|
9
9
|
public let identifier = "PayPlugin"
|
|
10
10
|
public let jsName = "Pay"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -444,7 +444,7 @@ public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationContr
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
447
|
-
call.resolve(["version": self.
|
|
447
|
+
call.resolve(["version": self.pluginVersion])
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
|
package/package.json
CHANGED