1
00:00:00,180 --> 00:00:06,270
Hello, friend, welcome come back in a previous video we have created on the function as a payment

2
00:00:06,270 --> 00:00:12,030
and also we checked all that, our billing address, that means the shipping details must have fill

3
00:00:12,030 --> 00:00:12,300
up.

4
00:00:12,510 --> 00:00:14,970
And also we check our profile.

5
00:00:14,970 --> 00:00:16,560
All the feelings will be done.

6
00:00:16,560 --> 00:00:17,160
Not right.

7
00:00:17,610 --> 00:00:19,890
And now we are ready to add our payment.

8
00:00:19,920 --> 00:00:23,930
All that instruction like here if you go to our disposition.

9
00:00:24,390 --> 00:00:26,490
So here I have already added both of this.

10
00:00:26,490 --> 00:00:29,410
And now, first of all, I just simply copy it, OK?

11
00:00:29,430 --> 00:00:30,530
Just simply copied.

12
00:00:30,960 --> 00:00:33,390
And now in our view idea after this.

13
00:00:33,400 --> 00:00:35,520
OK, so after this we have to work.

14
00:00:36,000 --> 00:00:44,580
So here I just simply put it, OK, so this will be on here that see our IDF conditioned area so that

15
00:00:44,650 --> 00:00:45,570
are defining it.

16
00:00:45,810 --> 00:00:52,110
So in particular that area is calling that SSL that section and then that is our source is sandbox.

17
00:00:52,110 --> 00:00:54,910
That means right now we are working with for the developing world.

18
00:00:54,930 --> 00:00:57,510
OK, that is a test purposes for the reasons here.

19
00:00:57,510 --> 00:00:59,850
You can see I make that things as a default, as a true.

20
00:01:00,240 --> 00:01:04,230
But when you working with the paid option, then you have to make that things as a false.

21
00:01:04,530 --> 00:01:06,660
And after that that is already storewide.

22
00:01:06,660 --> 00:01:09,480
And also that is our iStore password.

23
00:01:09,780 --> 00:01:11,990
So here we have to do we have to add both of these.

24
00:01:12,000 --> 00:01:17,880
So if you go to your mail, so you will get these two of these things, one will be as ID, another

25
00:01:17,880 --> 00:01:20,090
will be as a your API security.

26
00:01:20,220 --> 00:01:20,540
Right.

27
00:01:20,550 --> 00:01:22,620
So that is the two of the things will be needed.

28
00:01:22,920 --> 00:01:27,860
So I know first of all, I want to take that our iStore ID, so that is always true.

29
00:01:27,870 --> 00:01:30,000
I do have to define for doing this here.

30
00:01:30,360 --> 00:01:39,060
OK, here I want to do and take on the variable and I just name it as iStore underscore ID and here

31
00:01:39,060 --> 00:01:40,860
I define our strategy.

32
00:01:41,010 --> 00:01:42,750
So here I just simply defining it.

33
00:01:42,990 --> 00:01:45,450
OK, and also we need our API.

34
00:01:45,750 --> 00:01:51,660
So just simply defined as API under is karki so our API key.

35
00:01:52,680 --> 00:01:56,100
So it will be our this one means this one.

36
00:01:56,100 --> 00:01:57,570
So I just simply copy it.

37
00:01:57,840 --> 00:02:00,210
And now here I define our API key.

38
00:02:00,720 --> 00:02:03,140
So now we have to do we have to pass our it.

39
00:02:03,210 --> 00:02:05,520
That means our easiest already will be this one.

40
00:02:06,120 --> 00:02:10,770
So the simply updated our ID and also that is our API key.

41
00:02:10,800 --> 00:02:14,930
So I just simply copied and here that is our pilkey.

42
00:02:15,540 --> 00:02:20,940
So in particular that position we have to add our back and after that our another person.

43
00:02:20,940 --> 00:02:23,540
So we have to add another Pushtuns.

44
00:02:23,550 --> 00:02:24,810
I just simply copy it.

45
00:02:25,350 --> 00:02:33,000
And now here after this, OK, after this I just simply paste it so it'll be, you know, this if conditional

46
00:02:33,000 --> 00:02:33,280
here.

47
00:02:33,870 --> 00:02:36,540
And also that is our link.

48
00:02:36,900 --> 00:02:41,880
So here it's meaning that side you are the one who told me that your payment will be successful.

49
00:02:41,880 --> 00:02:46,080
Where exactly should be declared it should be as a fail that they are fail.

50
00:02:46,080 --> 00:02:46,610
You are ill.

51
00:02:46,620 --> 00:02:48,300
What exactly should be rejected?

52
00:02:48,300 --> 00:02:51,390
The cancel that is when this payment will be canceled.

53
00:02:51,750 --> 00:02:53,670
Then where exactly it will be redacted.

54
00:02:53,730 --> 00:02:58,110
OK, and also if you want to fill some of the notification, that notification will be redacted.

55
00:02:58,110 --> 00:02:58,710
Which base?

56
00:02:58,710 --> 00:03:04,710
You can define all the things from here so you can create the multiple pays for this one that is going

57
00:03:04,720 --> 00:03:05,610
to be successful.

58
00:03:05,610 --> 00:03:10,880
It will be the key to all the successful pays when it's to be a failure to reject two of the fail pays,

59
00:03:10,890 --> 00:03:12,140
the cancellation pays.

60
00:03:12,150 --> 00:03:14,510
OK, so you can define multiple payers.

61
00:03:14,520 --> 00:03:17,070
But right now I don't want to create only one piece.

62
00:03:17,550 --> 00:03:24,390
So you know our payment here I want to do and to create new file and then just name it as a complete.

63
00:03:27,220 --> 00:03:35,280
OK, so this is the piece I created, so I know the result, you the result will be not needed.

64
00:03:35,400 --> 00:03:40,180
OK, so here I just simply define our base as a competitor still.

65
00:03:40,770 --> 00:03:45,340
So now for this this family from Texas said we have to create another function for this one.

66
00:03:45,360 --> 00:03:48,100
So better after this.

67
00:03:48,120 --> 00:03:52,250
OK, so after this afternoon to create another function.

68
00:03:53,010 --> 00:03:56,220
So here a different analyst will be also deadlocking required.

69
00:03:57,430 --> 00:04:03,100
So I just simply copied that logging record and then I created of the function of the Dave and then

70
00:04:03,100 --> 00:04:08,230
I name it as a complete, complete and then the request.

71
00:04:08,560 --> 00:04:10,930
And here we have to pass it.

72
00:04:10,940 --> 00:04:16,540
So I just simply defend the render surrender and into the render area.

73
00:04:16,570 --> 00:04:22,870
With this request, with this request, I just simply our app that miss our payment here.

74
00:04:22,870 --> 00:04:27,920
I have created on the base as a complete not as HTML.

75
00:04:28,300 --> 00:04:28,680
Right.

76
00:04:28,690 --> 00:04:36,760
And also here I just simply put the context sorry, some context and I want to do and to make the things

77
00:04:36,760 --> 00:04:42,150
as empty and also for as this complete, we have to do we have to create the new order.

78
00:04:42,160 --> 00:04:46,900
So that is in our payment into the app and then go to that.

79
00:04:46,900 --> 00:04:52,030
You are also here on the ground to create an order and they just name it as a status.

80
00:04:53,000 --> 00:04:54,580
OK, just name it as the status.

81
00:04:54,580 --> 00:04:58,480
And in our view area, I have created all the function name as a complete.

82
00:04:59,370 --> 00:05:03,250
So I just simply name it as a complete and I just named it as a complete OK.

83
00:05:03,570 --> 00:05:05,340
So now I just have to save all.

84
00:05:05,670 --> 00:05:09,420
So now into the viewing area here, we have to define all that.

85
00:05:09,420 --> 00:05:10,860
Our you are so here.

86
00:05:10,860 --> 00:05:16,020
If you actually add that you are like that, we're like right now that is our you are right.

87
00:05:16,040 --> 00:05:21,870
So if you want to access it directly, so if you want to access it, so every time you whatever the

88
00:05:21,870 --> 00:05:22,770
project, you will run.

89
00:05:22,780 --> 00:05:25,730
So some of the time you may be the different one.

90
00:05:25,740 --> 00:05:26,030
Right.

91
00:05:26,280 --> 00:05:28,140
So then it will be getting some of the error.

92
00:05:28,170 --> 00:05:34,260
And also when you upload this project into the domain area, then also here you have to update this.

