支付寶支付成功后傳的值{
memo = "";
result = "partner=\"\"&seller_id=\"\"&out_trade_no=\"A16010710154610000\"&subject=\"\U6930\U6c41\U6d41\U91cf-\U6d41\U91cf\U5145\U503c\"&total_fee=\"0.01\"¬ify_url=\"http://zhaol\"&service=\"mobile.securi\"&payment_type=\"1\"&_input_charset=\"utf-8\"&it_b_pay=\"30m\"&show_url=\"m.alipay.com\"&success=\"true\"&sign_type=\"RSA\"&sign=\"L9589+qTkoM/yWz3xfH4o+CN52JG4rRfja4MmsOA7gnvBh8cbrXBQbnH1fo3dGaVFQreXQ+2CVOIZ6gM+yzrPEBtHM2EK1/BLJEnZu4K91nPFRWeEz45pWeQLmV4a7N2VaN4ReOoaLhVmiSXqPA46mA1ri5abc+JKRIhBZH0Bqk=\"";
resultStatus = 9000;
}
看到沒這是返回的值,
你要用通知,記住告訴你們后台你要什么值就傳過去,后台來處理,這樣兩個人就溝通好了,當初我們差點打起來
- (void)aliPaymentResult:(AlixPayResult *)resultd {
if (resultd) {
if (resultd.statusCode == 9000 )
{//支付成功
// 支付成功后,發送通知
[[NSNotificationCenter defaultCenter] postNotificationName:@"chenggong" object:resultd.result];
// *用公鑰驗證簽名 嚴格驗證請使用result.resultString與result.signString驗簽
// */
//
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"付款成功" delegate:nil cancelButtonTitle:@"確定" otherButtonTitles:nil];
/**
在這里可以跳轉到相應的界面
*/
[alertView show];
}
if (resultd.statusCode == 6001) {//用戶中途取消
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"您中途取消了訂單" delegate:nil cancelButtonTitle:@"確定" otherButtonTitles:nil];
/**
在這里可以跳轉到相應的界面
*/
[alertView show];
}
if (resultd.statusCode == 6002) {//網絡連接出錯
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"網絡連接出錯" delegate:nil cancelButtonTitle:@"確定" otherButtonTitles:nil];
/**
在這里可以跳轉到相應的界面
*/
[alertView show];
}
if (resultd.statusCode == 4000) {//訂單支付失敗
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"您的訂單支付失敗" delegate:nil cancelButtonTitle:@"確定" otherButtonTitles:nil];
/**
在這里可以跳轉到相應的界面
*/
[alertView show];
}
} else {
}
}
- (void)paymentResult:(NSDictionary *)resultDict {
AlixPayResult *result = [[AlixPayResult alloc] initWithDict:resultDict];
NSLog(@"支付寶支付成功后傳的值%@",resultDict);
[[AliPayObject shareInstance] aliPaymentResult:result];
}
@end