Hello, friend, welcome back.
In a previous video, we successfully install our package and now we have to follow our all that other
instruction.
So if you want to do that work, you have to go to that position.
So here you can see there is all that in any instruction is here that is installed that this one that
is are being installed.
So you have already successfully installed it.
And after that, here, there is another instruction.
We have to add our Disick function that is our SSL section and also import our disembowelled.
So here we have to take both of this, but just simply copy it and now go to our view.
That means here that is our apartment and that is our view here.
We have to do we have to load it so better.
I bought some of the not for you, so it should be for our payment.
OK, so before the payment and here I just simply purchased it.
And also here we have to do we have to import our requests.
So because of all I have already installed that already exist.
So here you can see I have already added that together.
So we have to also import it.
So I just simply defined as the import.
So here I define import, import our requests.
OK, that means the request request.
Perfect.
And also for the payment.
We have to also import that socket.
So I just simply import import and socket.
So to simply import all the things on here.
So now we have to do, we have to create our own function.
So we have to create our functions after this, OK, we have to create our function for the payment.
So it will be Uzelac, you could say, to simply copy that required to locking the good.
And after that I take that function name as a payment payment and also still be part of that request.
So I just simply pass that request.
And here we have to do we have to get all that our billing address details.
Right.
So here we have to get it.
So I just take the save address and whatever that is, I have already added our billing address.
Right.
So if you go to our payment model into that payment model, that is our billing at the soon to the billing
address here all the time feel right.
So that is all that our field data.
So that is all that I feel that I have to get it.
So now I want to do and to get it.
So for the reasons here we have to do that is our save address and that will be the billing.
That means the billing address.
With this billing address, I get all the door object so objects and then get that means get our create.
If they have any data till we get it right, then it should be completed.
So I just simply defined as a get or create and create our user.
Our user will be our requested user.
Say they are simply defined that our requested user.
OK, and also here I want to do a different on the condition that means the if condition area.
I want to define first of all, this will be check it.
That means here all the our checkout data will be fill up.
So when we fill up then our the option that we saw this button will be appearance.
Right.
And also here I want to do before this payment, it will be check our profile, like if you go to our
profile.
So I didn't download server, so we have to run the server.
So I just simply run by and then manor's.
Managed by and then run server.
So our server is now running.
So now if you refresh it, Suheir, also I want to do our all that profile that state issues are all
the profile must have also as a fill up.
OK, so both of these I want to check it.
And after that, I want to make that payment for this user.
That means for this product.
Right.
So here I want to have this condition.
First of all, you should be check all the tower and this shipping address or for doing this, I just
put the condition.
I back all the shipping addresses that are with this same address.
So if I just simply not our D.C. address, I just make the things with our zero object.
I just converted it.
And here I wanted to check all that, our fill up data.
So here I have already defined that condition.
So with this condition, we checked it.
Right.
So with this condition, it will be check all the out this all the field is empty or not.
So now I just simply call it as it is fulfilled or not.
So here I define that condition.
OK.
So to simply define that condition.
So if this field is not a up, then it be sure some of the message I just simply define that messages
will be in full.
Right.
So in full.
And then here we have to parse that request and the request area.
We have to pass that message that we want to show, like it shall be sure as a please complete shipping.
Shipping address.
OK, so we showed this step up one of the message and after that is to be redone, redone and redirect,
redirect and it'll be redirect to our if you go to our apartment and here if you go to that wall, it
should be the key to our this base.
OK, so that is our apartment.
So here I defend the apartment and then our part name I have defined as a checkout, so shall be directed
toward this checkout based, our good friend.
And also here we have to do we have to check our profile.
That means this user profile.
And so this profile is already filled up on not so here.
Also, we have to get all the data.
So if you want to put that condition, then you have to do the same that we've not already guessed that
the request user.
And then if you go to our app logging into the app logging, if you go to that model.
So here I have already created another class.
I consider that with our profile.
So you do the profile.
I have also defined another function that are easily filled.
That means with this we have also checked it.
So with this we can check all that our feel is empty or not.
Right.
So that is all that our feel for the profile.
So here we check it.
So for now, I want to do and to access it with this user.
Then there is our profile.
And with this profile, we have to add our dysfunction.
Right.
So now I just simply define our profile.
And with this profile, I want to do and to access our this function or function name I have defined.
So our function name as it is fulfilled.
So this will be also check.
Everything will be very much clear to you why I am actually using it.
So it will be also check it and then and there is a message will be visible that the message is in full
and then request.
So this request I want to do on the show some of the message.
OK, so here shall we show some of the messages please.
Complete
profile a little.
OK, please.
Complete profile itself.
So be sure to step up one of the message and then it be done and return the direct.
Then it should be returned redirect to our, you know, our app logging.
If you to go to our you are well into that, you will also be directed toward this profile page.
OK, that was in our app logging.
So I think is very much clear to you what exactly the things I did on here.
See this will be related to our app logging and into the app logging I have created.
That is our name but name as a profile.
It should be the top profile page.
And then after that it'll be you done our we've done Durex.
So just simply before the return.
Freedlander So retender with this request here.
I want to load one of the pace.
So here I want to do in our app that means, you know what appartement here and to do and to create
the base.
So this base I want to load on here, it will be as a payment, not SDMI.
OK, so here I want to load out this payment or this demo.
So here I just simply defined the app, underscore sorry app underscore payment.
So in particular that folder area.
I have defined our base name as a payment payment estimate.
OK, so here after that I understand that our context data.
So that is our context.
So that is our context data.
And here right now I don't have any data, but I don't want to make the things as empty so far.
This payment I want to do on to create on the wall.
So that is in our app, that app shop, not Topshop, that is in our app payment, simply the app payment.
If you go to that hour, you also here I want to create another liberal.
So to simply and it so it will be at the checkout slash.
OK, that is a single slash and this will be as a payment.
So payment better.
You just name it as a pay.
OK, first class.
And then in our view I have created one of the function or function name as a payment, so I just simply
name it.
So here, you know, are you all right?
We don't need this.
So yeah, I just simply defined our function name as a payment and also I name it as a payment.
And also this link I want to add in our checkout page, that means in our district, the checkout pays
and here you can see that this is our make payments.
So here I want to learn to edit our dishwasher.
So I just simply defined as you are l and then in our app, that means that is that is in our app payment
into the app payment area.
That will be app payment.
And here I have created the park for access this profile.
That means a payment.
That is our payment.
Right.
So I just simply added that payment.
So that is.
Our audience now, let's check this out, if you click the save all the skills to save all and now go
to our card.
And with the card, if you go to our process to check out, so if you and I now make that feel as empty,
if you look at the same address, now you can see snowshoeing.
You cannot add that to your payment.
Right.
So for the reasons here, I defined this condition.
So, you know, our view area, I have defined that condition.
It shall be check it rather than it will be sure.
You saw the message and also I did find another one.
So I just now defend the USA as a safe address.
And now if you click as they make payment, yes, you can see snow redacted to you, which does not
indicate to you the profile page.
Right.
So also still showing as a place complete your profile details.
That means here I have defined that condition so that the request, our user profile and the result
is fully filled, then it should be sure some of the messages, please complete profile details, OK,
because with this function it will be also check all the our profile.
That means all that our profile feel it will be checked.
OK, now I think it's very much clear to you and after that it should be the key to our profile.
That means the profile page.
So you can see it's not related to the profile page.
So here we have to do we have to add everything.
So now I just name it as a Kazarian, Gozi, Ardian.
And there is a full name address I define for the purpose of the USA.
And for now I just simply defensed as the USA puts out the demo code and put the country and pull some
of the phone number.
OK, so here I just fill up every field as a safe scenography profile updater.
Successful.
So now if you go to your card, go to our process, make a payment.
Yes.
You can see now it's perfectly access out this route.
That means the payment be right.
So here I have already created the URL, so I have already given WRAL as a payment page.
That means our views.
I have created the function as a payment and I just named it as a pay.
So into the area I have loaded out this space.
So that is our that is our function name as a payment.
And here I defined as a return and request our payment and the payment stable.
That means our payment on the stable page is now successfully loaded.
OK, and so it should be checked.
Both of these issues will be check our shipping address is fee Lapita not and also shall we check our
profile addresses, believe it done not.
And will both of this will be the fill then it will be redacted to our payment base.
So now we have to do we have to update our and other audit instructions, because here we have to also
add these.
We have to also add all the things in our view area.
So step by step, how can added in our next video, I will show that things with a live example.
So thanks for watching.
I'll see you in the next video.