93
00:05:34,260 --> 00:05:37,860
You are right, because every time our this part not will be the same.

94
00:05:38,250 --> 00:05:43,670
So if you want to prevent it, they have also not done a function so into the functionality of one of

95
00:05:43,800 --> 00:05:45,540
the things in our this function.

96
00:05:45,550 --> 00:05:47,610
So automatically it will be created.

97
00:05:47,610 --> 00:05:48,970
This function, you are OK.

98
00:05:48,990 --> 00:05:53,820
So if you want to prevent it, then I show you, then you have to do you have to added the function

99
00:05:53,820 --> 00:06:02,130
name as a status under you are and here that have all the function you have to use it with the request

100
00:06:02,580 --> 00:06:03,270
request.

101
00:06:03,270 --> 00:06:09,000
And then there is actually one of the function as a Beeld bill underscore absolute.

102
00:06:11,700 --> 00:06:12,780
Absolute under.

103
00:06:13,270 --> 00:06:13,860
You are right.

104
00:06:13,920 --> 00:06:20,820
So I just believe that you are a clone of the function, so I show you what exactly that will be actually

105
00:06:20,820 --> 00:06:23,270
do like here I want to do it.

106
00:06:23,730 --> 00:06:27,560
So I just simply defined as a print and print out these variables.

107
00:06:27,570 --> 00:06:28,560
I just simply print it.

108
00:06:28,980 --> 00:06:35,890
So now if you actually look at the Savol, I just click the save all and now if you click enter.

109
00:06:36,900 --> 00:06:38,730
So now if you run your console.

110
00:06:39,900 --> 00:06:44,610
So did the consulate, you can see snowshoeing showing our which you are, you know, showing our D,

111
00:06:44,610 --> 00:06:46,370
then the payment and then the pay.

112
00:06:46,620 --> 00:06:47,070
Right.

113
00:06:47,320 --> 00:06:53,090
But here I want to do want to actually access our D.C. What that message will be rejected or complete.

114
00:06:53,100 --> 00:06:57,060
So for the complete, I have already found out the one that is our complete one.

115
00:06:57,060 --> 00:06:57,360
Right.

116
00:06:57,630 --> 00:07:00,020
So that will be redacted or this status area.

117
00:07:00,360 --> 00:07:03,000
So for the reasons here, you have to do we have to defining it.

118
00:07:03,010 --> 00:07:06,890
So for now, I want to do I want to update our D.C. model.

119
00:07:06,900 --> 00:07:10,560
So that is what you are, Olivia, here we have to do.

120
00:07:10,560 --> 00:07:16,500
We have to define the reverse so that the make that she or you added that reverse.

121
00:07:17,100 --> 00:07:18,850
Yeah, added that reverse.

122
00:07:18,880 --> 00:07:20,930
So now with this device, you can do it.

123
00:07:21,330 --> 00:07:23,740
So with this reverse area, what exactly you have to do?

124
00:07:23,740 --> 00:07:26,910
We have to pass our DC status.

125
00:07:26,910 --> 00:07:32,680
So that is in our app that this app underscore payment into the payment area.

126
00:07:32,970 --> 00:07:38,790
If you go to or what else will the payment here have created as a complete switch to our particular

127
00:07:38,790 --> 00:07:39,470
database?

128
00:07:39,930 --> 00:07:41,960
So now I just simply defined as a complete.

129
00:07:41,970 --> 00:07:43,860
OK, so now let's check this out.

130
00:07:43,860 --> 00:07:45,910
If you know, print it again, as I say.

131
00:07:47,280 --> 00:07:49,440
So now here should be display.

132
00:07:49,470 --> 00:07:51,290
I just click again.

133
00:07:52,350 --> 00:07:53,450
No, go here.

134
00:07:53,910 --> 00:07:54,340
Yes.

135
00:07:54,360 --> 00:07:56,580
No, see, it's not perfectly updated.

136
00:07:56,580 --> 00:07:59,370
Our DC Warrell as a payment and a status.

137
00:07:59,490 --> 00:08:01,640
Redfearn So now we can actually use it.

138
00:08:01,890 --> 00:08:03,750
So that is the word I want to define.

139
00:08:04,290 --> 00:08:07,410
So that is how you are and defined that thing things on here.

