danfreeman / in-app-purchase-air-ios

Automatically exported from code.google.com/p/in-app-purchase-air-ios
0 stars 1 forks source link

Issue trying to re-purchase a product #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a non consumable product with tier 11.
2. Purchase it.
3. Purchase it once again.

What is the expected output? What do you see instead?

The expected ouput would be:
  - I purchase the product and try to purchase it once again.
  - I should get a notification.
  - I confirm it and I get an AppPurchaseEvent.UPDATED_TRANSACTIONS event with values indicating the purchase was made.

What I get:
  - Product A is already purchase: I try to buy it once again.
  - I get a AppPurchaseEvent.UPDATED_TRANSACTIONS event. The state of the transaction is failed, with an error saying it was not possible to connect to the app store:2 (it's not true tho).
  - Then I see an alert with a single OK button, saying I already have that product, and it will be downloaded again.
  - I press OK, and I don't get any other event.

What version of the product are you using? On what operating system?

The ANE is the Nov 4th version. Tested on several devices: iPhone 4, iPhone 
3GS, iPad... all of them with iOS 5.0.1.

Please provide any additional information below.

Made sure no transaction was pending, tried to restore the devices, tried the 
app with different products, tried to recreate the problematic product, etc. 
Same result.

I noticed that the alert saying I already have the product has two buttons when 
the execution flow is what I expect, and only one OK button when it doesn't.

Original issue reported on code.google.com by neverbi...@gmail.com on 23 Dec 2011 at 6:06

GoogleCodeExporter commented 9 years ago
I tried, once more, to recreate the problematic IAP product, and now it works 
fine, I still can reproduce it when I use the app with a different ID and IAP 
products.

Is this a problem caused by the extension, or is it internal to iOS or Apple? 
Would love to know.

Original comment by neverbi...@gmail.com on 23 Dec 2011 at 8:04

GoogleCodeExporter commented 9 years ago
I'm getting the same error.  When I try and restore or when I try and purchase 
a new product.  I get "error0:could not connect to Apple Store"

Funny thing, is it used to work just fine.  I don't recall changin anything, 
but now no in-apps work.  I get the product listing just fine though...

This post mean anything...
http://blog.mugunthkumar.com/coding/in-app-purchases-troubleshooting-code0-canno
t-connect-to-itunes-store-skerrorunknown/

How did you get yours working neverbi?

Original comment by wils...@gmail.com on 29 Dec 2011 at 7:29

GoogleCodeExporter commented 9 years ago
I think your problem is more related to Apple being closed for vacations. IIRC 
they are opening later today.

Original comment by neverbi...@gmail.com on 29 Dec 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Yup this bug still exists. The RemovedTransactions is dispatched but it's also 
dispatched if someone hits Cancel on the request to purchase the product... so 
i have no way of telling if they hit Cancel on the request to purchase or if 
they've already purchased it :-\

Original comment by K2xL....@gmail.com on 8 Apr 2012 at 2:58

GoogleCodeExporter commented 9 years ago
From what I read this may be an expected behaviour of the store kit that 
happens when some pending transaction is left in the queue forever.

In fact, if I make sure I finish all my transactions in my app, I cannot see 
this problem anymore.

Original comment by neverbi...@gmail.com on 8 Apr 2012 at 3:25