Skip to content

Commit 758ca7d

Browse files
committed
fix: implement getPluginVersion method to return plugin version
1 parent 1b994df commit 758ca7d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ios/Sources/PayPlugin/PayPlugin.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationContr
442442
applePayController?.delegate = nil
443443
applePayController = nil
444444
}
445+
446+
@objc func getPluginVersion(_ call: CAPPluginCall) {
447+
call.resolve(["version": self.PLUGIN_VERSION])
448+
}
445449
}
446450

447451
private enum PayPluginError: LocalizedError {
@@ -453,9 +457,4 @@ private enum PayPluginError: LocalizedError {
453457
return message
454458
}
455459
}
456-
457-
@objc func getPluginVersion(_ call: CAPPluginCall) {
458-
call.resolve(["version": self.PLUGIN_VERSION])
459-
}
460-
461460
}

0 commit comments

Comments
 (0)