• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by akeplinger · Nov 05, 2014 at 04:41 PM · iosprime31subscriptionitunesstorekit

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.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image akeplinger · Nov 05, 2014 at 06:31 PM 0
Share

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"

avatar image kamil.slawicki · Jan 16, 2015 at 03:18 PM 0
Share

Hi there,

Have you ever managed to solve the issue?

avatar image mbaker · Jun 14, 2015 at 06:19 PM 0
Share

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...

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

28 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to bind Prime31 ios storekit plugin with GUIText elements? 1 Answer

Storekit Product details stopped showing ? 0 Answers

Prime31 Storekit purchaseSuccessfulEvent claims to have receipt, but I can't find it. How do I find the receipt? 1 Answer

With Unity iOS Prime31 StoreKit plugin (3/14/14), sandbox, restoreCompletedTransactions() loops over stuck transactions n^2 times 2 Answers

Do I submit a new build on iTunes Connect to make an update to the app? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges