Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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.

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

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

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

Running Update() in background while iOS alert or webview is active 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges