Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test In App Purchases through Apple TestFlight?

I uploaded my first app to iTunes Connect (iOS 8, iPhone) and it's now available through Apple TestFlight for internal and external testers. I created a Non-Consumable in app purchase for it and would like to test it. How can I add it to my beta app? I'm getting this message in iTunes Connect:

Your first In-App Purchase must be submitted with a new app version. Select it from the In-App Purchase section in Version Details and click Submit.
You do not currently have a iOS Paid Apps contract in effect. If this In-App Purchase was submitted with your app, then your app will not be available on the App Store until your contract goes into effect. Legal, Admin, and Finance users can go to the Agreements, Tax, and Banking module in iTunes Connect to view your contract status.

like image 908
Tom Avatar asked Jan 01 '15 19:01

Tom


People also ask

How do I test my TestFlight subscription?

Tips to Test Subscriptions on TestFlight: Setup your server's URL to receive Apple's Server-To-Server Notifications at Apple Developer Website → Apple Store Connect → App Store → General → App Information → General Information → URL for App Store Server Notifications.

How do I test in app purchases in simulator?

It is impossible to make a purchase on a simulator (it is only possible to request a list of available purchases). To test purchases, you first need to set up products on App Store Connect and then use the user's sandbox environment and a real device. In this case, purchases for the developer are free.


2 Answers

TestFlight users don't require a sandbox account, but they will test against an automatically created sandbox account.

Sandbox Accounts

The moment a tester opens your application, a sandbox account is created for them. This means it's no longer necessary to create test accounts in iTunes Connect. Testing In-App Purchases was never easier.

Source


Note that your TestFlight user is a legitimate App Store user. That user will be purchasing, restoring, etc. from the IAP in the Sandbox as opposed to the real IAP.

On iTunes Connect, the IAP can be "Approved" or "Ready to Submit" (or any other status, I think).

like image 110
Dan Rosenstark Avatar answered Sep 30 '22 18:09

Dan Rosenstark


English

Testers - TestFlight - Apple Developer

Each build is available to test for up to 90 days, starting from the day the developer uploads their build. You can see how many days you have left for testing in the app’s details page in TestFlight. TestFlight will notify you each time a new build is available and will include instructions on what you need to test.

All in-app purchases are free during the testing period.

中文

测试员 - TestFlight - Apple Developer

从开发者上传的那一天起,每个构建版本可被测试长达 90 天。您可以在 TestFlight 的 app 详细信息页面上查看可供测试的剩余天数。

在测试期间,所有 App 内购买项目都是免费的.

like image 30
iHTCboy Avatar answered Sep 30 '22 16:09

iHTCboy