我正面临这种错误:“PGTransactionViewController”没有成员“initTransactionForOrder”。谁能帮我解决一下。
func Pay_btn_Action(sender:UIButton!) {
var mc: PGMerchantConfiguration = PGMerchantConfiguration.defaultConfiguration()
mc.checksumGenerationURL = "https://pguat.paytm.com/paytmchecksum/paytmCheckSumGenerator.jsp"
mc.checksumValidationURL = "https://pguat.paytm.com/paytmchecksum/paytmCheckSumVerify.jsp"
var orderDict: [NSObject : AnyObject] = NSMutableDictionary() as [NSObject : AnyObject]
orderDict["MID"] = "WorldP64425807474247"
orderDict["CHANNEL_ID"] = "WAP"
orderDict["INDUSTRY_TYPE_ID"] = "Retail"
orderDict["WEBSITE"] = "worldpressplg"
orderDict["TXN_AMOUNT"] = "1"
orderDict["ORDER_ID"] = PaymentView.generateOrderIDWithPrefix("")
orderDict["REQUEST_TYPE"] = "DEFAULT"
orderDict["CUST_ID"] = "1234567890"
var order: PGOrder = PGOrder(params: orderDict)
PGServerEnvironment.selectServerDialog(self.tbl_Payment, completionHandler: {(type: ServerType) -> Void in
var txnController: PGTransactionViewController = PGTransactionViewController.initTransactionForOrder(order)
if type != eServerTypeNone {
txnController.serverType = type
txnController.merchant = mc
txnController.delegate = self
self.showController(txnController)
}
})
}