Hey everybody what's going on this is Caleb again with slopes dot com.
And in this video we're going to set up our auto renewing subscription tier.
The purchase part in iTunes Connect.
So go ahead and pull open your Safari browser go to iTunes Connect dot apple dot com.
And when you log in to your paid developer account.
Now bear in mind you do need to have a paid developer account to access this type of information.
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
already linked in already created which for me is actually food Zilah Debb slopes IAP K. and my bundle
ideas right here.
Food Zyla Deb slopes IAP.
I made that match my project which is here.
OK food Zilah Deb slopes IAP.
And what I'm going to do is I'm going to click on features and it'll automatically bring up in-app purchases.
Now these are the ones that I've already added in this project.
These are already set up for myself.
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
one non consumable and one consumable and just really quickly let me show you the information on the
next page in case you want to duplicate this and make it yourself.
So for non consumable for hide ads what I did is I basically the reference name is hide ads.
It's cleared for sale the product ID is com IAP course.
Hide advertisements the Teer is 99 cents and the localization is English.
The display name is hied ads and the description.
This will hide in-app advertising.
That's for the non consumable purchase.
Now for the single meal consumable purchase one meal cleared for sale 999.
The display name is a lowercase meal and one full delicious meal.
That's it.
If you want to replicate this if you want to do it the same way I would recommend doing that.
So let's go ahead and let's add that subscription here.
So go ahead and click on the plus like so and select auto renewable subscription.
OK.
Now it allows users to purchase dynamic content for a set period meaning content that can change content
that is updated.
This type of subscription renews automatically unless cancelled by the user.
The reason we're focusing on renewable subscriptions is because this tends to be the most popular model
the most popular way this is done.
Like an example here a monthly subscription for an app offering a streaming service I'm sure you can
think of a few websites or places that you might have a subscription to an online streaming service.
Same idea here.
Every month a certain amount comes out so that you have access to a certain feature or functionality
in our app is going to be the same.
Our subscription is going to remove ads it's going to change the way the interface looks it's going
to give us some some cool stuff that we can see.
But taking it further you could make it so that it makes all of the food available for purchase.
Maybe you can purchase one meal every day for the whole month with you know $30 subscription that's
kind of a neat idea.
That's just one thing you can do.
So anyway we clicked on auto renewable subscription.
We're going to click Create and then next we're going to give it a reference name and a product ID.
Now the reference name is just for you.
OK it's not displayable on the App Store but it will be seen in your you know iTunes Connect sales and
trends reports.
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.
So I'm just going to call mine meals monthly because in my imaginary subscription here it's going to
be a meal service where you can buy one one meal a day maybe maybe your lunch gets delivered every day
and you pay a certain amount every month.
Now for the Product ID it's going to be very similar to our bundled I.D. and what's common is to do.
Com if you live in the United States.
Com dot and then your company name.
So I'm going to say dev slopes dot and then you describe what the what the product actually is and its
meals monthly so I'm going to say meals monthly.
Now I'm actually going to change this because for my An app purchase product IDs I've actually been
naming them along with my course so I've just been saying IAP course like that meals monthly.
OK.
So with that in place click next.
And now it's going to ask you to create a subscription group.
And as you can see I already created one earlier but I want to show you how to create a new one.
So click Create new create a name so mine was down here you can see I already made meals monthly a while
ago but let's just say meal plans.
OK because maybe we'll add more plans maybe lunch and dinner or maybe just breakfast.
Ok so name it Neal plans click Create.
And as you can see it's already been used because when I was creating this course let's do meals dash
monthly.
That's different.
Click next create for the subscription group and it says this is good.
No I didn't actually know this cannot contain alphanumeric characters underscores and periods.
Good to know.
Or they can only contain so I can contain a dash.
How about maybe meal time monthly and we can rename the reference to say mealtime monthly.
Click next now click Create and as you can see it's going to go ahead and refresh.
And now we can set up all of the cool information.
So the name is here that's great.
It's cleared for sale now.
There's something that you need to know when you go to select a duration.
You can choose anything from a week a month two months three months six months or a year.
And the cool thing is that we can test these subscriptions.
But we don't actually have to wait that long.
That's kind of pointless if you had to wait a whole year before testing the subscription again.
So basically how it works is if you choose a subscription duration of one week before it expires when
you're testing it'll last three minutes.
If you go for a month the subscription will last five minutes and two months a little more six months
a little more all the way up to a year which I believe takes an hour.
So for testing a month subscription.
We all need to wait five minutes and you might think well that's kind of a waste of time.
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
subscription.
So we'll talk about free trials later on.
But for now let's just say this is a one month subscription and let's set the price to do that.
All you need to do is click a subscription price or set starting price really and choose your currency.
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
delivered every day for a month I'm going to say this will be forty nine ninety nine.
Because if you do the math forty nine ninety nine divided by 30 ish is about a dollar sixty six a day.
That's super super cheap.
So this obviously is is fictional.
It would be much more expensive in real life for this type of meal delivery service but you can go all
the way up to $1000 a month if you wanted to.
But you better be delivering delivering meals made out of gold if you're going to do that.
So anyway let's just say.
Forty nine ninety nine a month for one meal a day maybe just week days or something.
I don't know.
Anyway after you choose your monthly price click next and then what it's going to do is it's basically
going to convert it into all the currencies that iTunes will allow payments in and then it lets you
set a custom price so let's say for certain countries you want it to be lower like Albania for instance.
It's a little more expensive in Australia and that's because it's coming in in Australia dollars versus
US dollars so the prices can vary.
You can change the price as you want but basically what is happening here is 49 nine in U.S. dollars
is going to show up as the you know the same price but in the other countries currency.
So it sort of does the conversion for you.
Or if you want you could set the price to be you know lower in a certain country it's up to you after
that.
Go ahead and click Create.
I like to just leave them as is.
And it says subscription price created.
OK very cool.
Now at this point we don't have to do anything else.
But if you were to upload this to the app store you're going to need to add localization data.
Ok now I'm going to add English localization data because this is what is actually going to display
on the App Store.
So I'm going to say meal plan and let's just say one meal a day for the month.
That's just the description of what you're getting when you subscribe.
And of course as you upload it you would need to add more localizations to explain what it is in different
countries in different languages.
But that that is that also for review when you submit your app for review.
They're going to want a screenshot of the benefit of the app purchase.
So show what it unlocks.
Show what it gets you access to.
Maybe describe the meals that you'll get every month and the review notes kind of give you some extra
information and stuff like that.
So this is all we need to do to set up our purchased here.
Now of course it's saying that we need to add at least one localization.
We did.
But you're going to want to add a few more.
It's just helpful to have the translation in other languages.
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
in-app purchases as the other to the non consumable and consumable purchase.
And with that finished we're going to be able to just dive right in into the code in the next video.
I mean it's that simple.
Thankfully the start a project gets you started in loading these products down from iTunes Connect.
But I promised that we'll explain what you're doing is you're not is going to look at all this example
code and be like what is this.
I don't know what this means.
I'll be sure to explain it clearly.
Now this does take a while to save at moments iTunes Connect can be a bit slow.
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
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
and there it is mealtime monthly with a product ID of combat IAP course mealtime monthly that is going
to give us access to this in-app purchase in the next video.
And we're going to go ahead and move on to the next video where we're going to actually write the code
to buy this in-app purchase.
Kate we're going to add a button to our interface we're going to wire that button up to attempt to make
a purchase of our monthly subscription and we'll see what happens it's very very cool.
So let's go ahead and head over to the next video and let's get started making this subscription.