- Home /
iOS Storekit stuck on "Purchasing" (Prime31)
I have a subscription model system that I'm setting up. I am using a receipt validation system which passes the 64bit encoded receipt from a transaction to the iTunes server and I receive a JSON string detailing the interaction. All of the information in the result appears correct. But the original receipt still shows "Purchasing" as the transaction state. Is this expected?
On the device, in sandbox mode, I am able to create a completed transaction, confirming the purchase. I can see the output in Xcode telling me that the transaction was successful. And I have the new receipt in the app's Document's folder. I can access the receipt(s) using StoreKitBinding.getAllSavedTransactions();
When I get the transactionState for each receipt they all show up as "Purchasing". I'm assuming that this is not correct. The proper state should be "Purchased" I think.
Is there an additional step that needs to be done? I initiate the purchase with StoreKitBinding.purchaseProduct();
The StoreKitManager.purchaseSuccessfulEvent function calls StoreKitBinding.finishPendingTransaction(transactionId)
I can't see anything in the docs to imply that I need to do anything different.
The items to be purchased are auto-subscriptions, so maybe the state is supposed to be "Purchasing" all the time and I'm all set. I can't find any good docs for this specific situation.
Output in Xcode looks like this:
2014-11-05 13:27:51.284 freeone[...] total transactions that need to be finished: 1 2014-11-05 13:27:51.284 freeone[...] finishing transaction: 1000000130627445 : Onemath7days 2014-11-05 13:27:51.285 freeone[...] Store$$anonymous$$it: transaction completed: 2014-11-05 13:27:51.285 freeone[...] finalizing and asking the payment queue to finish transaction: *** received transaction Success: ID: Onemath7days, quantity: 1, transactionIdentifier: ... transactionState: Purchased, downloads: 0
(Filename: /Applications/buildAgent/work/d.../artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)
2014-11-05 13:27:51.606 freeone[...] paymentQueue:removedTransaction:
Appears to have completed, but the receipt state says "Purchasing"
Hi there,
Have you ever managed to solve the issue?
Am also seeing this issue with Non-Consumable products. Not sure if I should just assume that the Purchasing state means that the product has been purchased...