Skip to content

Commit

Permalink
Merge pull request #92 from razorpay/1.1.5
Browse files Browse the repository at this point in the history
Swift 5.2 support.
  • Loading branch information
Nautiyalsachin authored Jul 9, 2020
2 parents 91644dd + 6781ea1 commit b25c3ff
Show file tree
Hide file tree
Showing 46 changed files with 1,086 additions and 47 deletions.
325 changes: 325 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion Pod/Razorpay.framework/EncryptedOtpelf.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Pod/Razorpay.framework/Hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
5b7d99c406b25c273c1558eb37278a02
8c27a22d68180f03a5b65504ceae45b6

118 changes: 84 additions & 34 deletions Pod/Razorpay.framework/Headers/Razorpay-Swift.h

Large diffs are not rendered by default.

Binary file modified Pod/Razorpay.framework/Info.plist
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
// swift-module-flags: -target armv7-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name Razorpay
import CommonCrypto
import CoreLocation
import CoreTelephony
import Foundation
import Swift
import SystemConfiguration
import UIKit
import WebKit
public protocol PluginPaymentCompletionDelegate : AnyObject {
func paymentSuccessful(orderID: Swift.String, dictVerification: [Swift.AnyHashable : Any]?)
func paymentFailed(code: Swift.Int, errorDescription: Swift.String)
func trackEvent(event: Swift.String, withProperties dict: [Swift.AnyHashable : Any]?)
}
@objc public protocol PluginPaymentDelegate : AnyObject {
@objc func canProcessPayment(model: Razorpay.PluginPaymentModel) -> Swift.Bool
@objc func identifier() -> Swift.String
@objc func pay(model: Razorpay.PluginPaymentModel)
}
public protocol ErrorDescribable {
var localizedDescription: Swift.String { get }
}
public typealias PluginPaymentError = Razorpay.ErrorDescribable & Swift.Error
@objc public protocol RazorpayProtocol {
}
@objc public protocol RazorpayResultProtocol : Razorpay.RazorpayProtocol {
@objc func onComplete(response: [Swift.AnyHashable : Any])
}
@objc public protocol RazorpayPaymentCompletionProtocol : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String)
@objc func onPaymentSuccess(_ payment_id: Swift.String)
}
@objc public protocol RazorpayPaymentCompletionProtocolWithData : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String, andData response: [Swift.AnyHashable : Any]?)
@objc func onPaymentSuccess(_ payment_id: Swift.String, andData response: [Swift.AnyHashable : Any]?)
}
@objc public protocol ExternalWalletSelectionProtocol {
@objc func onExternalWalletSelected(_ walletName: Swift.String, withPaymentData paymentData: [Swift.AnyHashable : Any]?)
}
@objc public class PluginPaymentModel : ObjectiveC.NSObject {
final public let merchantKey: Swift.String
final public let dictPaymentInformation: [Swift.AnyHashable : Any]
final public let delegate: Razorpay.PluginPaymentCompletionDelegate
@objc override dynamic public init()
@objc deinit
}
@objc public class Otpelf : ObjectiveC.NSObject {
@objc public static func initWithWebView(_ webView: WebKit.WKWebView, andMerchantKey merchantKey: Swift.String?)
@objc public static func getSharedInstance() -> Razorpay.Otpelf?
@objc public func setPaymentData(_ data: [Swift.AnyHashable : Any])
@objc public func webView(didFinish navigation: WebKit.WKNavigation!) throws
@objc public func close()
@objc deinit
}
@objc final public class RazorpayCheckout : ObjectiveC.NSObject {
@available(*, unavailable, message: "This method is unavailable. Use initWithKey:andDelegate: instead. See https://docs.razorpay.com/docs/ios for more information.")
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayPaymentCompletionProtocol, forViewController vc: UIKit.UIViewController)
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayProtocol) -> Razorpay.RazorpayCheckout
@objc public static func initWithKey(_ key: Swift.String, andDelegateWithData delegate: Razorpay.RazorpayPaymentCompletionProtocolWithData) -> Razorpay.RazorpayCheckout
@objc final public func setExternalWalletSelectionDelegate(_ walletDelegate: Razorpay.ExternalWalletSelectionProtocol)
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController)
@objc final public func open(_ options: [Swift.AnyHashable : Any])
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController, arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func open(_ options: [Swift.AnyHashable : Any], arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func close()
@objc final public func clearUserData()
@objc deinit
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name Razorpay
import CommonCrypto
import CoreLocation
import CoreTelephony
import Foundation
import Swift
import SystemConfiguration
import UIKit
import WebKit
public protocol PluginPaymentCompletionDelegate : AnyObject {
func paymentSuccessful(orderID: Swift.String, dictVerification: [Swift.AnyHashable : Any]?)
func paymentFailed(code: Swift.Int, errorDescription: Swift.String)
func trackEvent(event: Swift.String, withProperties dict: [Swift.AnyHashable : Any]?)
}
@objc public protocol PluginPaymentDelegate : AnyObject {
@objc func canProcessPayment(model: Razorpay.PluginPaymentModel) -> Swift.Bool
@objc func identifier() -> Swift.String
@objc func pay(model: Razorpay.PluginPaymentModel)
}
public protocol ErrorDescribable {
var localizedDescription: Swift.String { get }
}
public typealias PluginPaymentError = Razorpay.ErrorDescribable & Swift.Error
@objc public protocol RazorpayProtocol {
}
@objc public protocol RazorpayResultProtocol : Razorpay.RazorpayProtocol {
@objc func onComplete(response: [Swift.AnyHashable : Any])
}
@objc public protocol RazorpayPaymentCompletionProtocol : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String)
@objc func onPaymentSuccess(_ payment_id: Swift.String)
}
@objc public protocol RazorpayPaymentCompletionProtocolWithData : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String, andData response: [Swift.AnyHashable : Any]?)
@objc func onPaymentSuccess(_ payment_id: Swift.String, andData response: [Swift.AnyHashable : Any]?)
}
@objc public protocol ExternalWalletSelectionProtocol {
@objc func onExternalWalletSelected(_ walletName: Swift.String, withPaymentData paymentData: [Swift.AnyHashable : Any]?)
}
@objc public class PluginPaymentModel : ObjectiveC.NSObject {
final public let merchantKey: Swift.String
final public let dictPaymentInformation: [Swift.AnyHashable : Any]
final public let delegate: Razorpay.PluginPaymentCompletionDelegate
@objc override dynamic public init()
@objc deinit
}
@objc public class Otpelf : ObjectiveC.NSObject {
@objc public static func initWithWebView(_ webView: WebKit.WKWebView, andMerchantKey merchantKey: Swift.String?)
@objc public static func getSharedInstance() -> Razorpay.Otpelf?
@objc public func setPaymentData(_ data: [Swift.AnyHashable : Any])
@objc public func webView(didFinish navigation: WebKit.WKNavigation!) throws
@objc public func close()
@objc deinit
}
@objc final public class RazorpayCheckout : ObjectiveC.NSObject {
@available(*, unavailable, message: "This method is unavailable. Use initWithKey:andDelegate: instead. See https://docs.razorpay.com/docs/ios for more information.")
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayPaymentCompletionProtocol, forViewController vc: UIKit.UIViewController)
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayProtocol) -> Razorpay.RazorpayCheckout
@objc public static func initWithKey(_ key: Swift.String, andDelegateWithData delegate: Razorpay.RazorpayPaymentCompletionProtocolWithData) -> Razorpay.RazorpayCheckout
@objc final public func setExternalWalletSelectionDelegate(_ walletDelegate: Razorpay.ExternalWalletSelectionProtocol)
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController)
@objc final public func open(_ options: [Swift.AnyHashable : Any])
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController, arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func open(_ options: [Swift.AnyHashable : Any], arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func close()
@objc final public func clearUserData()
@objc deinit
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name Razorpay
import CommonCrypto
import CoreLocation
import CoreTelephony
import Foundation
import Swift
import SystemConfiguration
import UIKit
import WebKit
public protocol PluginPaymentCompletionDelegate : AnyObject {
func paymentSuccessful(orderID: Swift.String, dictVerification: [Swift.AnyHashable : Any]?)
func paymentFailed(code: Swift.Int, errorDescription: Swift.String)
func trackEvent(event: Swift.String, withProperties dict: [Swift.AnyHashable : Any]?)
}
@objc public protocol PluginPaymentDelegate : AnyObject {
@objc func canProcessPayment(model: Razorpay.PluginPaymentModel) -> Swift.Bool
@objc func identifier() -> Swift.String
@objc func pay(model: Razorpay.PluginPaymentModel)
}
public protocol ErrorDescribable {
var localizedDescription: Swift.String { get }
}
public typealias PluginPaymentError = Razorpay.ErrorDescribable & Swift.Error
@objc public protocol RazorpayProtocol {
}
@objc public protocol RazorpayResultProtocol : Razorpay.RazorpayProtocol {
@objc func onComplete(response: [Swift.AnyHashable : Any])
}
@objc public protocol RazorpayPaymentCompletionProtocol : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String)
@objc func onPaymentSuccess(_ payment_id: Swift.String)
}
@objc public protocol RazorpayPaymentCompletionProtocolWithData : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String, andData response: [Swift.AnyHashable : Any]?)
@objc func onPaymentSuccess(_ payment_id: Swift.String, andData response: [Swift.AnyHashable : Any]?)
}
@objc public protocol ExternalWalletSelectionProtocol {
@objc func onExternalWalletSelected(_ walletName: Swift.String, withPaymentData paymentData: [Swift.AnyHashable : Any]?)
}
@objc public class PluginPaymentModel : ObjectiveC.NSObject {
final public let merchantKey: Swift.String
final public let dictPaymentInformation: [Swift.AnyHashable : Any]
final public let delegate: Razorpay.PluginPaymentCompletionDelegate
@objc override dynamic public init()
@objc deinit
}
@objc public class Otpelf : ObjectiveC.NSObject {
@objc public static func initWithWebView(_ webView: WebKit.WKWebView, andMerchantKey merchantKey: Swift.String?)
@objc public static func getSharedInstance() -> Razorpay.Otpelf?
@objc public func setPaymentData(_ data: [Swift.AnyHashable : Any])
@objc public func webView(didFinish navigation: WebKit.WKNavigation!) throws
@objc public func close()
@objc deinit
}
@objc final public class RazorpayCheckout : ObjectiveC.NSObject {
@available(*, unavailable, message: "This method is unavailable. Use initWithKey:andDelegate: instead. See https://docs.razorpay.com/docs/ios for more information.")
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayPaymentCompletionProtocol, forViewController vc: UIKit.UIViewController)
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayProtocol) -> Razorpay.RazorpayCheckout
@objc public static func initWithKey(_ key: Swift.String, andDelegateWithData delegate: Razorpay.RazorpayPaymentCompletionProtocolWithData) -> Razorpay.RazorpayCheckout
@objc final public func setExternalWalletSelectionDelegate(_ walletDelegate: Razorpay.ExternalWalletSelectionProtocol)
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController)
@objc final public func open(_ options: [Swift.AnyHashable : Any])
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController, arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func open(_ options: [Swift.AnyHashable : Any], arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func close()
@objc final public func clearUserData()
@objc deinit
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
// swift-module-flags: -target armv7-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name Razorpay
import CommonCrypto
import CoreLocation
import CoreTelephony
import Foundation
import Swift
import SystemConfiguration
import UIKit
import WebKit
public protocol PluginPaymentCompletionDelegate : AnyObject {
func paymentSuccessful(orderID: Swift.String, dictVerification: [Swift.AnyHashable : Any]?)
func paymentFailed(code: Swift.Int, errorDescription: Swift.String)
func trackEvent(event: Swift.String, withProperties dict: [Swift.AnyHashable : Any]?)
}
@objc public protocol PluginPaymentDelegate : AnyObject {
@objc func canProcessPayment(model: Razorpay.PluginPaymentModel) -> Swift.Bool
@objc func identifier() -> Swift.String
@objc func pay(model: Razorpay.PluginPaymentModel)
}
public protocol ErrorDescribable {
var localizedDescription: Swift.String { get }
}
public typealias PluginPaymentError = Razorpay.ErrorDescribable & Swift.Error
@objc public protocol RazorpayProtocol {
}
@objc public protocol RazorpayResultProtocol : Razorpay.RazorpayProtocol {
@objc func onComplete(response: [Swift.AnyHashable : Any])
}
@objc public protocol RazorpayPaymentCompletionProtocol : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String)
@objc func onPaymentSuccess(_ payment_id: Swift.String)
}
@objc public protocol RazorpayPaymentCompletionProtocolWithData : Razorpay.RazorpayProtocol {
@objc @available(*, deprecated, message: "this function will accept a code of Type Int and not Int32 in future releases")
func onPaymentError(_ code: Swift.Int32, description str: Swift.String, andData response: [Swift.AnyHashable : Any]?)
@objc func onPaymentSuccess(_ payment_id: Swift.String, andData response: [Swift.AnyHashable : Any]?)
}
@objc public protocol ExternalWalletSelectionProtocol {
@objc func onExternalWalletSelected(_ walletName: Swift.String, withPaymentData paymentData: [Swift.AnyHashable : Any]?)
}
@objc public class PluginPaymentModel : ObjectiveC.NSObject {
final public let merchantKey: Swift.String
final public let dictPaymentInformation: [Swift.AnyHashable : Any]
final public let delegate: Razorpay.PluginPaymentCompletionDelegate
@objc override dynamic public init()
@objc deinit
}
@objc public class Otpelf : ObjectiveC.NSObject {
@objc public static func initWithWebView(_ webView: WebKit.WKWebView, andMerchantKey merchantKey: Swift.String?)
@objc public static func getSharedInstance() -> Razorpay.Otpelf?
@objc public func setPaymentData(_ data: [Swift.AnyHashable : Any])
@objc public func webView(didFinish navigation: WebKit.WKNavigation!) throws
@objc public func close()
@objc deinit
}
@objc final public class RazorpayCheckout : ObjectiveC.NSObject {
@available(*, unavailable, message: "This method is unavailable. Use initWithKey:andDelegate: instead. See https://docs.razorpay.com/docs/ios for more information.")
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayPaymentCompletionProtocol, forViewController vc: UIKit.UIViewController)
@objc public static func initWithKey(_ key: Swift.String, andDelegate delegate: Razorpay.RazorpayProtocol) -> Razorpay.RazorpayCheckout
@objc public static func initWithKey(_ key: Swift.String, andDelegateWithData delegate: Razorpay.RazorpayPaymentCompletionProtocolWithData) -> Razorpay.RazorpayCheckout
@objc final public func setExternalWalletSelectionDelegate(_ walletDelegate: Razorpay.ExternalWalletSelectionProtocol)
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController)
@objc final public func open(_ options: [Swift.AnyHashable : Any])
@objc final public func open(_ options: [Swift.AnyHashable : Any], displayController: UIKit.UIViewController, arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func open(_ options: [Swift.AnyHashable : Any], arrExternalPaymentEntities: [Razorpay.PluginPaymentDelegate])
@objc final public func close()
@objc final public func clearUserData()
@objc deinit
}
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit b25c3ff

Please sign in to comment.