Skip to content

Commit

Permalink
3.0.1 Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
PhonePe committed Apr 18, 2024
1 parent ee21538 commit 449c476
Show file tree
Hide file tree
Showing 31 changed files with 817 additions and 147 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [3.0.1]
- Order-Based Payments
- Security Improvement
- Performance Improvement


## [2.7.3]
- Optional appId support
- added SPM Support
Expand Down
2 changes: 1 addition & 1 deletion PhonePePayment.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PhonePePayment'
s.version = '2.7.3'
s.version = '3.0.1'
s.summary = 'PhonePePayment'

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ SWIFT_CLASS("_TtC14PhonePePayment9PPPayment")






#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
Expand Down Expand Up @@ -477,6 +480,9 @@ SWIFT_CLASS("_TtC14PhonePePayment9PPPayment")






#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@ import Foundation
import Swift
import UIKit
import WebKit
public struct B2BPGTransactionRequest {
public init(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, appSchema: Swift.String, paymentMode: PhonePePayment.PaymentMode)
}
public enum PaymentMode {
case upiIntent(request: PhonePePayment.UPIIntentPaymentMode)
case upiCollect(request: PhonePePayment.UpiCollectPaymentMode)
case netBanking(request: PhonePePayment.NetbankingPaymentMode)
case paypage(request: PhonePePayment.PayPagePaymentMode)
}
public struct UPIIntentPaymentMode {
public init(targetApp: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public protocol PGBaseCollect : Swift.Encodable {
var type: Swift.String? { get }
}
public struct VPACollectDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(vpa: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public class PhoneNumberDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(phoneNumber: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
@objc deinit
}
public struct UpiCollectPaymentMode {
public func encode(to encoder: Swift.Encoder) throws
public init(message: Swift.String, details: PhonePePayment.PGBaseCollect)
}
public struct NetbankingPaymentMode {
public init(bankId: Swift.String? = nil)
public func encode(to encoder: Swift.Encoder) throws
}
public struct PayPagePaymentMode {
public func encode(to encoder: Swift.Encoder) throws
}
@objc public enum Environment : Swift.Int {
case stage
case production
Expand Down Expand Up @@ -79,8 +121,6 @@ public enum SDKType : Swift.String {
}
}
public typealias PPTransactionCompletion = (PhonePePayment.DPSTransactionRequest?, PhonePePayment.PPResultState) -> Swift.Void
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@_inheritsConvenienceInitializers @objc final public class PPPayment : ObjectiveC.NSObject {
public static var enableDebugLogs: Swift.Bool {
get
Expand All @@ -90,21 +130,40 @@ public typealias PhonePeDPSDK = PhonePePayment.PPPayment
public static var version: Swift.String?
final public func setAdditionalInfo(sdkType: PhonePePayment.SDKType)
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil, appId: Swift.String?)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
public static func getPackageSignature() -> Swift.String
public static func getUPIAppsInstalled() -> [Swift.String]
public static func isPhonePeInstalled() -> Swift.Bool
public static func isPaytmAppPresent() -> Swift.Bool
public static func isGPayAppPresent() -> Swift.Bool
public static func checkDeeplink(_ url: Foundation.URL) -> Swift.Bool
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
@objc deinit
}
extension PPPayment {
final public func startPG(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func handlePGResult(map: [Swift.String : Any], on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@objc deinit
}
extension PPPayment {
final public func startTransaction(request: PhonePePayment.B2BPGTransactionRequest, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func startCheckoutFlow(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension PPPayment {
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension Optional where Wrapped : Swift.ExpressibleByStringLiteral {
public var emptyIfNil: Wrapped {
get
}
}
extension PhonePePayment.UPIIntentPaymentMode : Swift.Encodable {}
extension PhonePePayment.UpiCollectPaymentMode : Swift.Encodable {}
extension PhonePePayment.NetbankingPaymentMode : Swift.Encodable {}
extension PhonePePayment.PayPagePaymentMode : Swift.Encodable {}
extension PhonePePayment.Environment : Swift.Equatable {}
extension PhonePePayment.Environment : Swift.Hashable {}
extension PhonePePayment.Environment : Swift.RawRepresentable {}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@ import Foundation
import Swift
import UIKit
import WebKit
public struct B2BPGTransactionRequest {
public init(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, appSchema: Swift.String, paymentMode: PhonePePayment.PaymentMode)
}
public enum PaymentMode {
case upiIntent(request: PhonePePayment.UPIIntentPaymentMode)
case upiCollect(request: PhonePePayment.UpiCollectPaymentMode)
case netBanking(request: PhonePePayment.NetbankingPaymentMode)
case paypage(request: PhonePePayment.PayPagePaymentMode)
}
public struct UPIIntentPaymentMode {
public init(targetApp: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public protocol PGBaseCollect : Swift.Encodable {
var type: Swift.String? { get }
}
public struct VPACollectDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(vpa: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public class PhoneNumberDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(phoneNumber: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
@objc deinit
}
public struct UpiCollectPaymentMode {
public func encode(to encoder: Swift.Encoder) throws
public init(message: Swift.String, details: PhonePePayment.PGBaseCollect)
}
public struct NetbankingPaymentMode {
public init(bankId: Swift.String? = nil)
public func encode(to encoder: Swift.Encoder) throws
}
public struct PayPagePaymentMode {
public func encode(to encoder: Swift.Encoder) throws
}
@objc public enum Environment : Swift.Int {
case stage
case production
Expand Down Expand Up @@ -79,8 +121,6 @@ public enum SDKType : Swift.String {
}
}
public typealias PPTransactionCompletion = (PhonePePayment.DPSTransactionRequest?, PhonePePayment.PPResultState) -> Swift.Void
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@_inheritsConvenienceInitializers @objc final public class PPPayment : ObjectiveC.NSObject {
public static var enableDebugLogs: Swift.Bool {
get
Expand All @@ -90,21 +130,40 @@ public typealias PhonePeDPSDK = PhonePePayment.PPPayment
public static var version: Swift.String?
final public func setAdditionalInfo(sdkType: PhonePePayment.SDKType)
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil, appId: Swift.String?)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
public static func getPackageSignature() -> Swift.String
public static func getUPIAppsInstalled() -> [Swift.String]
public static func isPhonePeInstalled() -> Swift.Bool
public static func isPaytmAppPresent() -> Swift.Bool
public static func isGPayAppPresent() -> Swift.Bool
public static func checkDeeplink(_ url: Foundation.URL) -> Swift.Bool
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
@objc deinit
}
extension PPPayment {
final public func startPG(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func handlePGResult(map: [Swift.String : Any], on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@objc deinit
}
extension PPPayment {
final public func startTransaction(request: PhonePePayment.B2BPGTransactionRequest, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func startCheckoutFlow(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension PPPayment {
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension Optional where Wrapped : Swift.ExpressibleByStringLiteral {
public var emptyIfNil: Wrapped {
get
}
}
extension PhonePePayment.UPIIntentPaymentMode : Swift.Encodable {}
extension PhonePePayment.UpiCollectPaymentMode : Swift.Encodable {}
extension PhonePePayment.NetbankingPaymentMode : Swift.Encodable {}
extension PhonePePayment.PayPagePaymentMode : Swift.Encodable {}
extension PhonePePayment.Environment : Swift.Equatable {}
extension PhonePePayment.Environment : Swift.Hashable {}
extension PhonePePayment.Environment : Swift.RawRepresentable {}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@ import Foundation
import Swift
import UIKit
import WebKit
public struct B2BPGTransactionRequest {
public init(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, appSchema: Swift.String, paymentMode: PhonePePayment.PaymentMode)
}
public enum PaymentMode {
case upiIntent(request: PhonePePayment.UPIIntentPaymentMode)
case upiCollect(request: PhonePePayment.UpiCollectPaymentMode)
case netBanking(request: PhonePePayment.NetbankingPaymentMode)
case paypage(request: PhonePePayment.PayPagePaymentMode)
}
public struct UPIIntentPaymentMode {
public init(targetApp: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public protocol PGBaseCollect : Swift.Encodable {
var type: Swift.String? { get }
}
public struct VPACollectDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(vpa: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
}
public class PhoneNumberDetails : PhonePePayment.PGBaseCollect {
public var type: Swift.String? {
get
}
public init(phoneNumber: Swift.String)
public func encode(to encoder: Swift.Encoder) throws
@objc deinit
}
public struct UpiCollectPaymentMode {
public func encode(to encoder: Swift.Encoder) throws
public init(message: Swift.String, details: PhonePePayment.PGBaseCollect)
}
public struct NetbankingPaymentMode {
public init(bankId: Swift.String? = nil)
public func encode(to encoder: Swift.Encoder) throws
}
public struct PayPagePaymentMode {
public func encode(to encoder: Swift.Encoder) throws
}
@objc public enum Environment : Swift.Int {
case stage
case production
Expand Down Expand Up @@ -79,8 +121,6 @@ public enum SDKType : Swift.String {
}
}
public typealias PPTransactionCompletion = (PhonePePayment.DPSTransactionRequest?, PhonePePayment.PPResultState) -> Swift.Void
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@_inheritsConvenienceInitializers @objc final public class PPPayment : ObjectiveC.NSObject {
public static var enableDebugLogs: Swift.Bool {
get
Expand All @@ -90,21 +130,40 @@ public typealias PhonePeDPSDK = PhonePePayment.PPPayment
public static var version: Swift.String?
final public func setAdditionalInfo(sdkType: PhonePePayment.SDKType)
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil, appId: Swift.String?)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
public static func getPackageSignature() -> Swift.String
public static func getUPIAppsInstalled() -> [Swift.String]
public static func isPhonePeInstalled() -> Swift.Bool
public static func isPaytmAppPresent() -> Swift.Bool
public static func isGPayAppPresent() -> Swift.Bool
public static func checkDeeplink(_ url: Foundation.URL) -> Swift.Bool
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@available(*, deprecated, message: "PhonePeDPSDK class now deprecated. Please use PPPayment instead")
public typealias PhonePeDPSDK = PhonePePayment.PPPayment
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
public init(environment: PhonePePayment.Environment = .production, enableLogging: Swift.Bool? = nil)
@available(*, deprecated, message: "init method now deprecated. Please use new method instead")
@objc convenience override dynamic public init()
@objc deinit
}
extension PPPayment {
final public func startPG(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func handlePGResult(map: [Swift.String : Any], on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
@objc deinit
}
extension PPPayment {
final public func startTransaction(request: PhonePePayment.B2BPGTransactionRequest, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
final public func startCheckoutFlow(merchantId: Swift.String, orderId: Swift.String, token: Swift.String, on viewController: UIKit.UIViewController, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension PPPayment {
final public func startPhonePeTransactionRequest(transactionRequest request: PhonePePayment.PPTransactionRequest, on viewController: UIKit.UIViewController, animated: Swift.Bool, completion: @escaping PhonePePayment.PPTransactionCompletion)
}
extension Optional where Wrapped : Swift.ExpressibleByStringLiteral {
public var emptyIfNil: Wrapped {
get
}
}
extension PhonePePayment.UPIIntentPaymentMode : Swift.Encodable {}
extension PhonePePayment.UpiCollectPaymentMode : Swift.Encodable {}
extension PhonePePayment.NetbankingPaymentMode : Swift.Encodable {}
extension PhonePePayment.PayPagePaymentMode : Swift.Encodable {}
extension PhonePePayment.Environment : Swift.Equatable {}
extension PhonePePayment.Environment : Swift.Hashable {}
extension PhonePePayment.Environment : Swift.RawRepresentable {}
Expand Down
Binary file not shown.
Loading

0 comments on commit 449c476

Please sign in to comment.