I am using In App purchase and it is working fine when i am testing it from the sandbox account. But when i tried to purchase the online subscription by making amount zero by live account. it is giving an error of
[you are not authorised to make purchase in this inApp in SandBox at this time Environment Sandbox]
i guess it was setup in sand box mode. So As i tested in sandbox and it is working fine ho can i make it live to that any one can purchase it.
I got my answer for the apple document that app installed from Xcode is always in Sandbox environment and app download from live itunes is Live. thanks a lot to all and specially for one who commented heae on post and guided me.
=>
StoreKit connects to the sandbox environment when you launch your application from Xcode, from your test device (iOS), or from the Finder (OS X). It connects to a production environment for applications that were downloaded from the App Store. You must not use your test user account to sign into the production environment. This will result in your test user account becoming invalid. Invalid test accounts cannot be used to test In-App Purchase again.
<=
Apple Document
You can not test live app with sandbox test ID as sandbox email ID has no real credit. If In App Purchase is working for sandbox ID, it will work for real IDs too.
Related
An iOS App has given for testing in TestFlight for testing In-App purchase
It used to test using the sandBox account, but now it's not working with sandBox and gets an error as “Your account has been disabled in the App Store and iTunes”.
Rechecked the product creation and checked the same - it's not worked.
Then created a new sandbox account and tried the same - its not worked, showed the same error.
Checked the issues in the web and from the related answers, tried to remove the account details from Settings --> iTunes & App Store - its not worked, showed the same error.
TestFlight users don't require a sandbox account, but they will test against an automatically created sandbox account.
This means it's no longer necessary to create test accounts in iTunes Connect.
Your TestFlight user is a legitimate App Store user, but doing in-app purchases made with beta builds are free within the context of the beta version.
More details available in the following section Testing in-app purchases with TestFlight by Marko Kruustük.
I'm currently a beta tester (Internal Tester) for an application we are building for IOS.
We are having some issues with the in app purchase section of the application however it hasn't been consistent across all devices.
My college has an iPhone X and I have an iPhone 7 and we both run into the same issue.
No matter how we are signed into the sandbox account (or not signed in; or turned off the device while signed in; or using a new account and only signing in when on the application) we receive the same popup when trying to test an in app purchase.
The popup is missing one "Environment [Sandbox]"
This alert comes if you try to purchase sandbox product with real account credentials or vice versa.
Try below things -
Delete the app.
Logout from iTunes and iCloud.
Restart the phone and make sure you have logged out of your real account.
Your app must be archived with debug mode only. Production signed build with Adhoc/Release won't work with sandbox mode.
Currently My app's Version 2.0 is live.
Recently I have uploaded version 2.1. I have made sandbox mode disabled from app which I am using for renewal subscriptions.
Now My app V2.1 is in waiting for review status. During this period when I am testing the app, it shows me [Environment:Sandbox] while testing In-App purchases.
I am trying to make in app purchase by downloading the app from test flight i.e. V2.1
V2.1 is in waiting for review mode and I am trying to restore my in app purchases with V2.1 which I already bought with V2.0.
Will this sandbox environment be disabled automatically by apple once the app is live?
Or there is anything I am missing?
Can anyone please help me out?
Thanks a lot in advance.
What you mean by "I have made sandbox mode disabled from app which I am using for renewal subscriptions."?
You won't get sandbox once you use app downloaded from AppStore. It's related to how the app is signed - test flight build is ad-hoc distributed which implies you get sandbox.
You can't disable sandbox in your app. Your provisioning profile will control which servers the IAP process looks at. You need to generate an app that's signed for Release to access the Prod IAP server.
I implemented in app purchase in my iOS app and I want to do a real test (not a sandbox) before submitting this new version to Apple
Of course, the current version of the app (in the App Store) was validated with a product
So, I archived the app using an Ad Hoc distribution profile and I generated an IPA file for Ad Hoc deployment. But when I installed the app via Testflight on my device, I discovered that the app was in sandbox environment!
Is there a way to do a "real" purchase before submitting the app to the App Store ?
You can actually test the in-app purchasing in the sandbox environment, basically you'll need to set up an test user account in your iTunesConnect.
Check the apple documentation here:
http://developer.apple.com/library/ios/#technotes/tn2259/_index.html
You'll be able to find all the information related to In-App Purchasing, including sandbox testing.
Short answer: you can't test a real purchase (aka, spend real money). It isn't possible.
Slightly longer answer: You'll automatically hit the sandbox environment unless it's an apple-signed release build. Even ad-hoc signed builds hit the sandbox.
To test a new IAP: create your IAP (it will be in "needs approval mode" until submitted with the final build and test against the sandbox - that's fine). If your purchase works against the sandbox, it should work against prod with real money as well. It would be great to do a trial run with real money, but that's just not possible until the IAP is approved and you get the production signed version of the app from the app store.
Just create a test account on iTunes Connect. Then log out from the device and run your app from Xcode.
To get access to the purchase you need apple signature, because you are connecting with the apple servers.
I assume that your app, is doesnt have that signature, so your request goes to the sandbox.
Ok here goes trying to explain this as clearly as possible:)
I have developed an app for a partner.
They wanted to submit the app under their company so I was given the certs and profiles. I packaged the app ...they submitted and all was fine.
Now I need to update the app with new content. So all this is done and the client has set up new in App purchase products for the app.
The Problem:
When I am testing all of the "product requests" are successful and it displays the description of the product etc.
However when I come to test purchasing with a iTunes test account it does not work. It says
"This account doesn't have permission to make in app purchases. You
can change account permissions in iTunes Connect."
However to try and work out the problem, as a test I quickly set up a "test" app in OUR iTunes account and a new bundle id etc and set up same IAP products. I then changed the app ID for the actual client app to point at this. And this works fine no problem what soever when testing via Xcode on device.
I am at a loss at what is wrong here as when I did the original app all worked as expected as in I was able to use a iTunes test account I had set up to test their app.
Any ideas what might be going on?
regards
ade
Apparently the test user account needs to be on the same apple developer account as your app!