今天搞了下银联控件支付,使用了这个方法:
[[UPPaymentControl defaultControl] isPaymentAppInstalled];
结果报错:2017-11-28 16:25:18.079840+0800 HHde[467:20437] -canOpenURL: failed for URL: "uppaysdk://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2017-11-28 16:25:18.082126+0800 HHde[467:20437] -canOpenURL: failed for URL: "uppaywallet://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
解决办法:
不使用这个方法
[[UPPaymentControl defaultControl] isPaymentAppInstalled];
直接进行支付请求即可:
[[UPPaymentControl defaultControl] startPay:@"815129533586216304301"
fromScheme:@"UPPayDemo"
mode:@"01"
viewController:self];
顺便贴上银联开发相关资料地址:
银联开发:https://open.unionpay.com/ajweb/product/newProDetail?proId=3&cataId=30
入网申请:https://merchant.unionpay.com/join/index
技术支持qq:800033969