iPhone : InApp Purchase issue - iphone

I'm new in App Developpment. I try to add In App Purchase on my app but I don't know why it's not working. I need some help.
First of all, I follow this post.
enter link description here
All seems working, but nothing append (no windows are openned to propose Purchase, no error). So I can't make any screenshot.
ID is correct ;-)
In AppStoreConnect, I created a sandbox tester, all bank informations are ok, It's disponible for sale,...
But I can't add in "AppStore" the InAppPurchase I had created ! like Apple's help ask to do, because I don't have any section for it !
enter link description here
My InAppPurchase is like this "Waiting for upload":
What should I do ?

Related

What does it mean when in-app purchases are "in review" while the app binary itself is still "waiting for review"?

I am a bit confused by this. How is Apple supposed to review in app purchase content without the app? All my IAPs are "in review" while the app itself is "waiting for review" since two days.
This is not too programming related BUT it might save other developers time to know this can happen and why. What I did:
1) Updloaded IAP content packages so I can test it.
2) Assigned IAP content packages to app, then submitted app via Xcode.
3) Found bug and rejected binary.
4) Fixed bug, resubmitted binary. But this time no way to assign the IAPs to app. They were already "waiting for review".
Did my app get stuck in a deadlock situation? Did anyone else ever experience this?
I suspect that the In App Purchases will be reviewed once your app goes into review. Your In App Purchases are already associated with the app, are they not?
However I would recommend you contact Apple through iTunes connect. I've always had good success with this in the past.
Select the 'Contact Us' link at the bottom of the iTunes connect page. In the form that appears, select App Review and Check Review Status, and then select the 'contact us' link in the text that appears.
Then describe your issue in the form, and they should tell you what you need to do.
Here is a way to fix this (its not ideal):
Delete in app purchase that is "waiting for review" in iTunes connect.
Recreate in app purchase with a different product id (you can just add a number to the end).
Refractor old references in your purchase code to the new id.
Rebuild, re-associate the product, and re-upload!

What is necessary to upload to iTunes Connect for Store Kit testing?

Most tutorials I've been able to find are dated and inconsistent with regard to what is actually necessary to have uploaded and approved in iTunes Connect. Following one tutorial I uploaded incomplete binary and rejected it. I then added an In App Purchase Item. I uploaded an image and filled in all the registration information.
So currently,
App - Status -- Developer Rejected
In App Purchase Item -- Ready to Submit
I am able to make requests to the store kit, but I am getting 0 results. Is it possible to get results with my current iTunes Connect statuses?
Edit: I appreciate the trouble shooting advice. But I want to make sure that it is in fact possible to retrieve purchase items with the above statuses.
Make sure that you provided all the details for the app including the in app purchase details along with screen shot.
Next is to make sure that the app ID's are same in server and in the app.
When testing in-app purchase, create test account in app store and use it for testing. Make sure that the mail you are using is not existing. Also on your device, you have to use those test credentials to test the app.
Hope this helps.
Yes, it is possible as I just managed to do it. My problem was tax info. Thanks to Paul Mason, your comment was the correct answer!

Need bank details for inApppurchase test

I have to add in app purchase in my application.
and for testing i just want to confirm that should i need to add my bank info ?
I just want to know that is my bank details is necessary if i am only testing and not sending it to appstope?
here
Thank You in Advance
Yes you have to add your bank info. Apple will review your bank details and approve your in-app purchase. This will take few days.
No!
You don't need to enter your bank details. In iTunes Connect, create a new user. This is your test user. You can create as many as you want.
Then, on your test device, go to Settings and log out of the App Store.
In your app, select to buy the in-app purchase. You will be prompted for some credentials. Enter your test user's credentials. This will allow you to buy the in-app purchase without using your own account.
Good luck. It is a bit fiddly getting it all working. I'll post the link to the tutorial that I used when I can.
This is the tutorial that I used. Goes through everything very clearly.
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

Expected sequence when using iTunes test user

