1
00:00:07,110 --> 00:00:10,780
Hey everybody what's going on this is Caleb again with slopes dot com.

2
00:00:10,780 --> 00:00:15,330
And in this video we're going to set up our auto renewing subscription tier.

3
00:00:15,670 --> 00:00:18,520
The purchase part in iTunes Connect.

4
00:00:18,520 --> 00:00:24,240
So go ahead and pull open your Safari browser go to iTunes Connect dot apple dot com.

5
00:00:24,580 --> 00:00:27,310
And when you log in to your paid developer account.

6
00:00:27,310 --> 00:00:33,470
Now bear in mind you do need to have a paid developer account to access this type of information.

7
00:00:33,610 --> 00:00:40,120
What you're going to need to do is go on and click my apps and as soon as it loads select the app you've

8
00:00:40,120 --> 00:00:47,080
already linked in already created which for me is actually food Zilah Debb slopes IAP K. and my bundle

9
00:00:47,080 --> 00:00:47,830
ideas right here.

10
00:00:47,830 --> 00:00:50,340
Food Zyla Deb slopes IAP.

11
00:00:50,470 --> 00:00:54,850
I made that match my project which is here.

12
00:00:55,340 --> 00:00:58,120
OK food Zilah Deb slopes IAP.

13
00:00:58,450 --> 00:01:03,820
And what I'm going to do is I'm going to click on features and it'll automatically bring up in-app purchases.

14
00:01:03,820 --> 00:01:07,540
Now these are the ones that I've already added in this project.

15
00:01:07,540 --> 00:01:09,430
These are already set up for myself.

16
00:01:09,550 --> 00:01:16,050
Now if you want to set up the project to work just like I did you can do that by making two in-app purchases

17
00:01:16,450 --> 00:01:22,150
one non consumable and one consumable and just really quickly let me show you the information on the

18
00:01:22,150 --> 00:01:25,690
next page in case you want to duplicate this and make it yourself.

19
00:01:25,720 --> 00:01:32,590
So for non consumable for hide ads what I did is I basically the reference name is hide ads.

20
00:01:32,680 --> 00:01:37,660
It's cleared for sale the product ID is com IAP course.

21
00:01:37,720 --> 00:01:44,390
Hide advertisements the Teer is 99 cents and the localization is English.

22
00:01:44,410 --> 00:01:47,350
The display name is hied ads and the description.

23
00:01:47,350 --> 00:01:49,880
This will hide in-app advertising.

24
00:01:49,900 --> 00:01:52,520
That's for the non consumable purchase.

25
00:01:52,540 --> 00:01:59,050
Now for the single meal consumable purchase one meal cleared for sale 999.

26
00:01:59,170 --> 00:02:03,900
The display name is a lowercase meal and one full delicious meal.

27
00:02:03,970 --> 00:02:04,380
That's it.

28
00:02:04,390 --> 00:02:08,590
If you want to replicate this if you want to do it the same way I would recommend doing that.

29
00:02:09,130 --> 00:02:12,670
So let's go ahead and let's add that subscription here.

30
00:02:12,790 --> 00:02:18,050
So go ahead and click on the plus like so and select auto renewable subscription.

31
00:02:18,220 --> 00:02:18,750
OK.

32
00:02:19,030 --> 00:02:25,480
Now it allows users to purchase dynamic content for a set period meaning content that can change content

33
00:02:25,750 --> 00:02:27,360
that is updated.

34
00:02:27,400 --> 00:02:32,160
This type of subscription renews automatically unless cancelled by the user.

35
00:02:32,170 --> 00:02:37,210
The reason we're focusing on renewable subscriptions is because this tends to be the most popular model

36
00:02:37,210 --> 00:02:40,300
the most popular way this is done.

37
00:02:40,600 --> 00:02:45,070
Like an example here a monthly subscription for an app offering a streaming service I'm sure you can

38
00:02:45,070 --> 00:02:49,580
think of a few websites or places that you might have a subscription to an online streaming service.

39
00:02:49,600 --> 00:02:50,620
Same idea here.

40
00:02:50,710 --> 00:02:56,710
Every month a certain amount comes out so that you have access to a certain feature or functionality

