This guide will show you how to add apple in-app purchase to you project.
2.) Click -> "Certificates, Identifiers & Profiles"
3.) See next screenshot
4.) Enter "App name" and "Bundle ID" and Click -> Continue
6.) If you do not specify personal information, bank account, etc - do it! See next 2 screenshots:
8.) Add users for purchases testing
10.) Add your application:
11.) See screenshot. Bundle ID - select previous created project in step 4
12.) Steps 13, 14, 15 - Run 3 times. It is necessary to establish three in-app purchases - to purchase 30, 70 and 120 credits.
To do this, mount a ProductsIds (!!! com.yousite.app - you Bundle ID !!!):
com.yousite.app.low - for buy 30 credits
com.yousite.app.normal - for buy 70 credits
com.yousite.app.highs - for buy 120 credits
13.) Add in-app Purchases
14.) Select -> Consumable
15.) Fill in all fields. The example in the screenshot:
16.) Open Project in XCode and in file BalanceController.swift change you ProductsIds
17.) Set to project you Bundle Id from step 4
18.) And see next screenshot :)