iOS-中国各大银行卡号查询

AFHTTPRequestOperationManager *request = [AFHTTPRequestOperationManager manager];

2.request.responseSerializer.acceptableContentTypes = [NSSetsetWithObject:@"application/json"];

3.NSDictionary *parameters = @{@"cardNo": _cardNumberField.text,

4.@"cardBinCheck": @"ture",

5.@"_input_charset": @"utf-8"

6.};

7.[requestGET:@"https://ccdcapi.alipay.com/validateAndCacheCardInfo.json"parameters:parameterssuccess:^(AFHTTPRequestOperation *operation, id responseObject) {

8.NSLog(@"%@", responseObject);

9.}failure:^(AFHTTPRequestOperation *operation, NSError *error) {

10.

11.}];

1.{

2."bank":"ABC",

3."validated":true,

4."cardType":"DC",

5."stat":"ok",

6."messages":[],

7."key":"6228430120000000000"

8.}

你可能感兴趣的:(iOS-中国各大银行卡号查询)