41
00:02:57,190 --> 00:02:59,230
in our app is going to be the same.

42
00:02:59,290 --> 00:03:03,490
Our subscription is going to remove ads it's going to change the way the interface looks it's going

43
00:03:03,490 --> 00:03:06,790
to give us some some cool stuff that we can see.

44
00:03:06,880 --> 00:03:12,460
But taking it further you could make it so that it makes all of the food available for purchase.

45
00:03:12,460 --> 00:03:17,410
Maybe you can purchase one meal every day for the whole month with you know $30 subscription that's

46
00:03:17,410 --> 00:03:18,980
kind of a neat idea.

47
00:03:19,370 --> 00:03:20,430
That's just one thing you can do.

48
00:03:20,440 --> 00:03:24,040
So anyway we clicked on auto renewable subscription.

49
00:03:24,040 --> 00:03:29,830
We're going to click Create and then next we're going to give it a reference name and a product ID.

50
00:03:29,890 --> 00:03:31,510
Now the reference name is just for you.

51
00:03:31,600 --> 00:03:38,260
OK it's not displayable on the App Store but it will be seen in your you know iTunes Connect sales and

52
00:03:38,260 --> 00:03:39,210
trends reports.

53
00:03:39,370 --> 00:03:44,430
So what you're going to want to do is to basically set up a name that you're going to be able to recognize.

54
00:03:44,560 --> 00:03:50,890
So I'm just going to call mine meals monthly because in my imaginary subscription here it's going to

55
00:03:50,890 --> 00:03:56,210
be a meal service where you can buy one one meal a day maybe maybe your lunch gets delivered every day

56
00:03:56,200 --> 00:03:58,790
and you pay a certain amount every month.

57
00:03:58,780 --> 00:04:04,250
Now for the Product ID it's going to be very similar to our bundled I.D. and what's common is to do.

58
00:04:04,270 --> 00:04:06,780
Com if you live in the United States.

59
00:04:06,850 --> 00:04:09,250
Com dot and then your company name.

60
00:04:09,250 --> 00:04:15,460
So I'm going to say dev slopes dot and then you describe what the what the product actually is and its

61
00:04:15,460 --> 00:04:19,830
meals monthly so I'm going to say meals monthly.

62
00:04:20,140 --> 00:04:24,550
Now I'm actually going to change this because for my An app purchase product IDs I've actually been

63
00:04:25,120 --> 00:04:32,130
naming them along with my course so I've just been saying IAP course like that meals monthly.

64
00:04:32,140 --> 00:04:32,720
OK.

65
00:04:33,040 --> 00:04:35,130
So with that in place click next.

66
00:04:35,350 --> 00:04:37,910
And now it's going to ask you to create a subscription group.

67
00:04:37,930 --> 00:04:42,300
And as you can see I already created one earlier but I want to show you how to create a new one.

68
00:04:42,370 --> 00:04:48,850
So click Create new create a name so mine was down here you can see I already made meals monthly a while

69
00:04:48,850 --> 00:04:52,710
ago but let's just say meal plans.

70
00:04:52,790 --> 00:04:57,230
OK because maybe we'll add more plans maybe lunch and dinner or maybe just breakfast.

71
00:04:57,260 --> 00:05:00,190
Ok so name it Neal plans click Create.

72
00:05:00,580 --> 00:05:05,820
And as you can see it's already been used because when I was creating this course let's do meals dash

73
00:05:05,820 --> 00:05:06,330
monthly.

74
00:05:06,360 --> 00:05:07,620
That's different.

75
00:05:07,650 --> 00:05:12,340
Click next create for the subscription group and it says this is good.

76
00:05:12,360 --> 00:05:18,360
No I didn't actually know this cannot contain alphanumeric characters underscores and periods.

77
00:05:18,360 --> 00:05:19,690
Good to know.

78
00:05:19,680 --> 00:05:22,710
Or they can only contain so I can contain a dash.

79
00:05:22,710 --> 00:05:30,330
How about maybe meal time monthly and we can rename the reference to say mealtime monthly.

80
00:05:30,330 --> 00:05:36,510
Click next now click Create and as you can see it's going to go ahead and refresh.

81
00:05:36,510 --> 00:05:38,790
And now we can set up all of the cool information.

