1
00:00:06,240 --> 00:00:10,050
Hey What's up ladies and gentlemen Mark Price here at Dev slopes dot com.

2
00:00:10,050 --> 00:00:15,640
And in this exciting section you're going to learn how to make money with in-app purchases.

3
00:00:15,660 --> 00:00:20,700
Well if your app sucks it probably won't make money but you'll still learn how to do the purchases and

4
00:00:20,700 --> 00:00:21,600
don't make a crap yet.

5
00:00:21,600 --> 00:00:23,760
Make a good app and then people will spend money on it.

6
00:00:23,760 --> 00:00:26,510
So let's hope you make some money and let's learn about in-app purchases.

7
00:00:26,510 --> 00:00:31,230
So first things first is I've got my X code open on a different monitor here we're going to go file

8
00:00:31,350 --> 00:00:33,420
new project.

9
00:00:33,490 --> 00:00:34,740
I'm it over here for you.

10
00:00:35,000 --> 00:00:42,300
OK and we're going to do a single view application and our apps can be very simple in terms of how it

11
00:00:42,300 --> 00:00:46,890
looks and feels because this lesson is all about making in-app purchases and the steps that you need

12
00:00:46,890 --> 00:00:47,180
to do.

13
00:00:47,190 --> 00:00:49,850
And it's not as easy as you might think.

14
00:00:49,840 --> 00:00:54,060
So let's go ahead and give this name here our app here is called Daily Dose.

15
00:00:54,240 --> 00:00:58,770
So we're going to call this Daily Dose swift language is good.

16
00:00:58,770 --> 00:01:00,780
Everything else here is good.

17
00:01:01,380 --> 00:01:04,840
And I'm just going to store a folder I have here.

18
00:01:05,280 --> 00:01:06,170
Very very good.

19
00:01:06,210 --> 00:01:06,860
OK.

20
00:01:06,930 --> 00:01:11,370
So a couple of things that are really important to understand is that when working with in-app purchases

21
00:01:11,370 --> 00:01:16,470
you actually have to have an app on the App Store at least on iTunes Connect it doesn't have to be launched

22
00:01:16,470 --> 00:01:20,430
but what I'm saying is you have to have the app there and you can't do that unless you are a paid Apple

23
00:01:20,430 --> 00:01:27,490
developer you have to at least have paid the $99 Apple developer fee in order to even test in-app purchases.

24
00:01:27,600 --> 00:01:32,370
And you're also going to have to set up some things on your developer account as well too.

25
00:01:32,370 --> 00:01:37,290
So remember there's Remember there's developer to Apple dot com and there's iTunes Connect that Apple

26
00:01:37,290 --> 00:01:42,660
dot com iTunes Connect is where you upload the apps and Apple developer is where you manage your developer

27
00:01:42,690 --> 00:01:44,750
account you're going to need to work with both.

28
00:01:45,100 --> 00:01:45,950
But never fear.

29
00:01:45,960 --> 00:01:47,960
I'm going to show you exactly what to do.

30
00:01:47,970 --> 00:01:54,000
So what I'm going to do is open up my browser here and I typically use Safari when working with the

31
00:01:54,000 --> 00:01:58,180
Apple Web sites because they have features that they only work on safari.

32
00:01:58,200 --> 00:02:03,870
It's kind of annoying but so developers at Apple dot com as you can see right here and we are going

33
00:02:03,870 --> 00:02:08,890
to go into account put in your credentials.

34
00:02:09,040 --> 00:02:11,850
If you don't have credentials you're going to need to create a developer account.

35
00:02:11,860 --> 00:02:15,580
It's free there's parts free.

36
00:02:16,140 --> 00:02:16,760
OK.

37
00:02:17,040 --> 00:02:22,350
And then you're going to do is you're going to go to certificates identifiers and profiles and the next

38
00:02:22,350 --> 00:02:26,670
thing that we're going to do is we're going to go over here to the identifier section where it says

