문제

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"

도움이 되었습니까?

해결책

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

Try this it may help you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top