Skip to content

Commit

Permalink
Support with Checkoutpro
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Garg committed Oct 14, 2021
1 parent ce7fd35 commit 66e1151
Show file tree
Hide file tree
Showing 56 changed files with 174 additions and 370 deletions.
2 changes: 1 addition & 1 deletion PayUIndia-NativeOtpAssist-Release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ podTrunkPush() {
}

podName="PayUIndia-NativeOtpAssist"
podVersion="1.0.0"
podVersion="1.1.0"

podSpec="${podName}.podspec"
tag="${podName}_${podVersion}"
Expand Down
4 changes: 2 additions & 2 deletions PayUIndia-NativeOtpAssist.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PayUIndia-NativeOtpAssist"
s.version = "1.0.0"
s.version = "1.1.0"
s.license = "MIT"
s.homepage = "https://github.com/payu-intrepos/PayUNativeOtpAssist-iOS"
s.author = { "PayUbiz" => "[email protected]" }
Expand All @@ -15,7 +15,7 @@ s.documentation_url = "https://payumobile.gitbook.io/sdk-integration/ios/nativ
s.platform = :ios , "11.0"
s.vendored_frameworks = 'framework/PayUNativeOtpAssist.xcframework'
s.dependency 'PayUIndia-NetworkReachability', '~> 1.0'
s.dependency 'PayUIndia-PayUParams', '~> 2.0'
s.dependency 'PayUIndia-PayUParams', '~> 2.1'
s.dependency 'PayUIndia-Analytics', '~> 1.0'
s.dependency 'PayUIndia-CrashReporter', '~> 1.0'

Expand Down
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.
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.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef PAYUNATIVEOTPASSIST_SWIFT_H
#define PAYUNATIVEOTPASSIST_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand Down Expand Up @@ -187,7 +189,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import ObjectiveC;
@import UIKit;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
Expand All @@ -205,18 +206,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# pragma pop_macro("any")
#endif


SWIFT_CLASS("_TtC19PayUNativeOtpAssist7BinData")
@interface BinData : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC19PayUNativeOtpAssist8MetaData")
@interface MetaData : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSString;

SWIFT_CLASS("_TtC19PayUNativeOtpAssist14PayUAcsRequest")
@interface PayUAcsRequest : NSObject
Expand Down Expand Up @@ -249,19 +239,20 @@ SWIFT_CLASS("_TtC19PayUNativeOtpAssist13PayUOtpAssist")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class VerifyPayment;
@class PayUVerifyPayment;