I'm trying to test in app purchases in our app but I'm not having any luck. Part of the problem may be due to the expected sequence not being documented anywhere. Here are the steps I followed to support in-app purchases:
Create test user in iTunes Connect.
Log out of the Store on the device.
Build and run the app in Xcode using a non-wildcard App ID and provisioning profile targeting the device (an iPhone 4 running iOS 4.2.1). I've run through this building for both debug and ad-hoc release.
Make an in-app purchase.
Alert is displayed: "Confirm Your In AppPurchase" with two buttons - Cancel and Buy. Tap the Buy button.
Alert is displayed: "Sign In" with three buttons - Use Existing Apple ID, Create New Apple ID, and Cancel. Tap the Use Existing Apple ID button.
Alert is displayed: "Apple ID Password" with two text fields and two buttons - Cancel and OK. Enter the email address and password for the test user and tap the OK button.
Here is where my understanding of what is the expected behavior is deficient. Here is what I see at this point:
Alert is displayed: "This Apple ID has not yet been used in the iTunes Store. Tap Review to sign in" with two buttons - Cancel and Review. In all the documentation, blog posts, and forums, no one has mentioned this alert. Is this supposed to be displayed? I tapped the Review button.
I am now taken to the App Store app and taken through a series of steps to confirm the account.
The first page is titled "Confirm Your Country or Region" with a single value titled Store set to United States. I tapped the Next button on the toolbar at the bottom.
The second page is to agree to the terms and conditions and the Apple privacy policy. I tapped the Agree button on the toolbar at the bottom.
Alert is displayed: "I have read and agree to the iTunes Store Terms & Conditions." with two buttons - Cancel and Agree. I tapped Agree.
The third page is to confirm information for the account (email, password, security question, birth date) and enable/disable iTunes store subscription information. It requires me to enter the year (why didn't iTunes Connect just ask me for it!). I entered the birth year and then tapped the Next button on the toolbar at the bottom.
he fourth page asks is titled "Billing Information." This is when I realized something was wrong. All the documentation, blogs, and forums say I shouldn't be asked for a credit card.
Q1: What exactly should I expect once I enter the test user email address and password (the first set of steps)?
Q2: Why am I being asked for all this extra information for a test user? What should I be looking at to troubleshoot this?
Thanks for your help.
It happens when you install your development application over downloaded from App Store.
To fix this issue, you need to remove application from the device and install fresh copy using XCode.
iOS caches distribution profile somehow and requires production user if the first installation was done through App Store. With no regard what installation method was used recently.
Here is the trick (at least if worked for me..).
First log out of your real iTunes account in Settings > Store > Apple ID. You must be logged out of an account to be able to use your test account.
However, don't log in to your test account on that screen.
Go to the app, initiate your in-app purchase, and enter the test account email and password there. Assuming the test account is set up correctly (!), that should work.
Then, when finished testing, go back to Settings > Store > Apple ID and log out of the test account.
This sequence worked for me. I tried all of the above sequences and they failed for me.
Sign out of your account on the iPhone in Settings -> Store
Delete your test app
Power the iPhone off and on again
Close iTunes on your computer
Run the app again from XCode
Thanks to OmegaDelta's blog for this one:
http://omegadelta.net/2011/05/11/testing-in-app-purchases-in-ios-4-3-sandbox/
I found some answers to my questions above after I completely deleted the app off my device and tried again. I have no idea why that was required.
Q1: What exactly should I expect once I enter the test user email address and password( the first set of steps)?
No addition questions are asked once entering user credentials if it works, so if the first alert in the second list is displayed then you know it didn't work.
Q2: Why am I being asked for all this extra information for a test user? What should I be looking at to troubleshoot this?
The only thing I can think of is that there was something cached in my app from previous requests. This makes me nervous as I have no idea whether customers will have to delete the app or not like I did.
I've experienced the same problems until I quit iTunes and installed the right provisioning profile to my device. Running iTunes with Xcode restored my account from time to time so even when I log out on the device I was suggested to use my (not test) account in the app. Installing the correct profile fixed the second problem.
Hope it can help somebody too.
None of these answers is very specific or wholly correct, and the in-app behavior has changed slightly over the past year wrt test accounts. The true/current solution to this if you hit it: go through the review/sign-in pages in iTunes for the test account and just "cancel" from the "enter billing information" screen with no harm, no foul. If for whatever reason you never get prompted to review/sign-in, then don't bother to do so.
I was able to get around this issue by signing my test user into a different app that I was developing, then going back to the app where I was having problems (no amount of deleting or restarting helped). As others have said, you don't want to be signed in as the test user in the Settings menu when you try to perform your IAP.

In App Purchase Problem

please help me , i am getting product count 0 in response.product.
i have followed all the steps of in app purchase in documentation .
1.Provisioning profile and i allowed in app purchase.
2.Dummy app binary uploaded to itunes and rejected that by myself.
3.Setup 2 products in itunes in app purchase and app identifier was selected.
All the things seems fine but i am getting product count 0.
Please let me know how can i solve this issue .
Thanks
Make sure to check the "Cleared for Sale" checkbox for the in-app purchase in iTunes Connect. Note that this does not submit the in-app purchase for approval to Apple. To do that, you need to click the green "Approve" button in the upper right hand corner.
All you should need to do to test the in-App purchase is check the "Cleared for Sale" checkbox for the purchase in iTunes Connect.
Don't reject your binary. The binary has to be waiting for review (or cleared for sale) before the store will work right.
Also make sure each of your in app purchase items are cleared for sale on iTunes Connect.
You can create a new application but not upload the binary on iTunes Connect. This way your app is in the "Waiting for binary" (or something like that) state.
Then you're binary won't be rejected.
If anybody needs help implementing the In App Purchase feature, there's a complete sample here
are you sure add Product information in iTunes conect.
Enter iTunes Connect, Click Manage Your In app Purchases link, add Product information and id.
I post a summary in my msn space http://leefj.spaces.live.com/blog/cns!ADF54DD0A549AD9B!471.entry