ios - Inapppurchase Receipt -
i developing application non renewable subscriptions, working fine ios6, changed deployment target 7. transactionreceipt
deprecated in ios6, move nsurl *receipturl = [[nsbundle mainbundle] appstorereceipturl];
nsdata *receipt = [nsdata datawithcontentsofurl:receipturl];
but returns nil receipt. encode data nil. please me resolve issue.
thanks advance.
you should appstore receipt, when notification purchased transaction received, check skpaymenttransactionobserver.
- (void)paymentqueue:(skpaymentqueue *)queue updatedtransactions:(nsarray<skpaymenttransaction *> *)transactions
non-renewable subscriptions aren't persistent in receipt , removed after transaction finished.
Comments
Post a Comment