Hello, friend, welcome come back in a previous video we have created on the function as a payment
and also we checked all that, our billing address, that means the shipping details must have fill
up.
And also we check our profile.
All the feelings will be done.
Not right.
And now we are ready to add our payment.
All that instruction like here if you go to our disposition.
So here I have already added both of this.
And now, first of all, I just simply copy it, OK?
Just simply copied.
And now in our view idea after this.
OK, so after this we have to work.
So here I just simply put it, OK, so this will be on here that see our IDF conditioned area so that
are defining it.
So in particular that area is calling that SSL that section and then that is our source is sandbox.
That means right now we are working with for the developing world.
OK, that is a test purposes for the reasons here.
You can see I make that things as a default, as a true.
But when you working with the paid option, then you have to make that things as a false.
And after that that is already storewide.
And also that is our iStore password.
So here we have to do we have to add both of these.
So if you go to your mail, so you will get these two of these things, one will be as ID, another
will be as a your API security.
Right.
So that is the two of the things will be needed.
So I know first of all, I want to take that our iStore ID, so that is always true.
I do have to define for doing this here.
OK, here I want to do and take on the variable and I just name it as iStore underscore ID and here
I define our strategy.
So here I just simply defining it.
OK, and also we need our API.
So just simply defined as API under is karki so our API key.
So it will be our this one means this one.
So I just simply copy it.
And now here I define our API key.
So now we have to do we have to pass our it.
That means our easiest already will be this one.
So the simply updated our ID and also that is our API key.
So I just simply copied and here that is our pilkey.
So in particular that position we have to add our back and after that our another person.
So we have to add another Pushtuns.
I just simply copy it.
And now here after this, OK, after this I just simply paste it so it'll be, you know, this if conditional
here.
And also that is our link.
So here it's meaning that side you are the one who told me that your payment will be successful.
Where exactly should be declared it should be as a fail that they are fail.
You are ill.
What exactly should be rejected?
The cancel that is when this payment will be canceled.
Then where exactly it will be redacted.
OK, and also if you want to fill some of the notification, that notification will be redacted.
Which base?
You can define all the things from here so you can create the multiple pays for this one that is going
to be successful.
It will be the key to all the successful pays when it's to be a failure to reject two of the fail pays,
the cancellation pays.
OK, so you can define multiple payers.
But right now I don't want to create only one piece.
So you know our payment here I want to do and to create new file and then just name it as a complete.
OK, so this is the piece I created, so I know the result, you the result will be not needed.
OK, so here I just simply define our base as a competitor still.
So now for this this family from Texas said we have to create another function for this one.
So better after this.
OK, so after this afternoon to create another function.
So here a different analyst will be also deadlocking required.
So I just simply copied that logging record and then I created of the function of the Dave and then
I name it as a complete, complete and then the request.
And here we have to pass it.
So I just simply defend the render surrender and into the render area.
With this request, with this request, I just simply our app that miss our payment here.
I have created on the base as a complete not as HTML.
Right.
And also here I just simply put the context sorry, some context and I want to do and to make the things
as empty and also for as this complete, we have to do we have to create the new order.
So that is in our payment into the app and then go to that.
You are also here on the ground to create an order and they just name it as a status.
OK, just name it as the status.
And in our view area, I have created all the function name as a complete.
So I just simply name it as a complete and I just named it as a complete OK.
So now I just have to save all.
So now into the viewing area here, we have to define all that.
Our you are so here.
If you actually add that you are like that, we're like right now that is our you are right.
So if you want to access it directly, so if you want to access it, so every time you whatever the
project, you will run.
So some of the time you may be the different one.
Right.
So then it will be getting some of the error.
And also when you upload this project into the domain area, then also here you have to update this.
You are right, because every time our this part not will be the same.
So if you want to prevent it, they have also not done a function so into the functionality of one of
the things in our this function.
So automatically it will be created.
This function, you are OK.
So if you want to prevent it, then I show you, then you have to do you have to added the function
name as a status under you are and here that have all the function you have to use it with the request
request.
And then there is actually one of the function as a Beeld bill underscore absolute.
Absolute under.
You are right.
So I just believe that you are a clone of the function, so I show you what exactly that will be actually
do like here I want to do it.
So I just simply defined as a print and print out these variables.
I just simply print it.
So now if you actually look at the Savol, I just click the save all and now if you click enter.
So now if you run your console.
So did the consulate, you can see snowshoeing showing our which you are, you know, showing our D,
then the payment and then the pay.
Right.
But here I want to do want to actually access our D.C. What that message will be rejected or complete.
So for the complete, I have already found out the one that is our complete one.
Right.
So that will be redacted or this status area.
So for the reasons here, you have to do we have to defining it.
So for now, I want to do I want to update our D.C. model.
So that is what you are, Olivia, here we have to do.
We have to define the reverse so that the make that she or you added that reverse.
Yeah, added that reverse.
So now with this device, you can do it.
So with this reverse area, what exactly you have to do?
We have to pass our DC status.
So that is in our app that this app underscore payment into the payment area.
If you go to or what else will the payment here have created as a complete switch to our particular
database?
So now I just simply defined as a complete.
OK, so now let's check this out.
If you know, print it again, as I say.
So now here should be display.
I just click again.
No, go here.
Yes.
No, see, it's not perfectly updated.
Our DC Warrell as a payment and a status.
Redfearn So now we can actually use it.
So that is the word I want to define.
So that is how you are and defined that thing things on here.
So that is our status right now.
We don't need this.
I checked it.
So everything is running well.
I make that things as a note and here in our success euro area, I want want to pass it and pass over
this instead of several.
And also for the fail here I define same.
I also define that same for the councils, but you can also create multiple pays for your demands.
Right now it's totally OK with me and also after that, we have to take our another one.
So we have to take our responsibility.
I just simply copied and now everything will we have to actually.
So here I just simply posted that will be in order that if area.
So here, here we have to do have to define all the down payment details.
OK, so is the total amount of currency that is a product category.
The product name.
So that is also we have some the field we have on the field, we don't selected like the A product category.
I even selected anything.
And also there is a product profile.
So now we have all submitted so far doing this.
We have to do we have to get all that our order.
Right.
So all that our order, we have to get so soft at this so that the payments are here.
So here I wanted to get all that our data.
So if you want to get it, then you have to do you have to defend his order, order and risk of queries.
So we disorder queries.
OK, so that is our if condition.
So that will be on here.
OK, so that is our order.
So in the order, the area we have to do, we have to define our order model.
So from the order, I'm actually getting all that our order object.
So I just have to defend his object and then the filter and filter.
Our user user will be our requested user, write the requested user and also order will be as a false
so same thing as a false.
That means all the dot pending the details.
OK.
And also after that, we have to define our order all the time.
So also defined that order, underscore items.
And from our order we have to do we have to make that our object as a zero value.
Right.
So I just simply define converted with our zero object.
And then here we have to define all the tower or the details.
That means that is actually in our order.
If you go to our order, into the order, if you go to that model.
So that is a court all to order.
We get from here.
Right.
That is all that our order user order item ordered that everything will get from here.
So now I have to do in Texas our this order item.
So we disorder items is already Matute over here.
I have defined that many to many relationship with our card.
Right.
So now with this we can actually get all that our ordered item from our card area.
So for the reasons we're allowed to do on defining it.
So that is in our order that the order items and the order items to do and get all that our order from
our card.
So here I just simply defined as all.
And then also we have to define our order count.
That is how many order actually we have.
So that is also in here.
That is our order item underscore count and then here with this order.
So with this order kuris miles, we have to pass our object data and then with our order item.
So with this order items, I want to get all that our account information account.
So just simply define that count.
And then also we have to do have to get our get total.
So order underscore total.
So from the order total, I want to go on to get our with our order queries and then our zero value
and then our get underscore totals.
OK, that is all get totals.
I want to get all the data from here, ok.
So here I have defining it.
Now we have to do we have to pass all that information.
So here we have to pass our total amount.
That means the total amount means actually our total order.
So now here I want to to pass it.
That will be our total order with the decimal.
So here it will be displayed that we order total and then currency will be as it is right now.
I make the things as ability that is a product category.
So I didn't add any product category.
So for the business here, I wanted to make the 2016 so mixed.
So this step of one of the tests I had defined that the product name, product names, that means our
order item.
Right.
So that is our order.
Right.
Then we have to pass side assembly, pass order item and the number of items, the number of items,
our order count, how much order we have.
So here I just simply pass our order count, OK?
And then our shipping method.
Shipping method.
I make that things as a career.
OK, I just make that as a career.
And the profile, the product profile I make as a none is perfect.
So now we have to do we have to also take our both of these.
That means here both of this we have to also added in our particular date function area so we can do
that work better and are done to continue this process in our next video.
I will show you that things with a live example.
So thanks for watching and I will see you in the next video.