82
00:05:38,790 --> 00:05:41,120
So the name is here that's great.

83
00:05:41,130 --> 00:05:42,830
It's cleared for sale now.

84
00:05:42,840 --> 00:05:46,430
There's something that you need to know when you go to select a duration.

85
00:05:46,440 --> 00:05:51,350
You can choose anything from a week a month two months three months six months or a year.

86
00:05:51,690 --> 00:05:55,210
And the cool thing is that we can test these subscriptions.

87
00:05:55,230 --> 00:05:56,990
But we don't actually have to wait that long.

88
00:05:57,000 --> 00:06:01,980
That's kind of pointless if you had to wait a whole year before testing the subscription again.

89
00:06:01,980 --> 00:06:09,120
So basically how it works is if you choose a subscription duration of one week before it expires when

90
00:06:09,120 --> 00:06:11,680
you're testing it'll last three minutes.

91
00:06:11,850 --> 00:06:17,880
If you go for a month the subscription will last five minutes and two months a little more six months

92
00:06:17,880 --> 00:06:21,270
a little more all the way up to a year which I believe takes an hour.

93
00:06:21,660 --> 00:06:24,390
So for testing a month subscription.

94
00:06:24,390 --> 00:06:27,990
We all need to wait five minutes and you might think well that's kind of a waste of time.

95
00:06:28,020 --> 00:06:34,200
I kind of agree but it is sort of the best way to actually get a real like a full test in for your monthly

96
00:06:34,200 --> 00:06:35,370
subscription.

97
00:06:35,370 --> 00:06:38,000
So we'll talk about free trials later on.

98
00:06:38,010 --> 00:06:43,260
But for now let's just say this is a one month subscription and let's set the price to do that.

99
00:06:43,260 --> 00:06:48,840
All you need to do is click a subscription price or set starting price really and choose your currency.

100
00:06:48,840 --> 00:06:54,600
So I'm using U.S. dollars choose your price and I think for a meal plan if I'm going to get one meal

101
00:06:54,600 --> 00:07:01,320
delivered every day for a month I'm going to say this will be forty nine ninety nine.

102
00:07:01,560 --> 00:07:08,960
Because if you do the math forty nine ninety nine divided by 30 ish is about a dollar sixty six a day.

103
00:07:09,030 --> 00:07:10,320
That's super super cheap.

104
00:07:10,320 --> 00:07:12,710
So this obviously is is fictional.

105
00:07:12,720 --> 00:07:18,420
It would be much more expensive in real life for this type of meal delivery service but you can go all

106
00:07:18,420 --> 00:07:21,110
the way up to $1000 a month if you wanted to.

107
00:07:21,510 --> 00:07:25,500
But you better be delivering delivering meals made out of gold if you're going to do that.

108
00:07:25,500 --> 00:07:27,370
So anyway let's just say.

109
00:07:27,370 --> 00:07:31,760
Forty nine ninety nine a month for one meal a day maybe just week days or something.

110
00:07:31,770 --> 00:07:32,580
I don't know.

111
00:07:32,580 --> 00:07:39,030
Anyway after you choose your monthly price click next and then what it's going to do is it's basically

112
00:07:39,030 --> 00:07:46,110
going to convert it into all the currencies that iTunes will allow payments in and then it lets you

113
00:07:46,260 --> 00:07:52,890
set a custom price so let's say for certain countries you want it to be lower like Albania for instance.

114
00:07:52,890 --> 00:07:57,870
It's a little more expensive in Australia and that's because it's coming in in Australia dollars versus

115
00:07:57,870 --> 00:08:00,480
US dollars so the prices can vary.

116
00:08:00,480 --> 00:08:07,500
You can change the price as you want but basically what is happening here is 49 nine in U.S. dollars

117
00:08:07,500 --> 00:08:13,510
is going to show up as the you know the same price but in the other countries currency.

118
00:08:13,530 --> 00:08:15,470
So it sort of does the conversion for you.

119
00:08:15,600 --> 00:08:20,670
Or if you want you could set the price to be you know lower in a certain country it's up to you after

120
00:08:20,670 --> 00:08:21,030
that.

121
00:08:21,060 --> 00:08:22,060
Go ahead and click Create.