140
00:08:07,410 --> 00:08:08,920
So that is our status right now.

141
00:08:08,920 --> 00:08:09,840
We don't need this.

142
00:08:09,840 --> 00:08:10,650
I checked it.

143
00:08:11,100 --> 00:08:12,330
So everything is running well.

144
00:08:12,330 --> 00:08:19,020
I make that things as a note and here in our success euro area, I want want to pass it and pass over

145
00:08:19,030 --> 00:08:20,160
this instead of several.

146
00:08:20,520 --> 00:08:24,090
And also for the fail here I define same.

147
00:08:25,340 --> 00:08:31,310
I also define that same for the councils, but you can also create multiple pays for your demands.

148
00:08:31,330 --> 00:08:37,190
Right now it's totally OK with me and also after that, we have to take our another one.

149
00:08:37,310 --> 00:08:39,600
So we have to take our responsibility.

150
00:08:39,600 --> 00:08:45,050
I just simply copied and now everything will we have to actually.

151
00:08:45,050 --> 00:08:48,970
So here I just simply posted that will be in order that if area.

152
00:08:49,730 --> 00:08:53,100
So here, here we have to do have to define all the down payment details.

153
00:08:53,130 --> 00:08:57,710
OK, so is the total amount of currency that is a product category.

154
00:08:57,710 --> 00:08:58,790
The product name.

155
00:08:58,820 --> 00:09:04,760
So that is also we have some the field we have on the field, we don't selected like the A product category.

156
00:09:04,760 --> 00:09:06,050
I even selected anything.

157
00:09:06,380 --> 00:09:07,730
And also there is a product profile.

158
00:09:07,730 --> 00:09:09,920
So now we have all submitted so far doing this.

159
00:09:09,920 --> 00:09:12,170
We have to do we have to get all that our order.

160
00:09:12,170 --> 00:09:12,460
Right.

161
00:09:12,830 --> 00:09:19,710
So all that our order, we have to get so soft at this so that the payments are here.

162
00:09:19,820 --> 00:09:22,330
So here I wanted to get all that our data.

163
00:09:22,790 --> 00:09:29,840
So if you want to get it, then you have to do you have to defend his order, order and risk of queries.

164
00:09:29,850 --> 00:09:31,340
So we disorder queries.

165
00:09:31,340 --> 00:09:34,310
OK, so that is our if condition.

166
00:09:35,720 --> 00:09:37,310
So that will be on here.

167
00:09:37,460 --> 00:09:39,460
OK, so that is our order.

168
00:09:39,480 --> 00:09:43,390
So in the order, the area we have to do, we have to define our order model.

169
00:09:44,120 --> 00:09:47,500
So from the order, I'm actually getting all that our order object.

170
00:09:47,630 --> 00:09:52,730
So I just have to defend his object and then the filter and filter.

171
00:09:52,730 --> 00:10:01,610
Our user user will be our requested user, write the requested user and also order will be as a false

172
00:10:02,390 --> 00:10:04,340
so same thing as a false.

173
00:10:05,330 --> 00:10:07,330
That means all the dot pending the details.

174
00:10:07,350 --> 00:10:07,650
OK.

175
00:10:07,670 --> 00:10:10,980
And also after that, we have to define our order all the time.

176
00:10:11,000 --> 00:10:15,320
So also defined that order, underscore items.

177
00:10:15,650 --> 00:10:20,980
And from our order we have to do we have to make that our object as a zero value.

178
00:10:21,080 --> 00:10:21,460
Right.

179
00:10:21,920 --> 00:10:25,010
So I just simply define converted with our zero object.

180
00:10:25,280 --> 00:10:28,540
And then here we have to define all the tower or the details.

181
00:10:28,940 --> 00:10:30,790
That means that is actually in our order.

182
00:10:30,800 --> 00:10:34,420
If you go to our order, into the order, if you go to that model.

183
00:10:34,730 --> 00:10:36,770
So that is a court all to order.

184
00:10:36,770 --> 00:10:38,300
We get from here.

185
00:10:38,300 --> 00:10:38,570
Right.

186
00:10:38,840 --> 00:10:44,280
That is all that our order user order item ordered that everything will get from here.

187
00:10:44,780 --> 00:10:47,300
So now I have to do in Texas our this order item.

188
00:10:47,300 --> 00:10:50,180
So we disorder items is already Matute over here.

