StoreKit - Restore Auto Renewal Subscriptions - Original Transaction Receipt Missing
| Originator: | aviellazar | ||
| Number: | rdar://15583863 | Date Originated: | 12/4/2013 |
| Status: | Closed | Resolved: | 7/1/2014 |
| Product: | iOS | Product Version: | 7.0 |
| Classification: | Reproducible: | Always |
Summary: Restoring auto-renewal subscription IAP using [SKPaymentQueue restoreCompletedTransactions] returns the restored transactions via the - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions method. Those restored transactions has the transcation.transactionState property set to SKPaymentTransactionStateRestored, hence as documented the transaction.originalTransaction property includes the original transaction made to purchase the subscription with transaction.orginalTransaction.transactionState = SKPaymentTransactionStatePurchased. Expected: The property transaction.originalTransaction.transactionReceipt will be set with a receipt I could validate. Actual: transaction.originalTransaction.transactionReceipt is set to NIL and the transaction.transactionReceipt is set and seems to be valid. However the documentation states about the transactionReceipt property that "The contents of this property are undefined except when transactionState is set to SKPaymentTransactionStatePurchased.", and here the transactionState is set to SKPaymentTransactionStateRestored, while the receipt for the orginalTransaction which is in SKPaymentTransactionStatePurchased state is set to NIL. This occurs in iTunes Sandbox mode, with iTunes test users, not sure about production. Steps to Reproduce: 0. Setup an app with IAP capability. 1. Define and purchase an Auto Renewal Subscription IAP 2. Call [SKPaymentQueue restoreCompletedTransactions] Expected Results: Actual Results: Version: 7.0.3 Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!