How to test in app purchase without sandbox - iphone

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.

Related

In app purchase test credential

Can we use test account credentail after submitting app to appstore to make purchases. What is the validation time period of the test account credential?
No, test accounts do not work on apps which are live on the AppStore. Test accounts only work in the sandbox environment. This is stated in In-App Purchase Programming Guide:
When you launch your application from Xcode, Store Kit does not
connect to the App Store. Instead, it connects to a special sandbox
store environment. The sandbox environment uses the infrastructure of
the App Store, but it does not process actual payments. It returns
transactions as if payments were processed successfully. The sandbox
environment uses special iTunes Connect accounts that are limited to
In-App Purchase testing.
Once you publish the app on AppStore, the app starts pointing to the live AppStore (it does not go to the sandbox environment).

iOS App Beta Tester getting in-app purchase sandbox

I have in-app purchases in my app, which are live on the app store. I have sent out a new beta to my testers, and one is trying to make an in-app purchase but it is coming up with the sandbox. Is this supposed to happen? They do not have a testing account and actually want to spend money, so I figured I should ask: How or why do beta testers, who are running my iOS app on their phones and not the iOS simulator, get the app store's sandbox as opposed to the regular app store?
Please make sure that your tester will signout from testing account from Setting & they are using proper iTunes account for purchasing the product. I assume you have used proper product identifier in code as you have entered in IAP of live application. It would be great if you can once check IAP of your application in iTunes with that in code.

InAppPurchase implementation

How can I test in-app purchase before release?
I have an application which is not in the app store i haven't provide the details for submission of my application in itunesconnect and I want to implement In-app purchase for the same application is it possible?
Yes it is possible. But for that you need to login to your iTunes Connect account and submit details of ur app and then create In-App Purchases from there only. You can test it before uploading it to the app store.
Please do some R&D on your own on google and then come here with the code if u have some problem.

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.

Testing iPhone in-app purchases in ad hoc distribution mode

My iphone application has in-app purchases and those have been tested using the iTunes Connect test user account. I'm now distributing it via ad-hoc distribution to beta testers. Is there any way to make the purchases "live" so that they can test them with their real iTunes accounts and not have to use the test account? I'd clearly like to test this before formally submitting it to the iTunes store
I think they only run in sandbox mode via ad-hoc. You can't test it, but it should all work if it works through the test account.
You can't use production products, but you can create test user accounts and distribute them so that your beta testers can test the in-app purchase components. It's a bit tricky because they have to use the Settings App to log out and then log in from inside your application with the test user account.