39
00:02:26,700 --> 00:02:31,470
app IDs and we're going to create a brand new app I.D.

40
00:02:34,290 --> 00:02:37,500
We're going to call this Daily Dose as the name.

41
00:02:37,500 --> 00:02:39,940
That's just a name for you to recognize it as.

42
00:02:39,990 --> 00:02:40,890
And this is important here.

43
00:02:40,890 --> 00:02:45,870
This is the bunda lady and this is the bundle I.D. that you'll be working with in your ex code.

44
00:02:45,870 --> 00:02:55,860
So one of the com slopes got Daily Dose calmed soap's thought Daily Dose.

45
00:02:55,920 --> 00:02:58,350
That's what we're going to call our bundle subscription here.

46
00:02:58,350 --> 00:03:01,800
Of course you would use your company name or individual account name.

47
00:03:02,130 --> 00:03:07,500
And then what we're going to do is scroll down and click Continue in-app purchases is already selected

48
00:03:07,500 --> 00:03:09,630
by default as a feature.

49
00:03:09,900 --> 00:03:11,310
We're going to click continue.

50
00:03:11,460 --> 00:03:17,090
Everything here looks great and we're going to click register and then done.

51
00:03:17,190 --> 00:03:23,730
So you have to register an app I.D. So your iTunes Connect can find the app every app in the world of

52
00:03:23,790 --> 00:03:29,480
app development has an app I.D. or bundle ID that an app needs to be associated with.

53
00:03:29,490 --> 00:03:34,140
The next thing we're going to do is go to iTunes Connect dot apple dot com.

54
00:03:34,140 --> 00:03:40,360
Now again this portion is where you actually need to have a paid Apple developer account at least an

55
00:03:40,410 --> 00:03:46,920
individual one for $99 a year and you need to make sure that all of your agreements tax and banking

56
00:03:47,370 --> 00:03:50,490
agreements are signed and filled out and ready to go.

57
00:03:50,490 --> 00:03:51,870
Otherwise you can't create new apps.

58
00:03:51,870 --> 00:03:53,040
It won't let you.

59
00:03:53,340 --> 00:03:53,500
OK.

60
00:03:53,540 --> 00:03:57,750
So what we're going to do is we're going to go into my apps again if you don't see this my app section

61
00:03:57,750 --> 00:04:02,030
is because you're not a paid developer and you have to be a paid developer to work with in-app purchases.

62
00:04:02,040 --> 00:04:04,190
And of course to submit apps to the App Store.

63
00:04:04,480 --> 00:04:05,390
So my apps.

64
00:04:05,490 --> 00:04:08,240
And then what we're going to do is we're going to create a brand new app.

65
00:04:08,250 --> 00:04:09,590
Clicking the plus button

66
00:04:14,330 --> 00:04:20,660
we're going to do iOS only and this one we are going to call daily dose.

67
00:04:21,020 --> 00:04:23,750
The language is going to be English.

68
00:04:24,170 --> 00:04:25,450
US at least for my app.

69
00:04:25,460 --> 00:04:26,840
You can choose whatever you want.

70
00:04:26,840 --> 00:04:30,940
The bunda lady is going to be the one that you just created daily dose.

71
00:04:30,950 --> 00:04:36,110
If you did not just create that over a developer to Apple dotcom with your sinked developer account

72
00:04:36,740 --> 00:04:38,000
then this wouldn't be here.

73
00:04:38,120 --> 00:04:38,540
OK.

74
00:04:38,580 --> 00:04:41,120
Barss So that's great.

75
00:04:41,210 --> 00:04:42,270
If you're not seeing it there.

76
00:04:42,320 --> 00:04:47,570
I have noticed that sometimes it takes a few minutes for developer account to refresh with iTunes and

77
00:04:47,570 --> 00:04:48,740
make that connection.

78
00:04:48,740 --> 00:04:52,070
Secondly you're going what you're going to want to make sure that you're a developer to Apple that comic

