Question

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

Please click here

- (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"

Was it helpful?

Solution

 NSString *receiptStr= [Base64Encoding base64EncodingForData:(transaction.transactionReceipt) WithLineLength:0];

Try this it may help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top