Reputation: 1686
Iam using following code for In App purchase and and its working but i wanna know the transaction receipt .I know its in encoded format but i have to send that to my server.So please tell me where i can find this ? how to add code for that currently iam using this code
- (void)completeTransaction:(SKPaymentTransaction *)transaction {
NSLog(@"completeTransaction...");
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Alert" message:@"Transaction completed." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
[self provideContentForProductIdentifier:transaction.payment.productIdentifier];
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
}
is this a receipt ?? "SKPaymentTransaction: 0x147e1860"
Upvotes: 1
Views: 1113
Reputation: 2048
NSString *receiptStr= [Base64Encoding base64EncodingForData:(transaction.transactionReceipt) WithLineLength:0];
Try this it may help you.
Upvotes: 1