79
00:04:52,250 --> 00:04:54,920
is associated with your iTunes Connect account.

80
00:04:55,040 --> 00:04:59,760
Hopefully those are with the same iTunes ID on the same account.

81
00:04:59,770 --> 00:05:04,330
So you may have to sync those and get them connected if you're not seeing this here.

82
00:05:04,430 --> 00:05:09,060
The skew is just an internal app name or number that you want to give it.

83
00:05:09,080 --> 00:05:16,360
We're going to call this daily dose limit user access we're not going to do anything with the click

84
00:05:16,360 --> 00:05:17,210
Create.

85
00:05:17,450 --> 00:05:20,710
No it doesn't like this name because someone obviously picked it so we're going to call this daily dose

86
00:05:21,220 --> 00:05:21,830
of slopes.

87
00:05:21,850 --> 00:05:22,840
You can call yours whatever you want.

88
00:05:22,840 --> 00:05:25,120
This is just a test app anyway.

89
00:05:25,750 --> 00:05:30,600
Someone else had that name on the App Store and it wouldn't let us do it so no big deal.

90
00:05:30,820 --> 00:05:34,680
OK this is really cool so we've got we've signed up here.

91
00:05:34,720 --> 00:05:36,130
We've got our app created.

92
00:05:36,220 --> 00:05:40,480
One more thing I want to do before we get started is we're going to I'm going to click this iTunes Connect

93
00:05:40,480 --> 00:05:48,310
right here and we're going to go over to users and rolls and what we're going to do is create a test

94
00:05:48,310 --> 00:05:49,940
account or a sandbox account.

95
00:05:50,050 --> 00:05:56,350
You cannot test in-app purchases unless you come here and create a test account so click sandbox users

96
00:05:56,410 --> 00:05:58,760
on the right hand side.

97
00:05:59,080 --> 00:06:04,220
And what we're going to do is create a new one give it a name.

98
00:06:04,440 --> 00:06:05,180
Anything you want.

99
00:06:05,190 --> 00:06:07,080
So tester.

100
00:06:07,270 --> 00:06:08,740
Tester.

101
00:06:08,850 --> 00:06:10,500
Email can be.

102
00:06:10,680 --> 00:06:20,160
You know Joe at Bob dot com Jobab and password and needs have a lower case upper case a bunch of other

103
00:06:20,160 --> 00:06:24,410
stuff that is put in any any combination of such a password.

104
00:06:24,540 --> 00:06:26,450
I'm doing such a thing.

105
00:06:27,090 --> 00:06:31,170
So secret question secret answer you have to fill all these things out.

106
00:06:31,170 --> 00:06:35,070
So secret answer.

107
00:06:35,580 --> 00:06:43,740
I'm just putting in boilerplate stuff here doesn't mean anything but your date of birth and any date

108
00:06:43,740 --> 00:06:44,680
in here is fine.

109
00:06:47,120 --> 00:06:52,660
And then territory we are going to pick United States.

110
00:06:52,660 --> 00:06:56,890
In my case you can pick whatever country you want and just the Morton thing here to remember is the

111
00:06:56,890 --> 00:06:57,620
e-mail.

112
00:06:57,620 --> 00:07:04,960
Another important thing to remember is if you make a non consumable in that purchase like we're going

113
00:07:04,960 --> 00:07:05,540
to do.

114
00:07:05,680 --> 00:07:06,440
OK.

115
00:07:06,460 --> 00:07:13,640
If you make a purchase like that your account that you create here will will only let you purchase it

116
00:07:13,640 --> 00:07:18,080
once and when you restore restore it so any time you want to do multiple tests you're going have to

117
00:07:18,080 --> 00:07:22,910
keep creating test users for non-consumer purchases because it ties it to that account like it's a real

118
00:07:22,910 --> 00:07:25,060
iTunes account which is what you want.

119
00:07:25,070 --> 00:07:33,420
So Joe at Bob dot com that e-mail is already associated I could well just pick a new one we're going