189
00:10:50,180 --> 00:10:53,090
I have defined that many to many relationship with our card.

190
00:10:53,100 --> 00:10:53,310
Right.

191
00:10:53,340 --> 00:10:57,280
So now with this we can actually get all that our ordered item from our card area.

192
00:10:57,680 --> 00:10:59,950
So for the reasons we're allowed to do on defining it.

193
00:11:00,440 --> 00:11:07,910
So that is in our order that the order items and the order items to do and get all that our order from

194
00:11:07,910 --> 00:11:08,460
our card.

195
00:11:08,490 --> 00:11:10,600
So here I just simply defined as all.

196
00:11:10,970 --> 00:11:13,940
And then also we have to define our order count.

197
00:11:13,940 --> 00:11:16,090
That is how many order actually we have.

198
00:11:16,130 --> 00:11:17,810
So that is also in here.

199
00:11:18,260 --> 00:11:25,410
That is our order item underscore count and then here with this order.

200
00:11:26,060 --> 00:11:33,150
So with this order kuris miles, we have to pass our object data and then with our order item.

201
00:11:34,110 --> 00:11:39,130
So with this order items, I want to get all that our account information account.

202
00:11:39,140 --> 00:11:41,080
So just simply define that count.

203
00:11:41,510 --> 00:11:44,420
And then also we have to do have to get our get total.

204
00:11:44,720 --> 00:11:48,000
So order underscore total.

205
00:11:49,220 --> 00:11:57,920
So from the order total, I want to go on to get our with our order queries and then our zero value

206
00:11:58,310 --> 00:12:01,720
and then our get underscore totals.

207
00:12:03,220 --> 00:12:04,660
OK, that is all get totals.

208
00:12:04,670 --> 00:12:07,790
I want to get all the data from here, ok.

209
00:12:07,910 --> 00:12:09,470
So here I have defining it.

210
00:12:09,510 --> 00:12:12,180
Now we have to do we have to pass all that information.

211
00:12:12,680 --> 00:12:15,140
So here we have to pass our total amount.

212
00:12:15,140 --> 00:12:18,200
That means the total amount means actually our total order.

213
00:12:18,650 --> 00:12:20,960
So now here I want to to pass it.

214
00:12:20,970 --> 00:12:24,590
That will be our total order with the decimal.

215
00:12:24,800 --> 00:12:30,650
So here it will be displayed that we order total and then currency will be as it is right now.

216
00:12:30,650 --> 00:12:33,140
I make the things as ability that is a product category.

217
00:12:33,150 --> 00:12:35,140
So I didn't add any product category.

218
00:12:35,510 --> 00:12:39,950
So for the business here, I wanted to make the 2016 so mixed.

219
00:12:39,950 --> 00:12:44,660
So this step of one of the tests I had defined that the product name, product names, that means our

220
00:12:44,660 --> 00:12:45,410
order item.

221
00:12:45,740 --> 00:12:46,100
Right.

222
00:12:46,120 --> 00:12:46,990
So that is our order.

223
00:12:47,000 --> 00:12:47,120
Right.

224
00:12:47,120 --> 00:12:53,920
Then we have to pass side assembly, pass order item and the number of items, the number of items,

225
00:12:53,960 --> 00:12:57,110
our order count, how much order we have.

226
00:12:57,140 --> 00:13:00,220
So here I just simply pass our order count, OK?

227
00:13:00,560 --> 00:13:02,480
And then our shipping method.

228
00:13:02,480 --> 00:13:03,200
Shipping method.

229
00:13:03,200 --> 00:13:04,640
I make that things as a career.

230
00:13:05,600 --> 00:13:07,460
OK, I just make that as a career.

231
00:13:07,460 --> 00:13:11,560
And the profile, the product profile I make as a none is perfect.

232
00:13:12,230 --> 00:13:15,360
So now we have to do we have to also take our both of these.

233
00:13:15,380 --> 00:13:20,780
That means here both of this we have to also added in our particular date function area so we can do

234
00:13:20,780 --> 00:13:24,030
that work better and are done to continue this process in our next video.

235
00:13:24,050 --> 00:13:26,030
I will show you that things with a live example.

236
00:13:26,570 --> 00:13:29,600
So thanks for watching and I will see you in the next video.