SWIFT_PROTOCOL("_TtP19PayUNativeOtpAssist24PayUOtpAssistAPIProtocol_")
@protocol PayUOtpAssistAPIProtocol
- (void)initiatePaymentWithPaymentParam:(PayUPaymentParam * _Nonnull)paymentParam completion:(void (^ _Nonnull)(VerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)initiatePaymentWithPostData:(NSString * _Nonnull)postData completion:(void (^ _Nonnull)(VerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)submitOTPWithOtp:(NSString * _Nonnull)otp completion:(void (^ _Nonnull)(VerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)resendOTPWithCompletion:(void (^ _Nonnull)(VerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)cancelTransactionWithCompletion:(void (^ _Nonnull)(VerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)initiatePaymentWithPaymentParam:(PayUPaymentParam * _Nonnull)paymentParam completion:(void (^ _Nonnull)(PayUVerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)initiatePaymentWithPostData:(NSString * _Nonnull)postData completion:(void (^ _Nonnull)(PayUVerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)submitOTPWithOtp:(NSString * _Nonnull)otp completion:(void (^ _Nonnull)(PayUVerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)resendOTPWithCompletion:(void (^ _Nonnull)(PayUVerifyPayment * _Nullable, NSError * _Nullable))completion;
- (void)cancelTransactionWithCompletion:(void (^ _Nonnull)(PayUVerifyPayment * _Nullable, NSError * _Nullable))completion;
@end

@class UIColor;
@class UIImage;
@class NSNumber;

SWIFT_CLASS("_TtC19PayUNativeOtpAssist19PayUOtpAssistConfig")
@interface PayUOtpAssistConfig : NSObject
Expand All @@ -287,46 +278,13 @@ SWIFT_PROTOCOL("_TtP19PayUNativeOtpAssist21PayUOtpAssistDelegate_")
@end


SWIFT_CLASS("_TtC19PayUNativeOtpAssist10PostToBank")
@interface PostToBank : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC19PayUNativeOtpAssist9ResendOtp")
@interface ResendOtp : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC19PayUNativeOtpAssist6Result")
@interface Result : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC19PayUNativeOtpAssist9SubmitOtp")
@interface SubmitOtp : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end












SWIFT_CLASS("_TtC19PayUNativeOtpAssist13VerifyPayment")
@interface VerifyPayment : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name PayUNativeOtpAssist
import CoreTelephony
import Foundation
Expand All @@ -12,14 +12,28 @@ import Swift
import SystemConfiguration
import UIKit
import WebKit
@objc public protocol PayUOtpAssistAPIProtocol : AnyObject {
@objc func initiatePayment(paymentParam: PayUParamsKit.PayUPaymentParam, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func initiatePayment(postData: Swift.String, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func submitOTP(otp: Swift.String, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func resendOTP(completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func cancelTransaction(completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
extension PPKError {
public var formattedErrorCode: Swift.String {
get
}
public var formattedErrorDescription: Swift.String {
get
}
public var isKindOfPaymentFailure: Swift.Bool {
get
}
public var isKnownError: Swift.Bool {
get
}
}
@objc public protocol PayUOtpAssistDelegate : AnyObject {
@objc public protocol PayUOtpAssistAPIProtocol {
@objc func initiatePayment(paymentParam: PayUParamsKit.PayUPaymentParam, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func initiatePayment(postData: Swift.String, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func submitOTP(otp: Swift.String, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func resendOTP(completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func cancelTransaction(completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
}
@objc public protocol PayUOtpAssistDelegate {
@objc func onPaymentSuccess(merchantResponse: Swift.String?, payUResponse: Swift.String?)
@objc func onPaymentFailure(merchantResponse: Swift.String?, payUResponse: Swift.String?)
@objc func onError(errorCode: Swift.String?, errorMessage: Swift.String?)
Expand All @@ -31,8 +45,8 @@ import WebKit
@objc public var merchantLogo: UIKit.UIImage?
@objc public var shouldShowMerchantSummary: Swift.Bool
@objc public var merchantResponseTimeout: Swift.Int64
@objc deinit
@objc override dynamic public init()
@objc deinit
}
extension UIDevice {
public static let modelName: Swift.String
Expand All @@ -42,50 +56,8 @@ extension UIDevice {
@objc public static func open(parentVC: UIKit.UIViewController, paymentParam: PayUParamsKit.PayUPaymentParam, config: PayUNativeOtpAssist.PayUOtpAssistConfig? = nil, delegate: PayUNativeOtpAssist.PayUOtpAssistDelegate)
@objc public static func open(parentVC: UIKit.UIViewController, postData: Swift.String, config: PayUNativeOtpAssist.PayUOtpAssistConfig? = nil, delegate: PayUNativeOtpAssist.PayUOtpAssistDelegate)
public static func start()
@objc deinit
@objc override dynamic public init()
}
@objc @_inheritsConvenienceInitializers public class VerifyPayment : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class BinData : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class MetaData : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class ResendOtp : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class SubmitOtp : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class Result : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class PostToBank : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@_inheritsConvenienceInitializers @objc public class PayUAcsRequest : ObjectiveC.NSObject {
@objc public var issuerPostData: Swift.String?
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name PayUNativeOtpAssist
import CoreTelephony
import Foundation
Expand All @@ -12,14 +12,28 @@ import Swift
import SystemConfiguration
import UIKit
import WebKit
@objc public protocol PayUOtpAssistAPIProtocol : AnyObject {
@objc func initiatePayment(paymentParam: PayUParamsKit.PayUPaymentParam, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func initiatePayment(postData: Swift.String, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func submitOTP(otp: Swift.String, completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func resendOTP(completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
@objc func cancelTransaction(completion: @escaping (PayUNativeOtpAssist.VerifyPayment?, Swift.Error?) -> ())
extension PPKError {
public var formattedErrorCode: Swift.String {
get
}
public var formattedErrorDescription: Swift.String {
get
}
public var isKindOfPaymentFailure: Swift.Bool {
get
}
public var isKnownError: Swift.Bool {
get
}
}
@objc public protocol PayUOtpAssistDelegate : AnyObject {
@objc public protocol PayUOtpAssistAPIProtocol {
@objc func initiatePayment(paymentParam: PayUParamsKit.PayUPaymentParam, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func initiatePayment(postData: Swift.String, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func submitOTP(otp: Swift.String, completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func resendOTP(completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
@objc func cancelTransaction(completion: @escaping (PayUParamsKit.PayUVerifyPayment?, Swift.Error?) -> ())
}
@objc public protocol PayUOtpAssistDelegate {
@objc func onPaymentSuccess(merchantResponse: Swift.String?, payUResponse: Swift.String?)
@objc func onPaymentFailure(merchantResponse: Swift.String?, payUResponse: Swift.String?)
@objc func onError(errorCode: Swift.String?, errorMessage: Swift.String?)
Expand All @@ -31,8 +45,8 @@ import WebKit
@objc public var merchantLogo: UIKit.UIImage?
@objc public var shouldShowMerchantSummary: Swift.Bool
@objc public var merchantResponseTimeout: Swift.Int64
@objc deinit
@objc override dynamic public init()
@objc deinit
}
extension UIDevice {
public static let modelName: Swift.String
Expand All @@ -42,50 +56,8 @@ extension UIDevice {
@objc public static func open(parentVC: UIKit.UIViewController, paymentParam: PayUParamsKit.PayUPaymentParam, config: PayUNativeOtpAssist.PayUOtpAssistConfig? = nil, delegate: PayUNativeOtpAssist.PayUOtpAssistDelegate)
@objc public static func open(parentVC: UIKit.UIViewController, postData: Swift.String, config: PayUNativeOtpAssist.PayUOtpAssistConfig? = nil, delegate: PayUNativeOtpAssist.PayUOtpAssistDelegate)
public static func start()
@objc deinit
@objc override dynamic public init()
}
@objc @_inheritsConvenienceInitializers public class VerifyPayment : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class BinData : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class MetaData : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class ResendOtp : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class SubmitOtp : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class Result : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class PostToBank : ObjectiveC.NSObject, Swift.Codable {
@objc deinit
@objc override dynamic public init()
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@_inheritsConvenienceInitializers @objc public class PayUAcsRequest : ObjectiveC.NSObject {
@objc public var issuerPostData: Swift.String?
Expand Down
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 66e1151

Please sign in to comment.