iPhone sandbox environment asks for credit card - iphone

I previously successfully created an app including in-app and was able to test then in sandbox environment before submitting to app store.
Now I am working on update. I am not able to test in-app in sandbox. I have my iphone logged out of app store. When I click on purchase, it takes me to credit card info.
I eliminated the test user and creates a new test user but the same thing is happening.
Please help

I figured the issue. We need to delete the previous installation of app from device before we do this test.

Related

Your Apple ID has been disabled [Environment: Sandbox]

i am testing my application in-app purchases with iTunes test account.
I run the game and i log-in to sand box test account.
when try to buy something in the app a message box prompt me with confirm your in-app purchase information.
Then I click “Buy” it ask me for Apple ID Password for my sand box account. When I give the password it prompt me with following message ...
Your Apple ID has been disabled.
[Environment: Sandbox]
I tested with several test accounts same result. Can anyone provide some help on this?
If you use sandbox IAP test accounts to login to real iTunes Store or in Settings app, your sandbox account gets disabled.
I can't find the exact documentation URL right now, but I'm sure I have read it.
Here is a warning message from documentation:
Important: Do not sign in with your test account in the Settings application.
This may be due to new iOS Paid App agreements that haven't been agreed to yet.
You need to make sure you log out of your real account in the App Store app before using a test user account.

Does the sandbox enviroment still work once the iphone app goes live?

Does the sandbox environment still work once the app goes live ?
I just want to know if i will be able to further test my in-app purchase once the app is approved by apple.
Yes. If you use your developer certificate to sign your app and sign in to iTunes using the account you created in iTunes Connect, the sandbox is still present and usable.

How to test in app purchase without sandbox

Is there any way i can test in app purchases without sandbox. I want to know what happens for in app purchases that are not reviewed by apple team. I can retrieve it properly on sandbox environment.
It is not possible to test the in App purchase without sandbox. You need to create test account for testing.
In order to go live in app store your In-app purchases must be reviewed by apple.

Can't enter test user email for in-app purchase sandbox

I've created my iTunes Connect in-app test user and implemented all my in-app purchase code. I clicked on the home button -> settings -> appstore -> signout button. I launch my app through xcode. When it goes to perform a purchase transaction it continues to bring up my real itunes connect user info prompting me for the password. Even though it shows me as signed out in the settings appstore screen it never prompts me to enter my test user's email address when I'm testing in-app purchases.
Anyone have any ideas what's going on?
Might try rebooting your device. If you go into the AppStore.app, Featured Tab, and scroll all the way to the bottom where it should show your login name, are you still signed in?
Make sure you did not install your development version over distribution version.
My case:
I’ve downloaded my application from Apple AppStore – distribution version. Later, started debug session over installed application and got the same situation as described the question author. No sandbox environment for in-app purchase.
Solution:
Just uninstall the application and start debug/test your application again – xcode will install development version to your device.
Now there is a new way to log in and log out test users. Under
Settings -> iTunes & App Store
You can manage your current sandbox user. If you log out the sandbox user there you will be asked to give the email address for your user when you try buying inside your app.

Why doesn't in-app purchase show my application's name when testing in the sandbox?

I have completed in app purchase for my application. Its working fine.
The only problem i have , when i test in app purchase in sandbox enviornment, It shows a message do you want to buy an "un known app" for 1.79. why doesnt it shows the name of the app.
Plus when i am going to upload the final binary to app store. what i need to do to swrich in app purchase from sandbox enviornment to real in app purchase or it will switch automaticall?
Thanks guys
Probably your configuration on iTunes connect for this in app purchase is wrong, maybe you forgot to enter the name.
Go to iTunes connect, Manage you in app purchases, select the desired app, and make sure that you have all the fields correctly filled.
When you release on the app store, you don't have to do anything, the sandbox environment is just used when you are developing, when the app is uploaded to the app store, this behavior changes and you can't use your sandbox account anymore
Hope that helps.
When I added in-app purchase support to my application, I had already released a version so there was an entry in iTunes Connect. But I've read that you need to add a new application in iTunes Connect, but check the option to upload a binary later. Then you can enable In-App Purchase on it and configure items.
And your sandbox does not go away after the application is submitted. The In-App Purchase system determines whether to use a sandbox based on the account that is currently logged in to the store on the device. I think as long as you don't have a credit card (or any payment information?) associated with the account, and the account is designated as a In-App Purchase Test User in iTunes Connect, it will use the sandbox. You can log out and use a different account through the "Store" item in Settings.