120
00:07:33,420 --> 00:07:38,190
to say dev at Divell developer dot com

121
00:07:41,130 --> 00:07:42,110
doesn't like that either.

122
00:07:42,170 --> 00:07:42,950
Wow.

123
00:07:43,490 --> 00:07:44,050
OK.

124
00:07:44,070 --> 00:07:47,340
We're going to say what we want to say.

125
00:07:48,690 --> 00:07:51,520
One two three at devah slopes dot com.

126
00:07:51,760 --> 00:07:53,430
Again you're not going to get an e-mail or anything.

127
00:07:53,460 --> 00:07:56,660
Are Just test accounts tester one two three at slopestyle calm.

128
00:07:56,670 --> 00:08:00,390
In my case here OK.

129
00:08:01,570 --> 00:08:02,370
So there we go.

130
00:08:02,520 --> 00:08:04,130
Are One two three it does subside.

131
00:08:04,150 --> 00:08:08,320
So what we've done is we've created a bundle ID on developer dot apple dot com.

132
00:08:08,590 --> 00:08:14,110
And then we went into iTunes Connect that Apple dot com and we created a new app and we associated that

133
00:08:14,110 --> 00:08:16,340
Bonds ID OK.

134
00:08:16,420 --> 00:08:22,780
And the last thing to do is just make sure that our app down here has the exact same bundle ID as the

135
00:08:22,780 --> 00:08:25,290
one in developer to Appledore.

136
00:08:25,390 --> 00:08:26,410
And it doesn't.

137
00:08:26,440 --> 00:08:29,090
So we're going to change that out from the dash to the dot.

138
00:08:29,260 --> 00:08:36,730
So calm that slopes that daily dose and what we can actually do is you can go to X code preferences

139
00:08:37,300 --> 00:08:45,300
OK and you can enter your account here and if you don't have it here already or you can click download

140
00:08:45,300 --> 00:08:49,870
all profiles here if you do have it entered and it will actually download the bundu IDs and match everything

141
00:08:49,870 --> 00:08:50,860
up for you.

142
00:08:50,860 --> 00:08:55,660
So one last thing to do here and ex-coach is go to capabilities.

143
00:08:55,660 --> 00:09:04,890
Now that we have our bundle ID correct go to capabilities go down to in-app purchases and click on and

144
00:09:04,890 --> 00:09:08,670
if both of these have checks it means it's now connected the bundle ID that's on developer to Apple

145
00:09:08,680 --> 00:09:11,200
dot com and you are ready to go.

146
00:09:11,330 --> 00:09:12,850
So I know it was a lot.

147
00:09:12,860 --> 00:09:14,680
I'll recap one more time what we did.

148
00:09:14,750 --> 00:09:21,010
We registered a bundle ID and developer to Apple dot com we created an app on iTunes Connect dot dot

149
00:09:21,020 --> 00:09:26,830
com OK we created a test user so we can actually make a sandbox in-app purchases without spending real

150
00:09:26,840 --> 00:09:28,520
money which you have to have.

151
00:09:28,520 --> 00:09:32,980
And then we came here and X code and we made sure that the bundu ID match what was on developer to Apple

152
00:09:32,980 --> 00:09:33,800
dotcom.

153
00:09:33,890 --> 00:09:39,610
Then we went into capability's thing that's five capabilities and we turned on in-app purchases so you

154
00:09:39,610 --> 00:09:43,840
are now ready to actually start writing code so you can make in-app purchases.

155
00:09:43,840 --> 00:09:46,100
So let's call this video done.

156
00:09:46,100 --> 00:09:50,210
If you're not the speed here go ahead and get up to speed with your account and then I'll see you back

157
00:09:50,210 --> 00:09:52,380
here for the next exciting episode.

158
00:09:52,380 --> 00:09:54,630
Mark Price here at Dove slopes dot.com.

159
00:09:54,740 --> 00:09:55,640
See you soon.

