fieldsye / in-app-purchase-air-ios

Automatically exported from code.google.com/p/in-app-purchase-air-ios
0 stars 0 forks source link

restoreTransactions does not return receipts #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get the expected events, but the receipt is null for both the original and 
the current transaction.

This is testing on iOS 5.0.1, Flex SDK 4.6.0

The receipt is provided with the initial transaction, just not in any restored 
transactions.

I note that capiextension.m->generateXml deliberately blanks the receipt:

    if(t.transactionState == SKPaymentTransactionStatePurchased || t.transactionState){
        NSString* d = [[NSString alloc] initWithData:t.transactionReceipt encoding:NSASCIIStringEncoding];
        [retXML appendFormat:@"<receipt>%@</receipt>",d];
        [d release];
    }else {
        [retXML appendFormat:@"<receipt> </receipt>"];
    }

Original issue reported on code.google.com by scottand...@gmail.com on 11 Jun 2012 at 12:58

GoogleCodeExporter commented 9 years ago
Sorry, meant to add that this is in the sandbox environment.

Original comment by scottand...@gmail.com on 11 Jun 2012 at 12:58