通联支付,招行一网通支付,银联支付,核心代码

通联支付
[APay startPay:[dic objectForKey:@"paaParams"] viewController:self delegate:self mode:@"00"];
//招行一网通支付(_urlstr是拼接的支付支付串,你们可以根据你们后台返给你们的格式去拼接)然后用UIwebview去加载

_urlStr=[NSString stringWithFormat:@"loading...
",[dic objectForKey:@"requestUrl"],[dic objectForKey:@"strBranchID"],[dic objectForKey:@"strCono"],[dic objectForKey:@"strBillNo"],[dic objectForKey:@"strAmount"],[dic objectForKey:@"strDate"],[dic objectForKey:@"merchantRetUrl"],[dic objectForKey:@"strMerchantUrl"],[dic objectForKey:@"strMerchantPara"],[dic objectForKey:@"MerchantCode"]];

//银联支付分两种,网页支付跟插件支付


UnionpayPayViewController *UnionpayPay=[[UnionpayPayViewController alloc]init];
                        UnionpayPay.houseId=[self.communityDic objectForKey:@"id"];
                    //网页支付
                        UnionpayPay.stringUrl=string;
                        [self.navigationController pushViewController:UnionpayPay animated:YES];

插件支付[dicOrderNo objectForKey:@"payMsg"]为支付字符串
[[UPPaymentControl defaultControl] startPay:[dicOrderNo objectForKey:@"payMsg"] fromScheme:@"UPPayDemo" mode:@"00" viewController:self];

你可能感兴趣的:(通联支付,招行一网通支付,银联支付,核心代码)