ios - Print In app purchase transaction receipt? -
iam using following code in app purchase , and working wanna know transaction receipt .i know in encoded format have send server.so please tell me can find ? how add code iam using 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 receipt ?? "skpaymenttransaction: 0x147e1860"
nsstring *receiptstr= [base64encoding base64encodingfordata:(transaction.transactionreceipt) withlinelength:0];
try may you.
Comments
Post a Comment