iOS 6.1.2收据验证

时间:2013-03-06 19:58:54

标签: iphone ios in-app-purchase verification receipt

我的一些客户抱怨在购买iOS 6.1.2产品时出错。收据验证(苹果代码)未通过以下测试:

    NSString *localIdentifier                   = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    NSString *purchaseInfoUniqueVendorId        = [purchaseInfoFromTransaction objectForKey:@"unique-vendor-identifier"];
    NSString *verifiedReceiptVendorIdentifier   = [verifiedReceiptReceiptDictionary objectForKey:@"unique_vendor_identifier"];


    if(verifiedReceiptVendorIdentifier)
    {
        if (![purchaseInfoUniqueVendorId isEqualToString:verifiedReceiptVendorIdentifier]
            || ![purchaseInfoUniqueVendorId isEqualToString:localIdentifier])
        {
            // Comment this line out to test in the Simulator.
            [self error:@"verified/local problem"];

            failCount++;
        }
    }

其他人是否也遇到过这个问题?

0 个答案:

没有答案