Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to switch from Sandbox to live in In App purchase

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.Error ScreenShot

like image 301
Parv Bhasker Avatar asked Dec 24 '22 16:12

Parv Bhasker


1 Answers

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

like image 110
Parv Bhasker Avatar answered Jan 18 '23 21:01

Parv Bhasker