Register products on iTunes connect for InApp purchase
Posted By : Avilash Choudhary | 26-Jun-2015
Before registering products you must know what types of products you can purchase through apple InApp purchase. You can only purchase digital goods or services in your app.
You can not sell goods and services through InApp purchase and also products can not be shared with other applications. There are different type of subscriptions :
-
Non-consumable subscription
-
Consumable subscription
-
Non-renewable subscription
-
Auto-renewable subscription
-
Free subscription
Non-consumable Products are those which purchase once for life time. They are durable and persistent. i.e. new level in a game, some new feature or functionality etc.
Consumable products purchased multiple times i.e. coins in a game.
Auto-renewable products are those which purchased with duration like one month, and at end of month it gets renewed. The duration for auto renewable subscription is 7 days, 1 month, 3 months, 6 months and 1 year.
Non-renewable products purchased for some duration and they don’t renewed after that.
Free subscription is an extension of auto-renewable subscription only difference is there is no charges to the user.
On itunes Connect, click My Apps select your app then from Tabs click In-app purchase, create new then select type of product i.e. consumable, auto-renewable
fill information like reference name, Product Id,price for the product.
To test In-app purchase without spending money we need a test environment called Sandbox. To test in Sandbox environment you need to create a Sandbox tester account on iTunes Connect.
Just login with your credentials Click User and Roles and create Sandbox tester provide all information. You can not edit Sandbox tester account after creation and you can not use existing apple id for creating Sandbox tester account. When testing InApp purchase you must be logged out from your real account and login with your sandbox tester account. When you will going to purchase a product it will show the “Environment : Sandbox” label.
To validate the receipt:
sandbox environment : https://sandbox.itunes.apple.com/verifyReceipt
production environment : https://buy.itunes.apple.com/verifyReceipt
When your application in development phase you test Inapp-purchase in Sandbox environment with Sandbox tester account and validate the receipt on Sandbox url but when you submit your app for apple review they use Sandbox tester account but your app is in production environment
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Avilash Choudhary
Avilash has excellent experience in developing mobile and web applications using jQuery , Javascript and PhoneGap. His hobbies are watching and playing cricket.