1 00:00:00,580 --> 00:00:03,580 In the last couple of videos we have been working nonstop on the header. 2 00:00:03,610 --> 00:00:07,240 And I think that we're now at a point where there's really nothing else that we can do with it right 3 00:00:07,240 --> 00:00:07,720 now. 4 00:00:07,960 --> 00:00:10,780 So we're going to pause working on the matter for just a little bit. 5 00:00:11,140 --> 00:00:13,530 Unfortunately we are going to come right back to it very shortly. 6 00:00:13,540 --> 00:00:16,690 But let's talk about another feature that we're going to start to work on. 7 00:00:16,810 --> 00:00:20,270 That's going to eventually lead us back to working on the header. 8 00:00:20,770 --> 00:00:23,650 I'm going to open up a diagram that we've looked at previously. 9 00:00:23,650 --> 00:00:28,030 Remember we looked at this to get a better sense of what we are working on and what we're going to be 10 00:00:28,480 --> 00:00:30,880 planning to work on in the future as well. 11 00:00:30,880 --> 00:00:37,240 Now I've added a couple of extra steps on this diagram and as a reminder everything green is related 12 00:00:37,240 --> 00:00:38,980 to the back end of our application. 13 00:00:39,100 --> 00:00:42,380 Everything in blue is related to the client side of the app. 14 00:00:42,670 --> 00:00:48,310 So we just finished up the client set up and the authentication system on client We're now going to 15 00:00:48,310 --> 00:00:51,220 move on to handling billing within our application. 16 00:00:51,220 --> 00:00:54,420 So building on our client and billing on the server. 17 00:00:54,610 --> 00:00:59,830 When I say billing I'm talking about accepting credit cards or accepting payments from our users and 18 00:00:59,830 --> 00:01:04,840 then somehow enabling additional features inside of our application based on the fact that they have 19 00:01:04,840 --> 00:01:06,520 paid us money. 20 00:01:06,580 --> 00:01:11,610 So as a reminder of why we are accepting money let's go back to our markets really quick. 21 00:01:12,010 --> 00:01:12,320 OK. 22 00:01:12,340 --> 00:01:13,760 So this mock up right here. 23 00:01:14,050 --> 00:01:16,070 So remember we've got the head at the top. 24 00:01:16,120 --> 00:01:21,300 I had said that we were going to have some button that says something like add credits on it a user 25 00:01:21,340 --> 00:01:26,950 if they click this will be presented with some message or some windows something some form where they 26 00:01:26,950 --> 00:01:32,860 can start to enter in their credit card details when they give us money if they give us like say five 27 00:01:32,860 --> 00:01:33,670 dollars. 28 00:01:33,730 --> 00:01:40,570 We will give them five credits in return every credit inside of our application allows our users to 29 00:01:40,570 --> 00:01:44,080 send out one individual mass e-mail survey. 30 00:01:44,350 --> 00:01:48,940 So if a user signed up for our application and they created these two surveys that we show up on the 31 00:01:48,940 --> 00:01:54,220 mark on our mark mark up right here excuse me that means that they must have used at least two credits 32 00:01:54,490 --> 00:01:58,870 one credit to send out this campaign another credit credit to send out this one. 33 00:01:58,870 --> 00:02:01,150 So clearly we want to be able to accept credit cards. 34 00:02:01,150 --> 00:02:02,860 We want to be able to accept payments. 35 00:02:02,860 --> 00:02:04,180 We want to accept money. 36 00:02:04,300 --> 00:02:10,060 And whenever a user sends us some money we want to somehow update their account and say OK here is the 37 00:02:10,060 --> 00:02:11,800 new number of credits you have. 38 00:02:11,800 --> 00:02:15,340 And then of course at some point in the future when we actually put together all this campaign stuff 39 00:02:15,370 --> 00:02:20,740 like actually sending out surveys we should make sure that a user has a sufficient number of credits 40 00:02:20,980 --> 00:02:26,020 and make sure that we subtract 1 credit for every survey that they send out. 41 00:02:26,020 --> 00:02:33,310 Now the world of billing is really its own topic and we can really without a doubt make a course about 42 00:02:33,310 --> 00:02:34,190 billing alone. 43 00:02:34,210 --> 00:02:39,380 And we could probably talk for days about how billing works and how it works in web applications. 44 00:02:39,640 --> 00:02:44,050 So we're going take a pause right now when we come back in the next section we're going to do a quick 45 00:02:44,050 --> 00:02:47,280 discussion about billing and side of web applications. 46 00:02:47,320 --> 00:02:51,310 We're going to talk about some general rules of thumb that we're definitely in a follow very closely 47 00:02:51,310 --> 00:02:57,160 within this course and Emily Mulally come back after that and start to integrate billing into our application 48 00:02:57,340 --> 00:02:59,070 specifically on the front end. 49 00:02:59,350 --> 00:03:00,830 So let's take a quick pause. 50 00:03:00,880 --> 00:03:05,890 Come back in the next section and start really diving into how we work with accepting credit cards from 51 00:03:05,890 --> 00:03:06,640 users.