我正在尝试在我的 IOS 移动应用程序中实现 PayFort 我已在项目中添加了 PayFort FrameWork 和捆绑包。当我初始化 payFort 对象时,它给了我以下崩溃
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UITextField setFloatingLabelActiveTextColor:]:无法识别的选择器发送到实例 0x7f81e3413d40”
我正在使用以下代码:
func payforCall(){
let payFort = PayFortController.init(enviroment: KPayFortEnviromentSandBox)
payFort?.isShowResponsePage = true;
payFort?.delegate=self
let request = NSMutableDictionary.init()
request.setValue("1000", forKey: "amount")
request.setValue("AUTHORIZATION", forKey: "command")
request.setValue("USD", forKey: "currency")
request.setValue("email@domain.com", forKey: "customer_email")
request.setValue("en", forKey: "language")
request.setValue("112233682686", forKey: "merchant_reference")
request.setValue("token" , forKey: "sdk_token")
payFort?.callPayFort(withRequest: request, currentViewController: self,
success: { (requestDic, responeDic) in
print("success")
},
canceled: { (requestDic, responeDic) in
print("canceled")
},
faild: { (requestDic, responeDic, message) in
print("faild")
})
}