122
00:08:22,080 --> 00:08:23,940
I like to just leave them as is.

123
00:08:23,940 --> 00:08:26,200
And it says subscription price created.

124
00:08:26,420 --> 00:08:27,970
OK very cool.

125
00:08:27,990 --> 00:08:30,320
Now at this point we don't have to do anything else.

126
00:08:30,330 --> 00:08:35,080
But if you were to upload this to the app store you're going to need to add localization data.

127
00:08:35,170 --> 00:08:40,590
Ok now I'm going to add English localization data because this is what is actually going to display

128
00:08:40,680 --> 00:08:41,800
on the App Store.

129
00:08:41,970 --> 00:08:50,880
So I'm going to say meal plan and let's just say one meal a day for the month.

130
00:08:50,910 --> 00:08:53,860
That's just the description of what you're getting when you subscribe.

131
00:08:54,300 --> 00:08:59,160
And of course as you upload it you would need to add more localizations to explain what it is in different

132
00:08:59,160 --> 00:09:01,490
countries in different languages.

133
00:09:01,740 --> 00:09:07,130
But that that is that also for review when you submit your app for review.

134
00:09:07,140 --> 00:09:11,670
They're going to want a screenshot of the benefit of the app purchase.

135
00:09:11,670 --> 00:09:13,320
So show what it unlocks.

136
00:09:13,320 --> 00:09:14,940
Show what it gets you access to.

137
00:09:15,240 --> 00:09:20,160
Maybe describe the meals that you'll get every month and the review notes kind of give you some extra

138
00:09:20,160 --> 00:09:22,300
information and stuff like that.

139
00:09:22,800 --> 00:09:26,710
So this is all we need to do to set up our purchased here.

140
00:09:26,730 --> 00:09:30,030
Now of course it's saying that we need to add at least one localization.

141
00:09:30,030 --> 00:09:30,820
We did.

142
00:09:30,900 --> 00:09:32,660
But you're going to want to add a few more.

143
00:09:32,660 --> 00:09:36,340
It's just helpful to have the translation in other languages.

144
00:09:36,390 --> 00:09:43,800
So go ahead click safe and as soon as you save it you'll see that it will pop up in the same list of

145
00:09:43,800 --> 00:09:48,840
in-app purchases as the other to the non consumable and consumable purchase.

146
00:09:48,990 --> 00:09:54,510
And with that finished we're going to be able to just dive right in into the code in the next video.

147
00:09:54,510 --> 00:09:56,440
I mean it's that simple.

148
00:09:56,550 --> 00:10:02,000
Thankfully the start a project gets you started in loading these products down from iTunes Connect.

149
00:10:02,280 --> 00:10:05,950
But I promised that we'll explain what you're doing is you're not is going to look at all this example

150
00:10:05,950 --> 00:10:07,200
code and be like what is this.

151
00:10:07,210 --> 00:10:08,700
I don't know what this means.

152
00:10:08,860 --> 00:10:10,790
I'll be sure to explain it clearly.

153
00:10:10,810 --> 00:10:16,160
Now this does take a while to save at moments iTunes Connect can be a bit slow.

154
00:10:16,540 --> 00:10:22,850
So I'll just go ahead and speed up the video here and then as soon as it's done we'll resume are right

155
00:10:22,890 --> 00:10:28,680
and so it is saved finally and all we need to do now to go back and see it is click on in-app purchases

156
00:10:29,130 --> 00:10:37,080
and there it is mealtime monthly with a product ID of combat IAP course mealtime monthly that is going

157
00:10:37,080 --> 00:10:41,010
to give us access to this in-app purchase in the next video.

158
00:10:41,040 --> 00:10:45,240
And we're going to go ahead and move on to the next video where we're going to actually write the code

159
00:10:45,570 --> 00:10:47,820
to buy this in-app purchase.

160
00:10:47,820 --> 00:10:52,260
Kate we're going to add a button to our interface we're going to wire that button up to attempt to make

161
00:10:52,260 --> 00:10:57,810
a purchase of our monthly subscription and we'll see what happens it's very very cool.

162
00:10:57,810 --> 00:11:03,320
So let's go ahead and head over to the next video and let's get started making this subscription.
