Hi I'm trying to do some server integration with my IAPs in my iOS app. The params for what I'm sending to the server require: transaction_ID, product_ID, and pennyCost.
The first two were easy enough to figure out but I can't find the cost. I do have some NSData for the receipt but I can't figure out how to get that into any form I can use. This is my code so far.
- (void)completeTransaction:(SKPaymentTransaction *)transaction {
NSLog(@"completeTransaction...");
purchaseComplete = 2;
NSString *transaction_key = transaction.transactionIdentifier;
NSString *productID = transaction.payment.productIdentifier;
NSNumber *pennyCost = transaction.payment.product.pennyCost;
NSData *rec = [self receiptForPaymentTransaction:transaction];
}
The transaction.payment.product.pennyCost line is invalid.
Any help would be awesome thanks!