0
集成我設置委託PGTransactionDelegate但它示出了像 視圖 - 控制器的誤差不與協議符合「PGTransactionDelegate」Paytm SDK IOS在迅速
代碼:
Paytm目標標題中橋接報頭
#import "PaymentsSDK.h
委託方法在視圖 - 控制器
// On Successful Payment
func didSucceedTransaction(controller: PGTransactionViewController, response: [NSObject : AnyObject]) {
print(response)
print("Deducted amount :Rs. \(response["TXNAMOUNT"]!)")
self.removeController(controller)
}
// On Failure
func didFailTransaction(controller: PGTransactionViewController, error: NSError, response: [NSObject : AnyObject]) {
print(response)
if response.count == 0 {
print(response.description)
}
else if error != 0 {
print(error.localizedDescription)
}
self.removeController(controller)
}
//On Cancellation
func didCancelTransaction(controller: PGTransactionViewController, error: NSError, response: [NSObject : AnyObject]) {
print("Transaction has been Cancelled")
self.removeController(controller)
}
func didFinishCASTransaction(controller: PGTransactionViewController, response: [NSObject : AnyObject]) {
print(response);
}
在你的ViewController類 –
添加PGTransactionDelegate我在我的視圖控制器已經添加PGTransactionDelegate還是它顯示一個錯誤 – user8198079
你好,你幫我paytm集成所有工作正常,但得到paytm的defult頁。 – user8198079