How to Integrate Paypal Payment Gateway for Checkout Cart in MVC

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to nicola maps show you in this video i will show you how to integrate the paypal payment gateway into our application for checkout process so i have opened an e-commerce project and the product page ok this simple ecommerce app i'm going to add the product into my shopping cart and here is my shopping cart in my shopping cart there are there is one product with a total of 30,000 i want to check out this 30,000 using people ok let's have a look people what is the paper people is a simple banking service or you will say it is an online payment engine which will transfer the phone from one account to another account ok in the simple words whenever I click on this checkout button the amount of 30 thousand piece will be deducted from any person who is going to check out this card and will be added or deposited into the account of the website owner or the business which is running this website ok first of all we have to look how does people different work will be simply people provides us an a link or a simple web request or to process our payment this is a very simple method another method a better provider as simple as that clip many other other API is to process payment but this is the very simple method in this method we are just going to understand how payment PayPal payment engine works ok I have copied this URL and going to pay this is a visual if I'm going to this is your okay this URL this will open the website of people's and send boxes or people sandbox is the outcome which you can choose while development because in the development there are many errors and if by the mistake are due to and stuck into a loop or something happened or badly you have done some mistake all the amount of you all the amount in your comment will be to someone else account so you are not intending to do this in the development process so people have created a sandbox account for that in the sandbox only the testing purpose were prior to integration testing and simple payment testing okay this will go to sandbox account and when you are finalize your development you will remove this sandbox word from the URL and you will be using the actual paper engine and actual people you get myopia when clicking on this people dot this URL this will go to paypal.com and cgi-bin and then it will create a web request with some parameters the first parameter is the come on become our CMD means become on the X click the user have clicked the button okay simple come on another parameter which is converted by using and operator okay the amount whenever you have to pay someone you should definitely know how much you have to pay okay this is the amount you will going okay I am simply hard-coded the payment method and third thing is the business to whom - to what person you are going to pay so here you need a business zone a business account means the person who is going to receive the payment okay you have to create a business account to receive the payment so I have already created a business account with name of change your tailors okay this is the business account which were going to receive and the fourth parameter is the name of the item you are going to sell okay item item and this is the page over here we will learn our where you will go after a successful payment so I have to create a success message are successful teach to notify the user you have successfully made the payment okay now I'm going to pay the only two hundred dollars depends work in dollars because it is not allowed in Pakistan so we have to convert our amount into the dollars and then we okay so I'm going to simply pay the amount of $200 to the general tailors by selling the electronic item and I will return to the page any page I will going to this later okay I'm going to enter this it will go to the PayPal website multi testing website this sandbox website and ask you you have to pay $200 and enter your email so you should have a party line simple the user can be able to pay the amount I have already my account here so I can send me check out this yeah this will simply log in okay I'm going to login in this way you can be anymore okay whenever the successful payment I have made it will return your page return to the page well because are mentioned in the paper if you okay simple now I have all these setup ready I have to simply and this URL on click event of this page okay this will be simple funding which will go to this that page of paper and going to make payment okay whenever this occurs pay mind if it takes some time because Capon is a banking site and very busy okay so only talking yes you have to pay this amount by using this credit card and continue button P know this will process your payment and pay anyone you want to pay okay you have paid us patrollers okay now this thing I have to do with my application I have to add this link which I have used here to this I have to make some dynamic changing because every time the user on my dad side will have different total so I have to care about the total okay simple I am going to take this embed into my application okay first of all you need to find out which page you are going to exist in I have at the end of this is in the I already total all the amount in here so I can and this is tip-top we are taking our product rupees and we have to make the payment in the dollar so I have to convert this into our one dollar is equal to 1/16 you may make it dynamic you think Web API maybe I will convert automatically your mouth into no every time I have a and this total total will always converted into the total always converted into dollars and then here you have to change after creating your account with the PayPal your businesses are you have to change and this account here okay I am my I ask my account by this name so I'm using this okay the item name you are not saying demanding electronics okay and one hour this is successful we are going you have to go to a peach which will show you that you have successfully paid our pumping order conform and something text like that okay I have to create a page and paste it here okay I have to create a page for creating a page I have to add a public action lizard into the page okay I am T time template therefore ding it will take some time okay this is our checkout okay in the checkout page I'm going to show that a simple notification that you have paid successfully [Music] [Music] now I can have the X address of that page okay this is the pH to you in my power to get the URL of this page and I have to piece that it will take some time to load the page I have opened the page and to look like this case the payment confirm message and I want you to see this page is gonna be definite that you have painted something mom and I'm going to copy this is the URL of this page and I think is here in my shopping cart when I will be payment is successful I will return to this page which is only localhost for real hosting this will be different for example whenever any piece similar to that but I'm running this application on localhost this will be returned here and in my checkout page okay I have provided all the things because I have changed I have made changes in the code of the shop controller I have to recompile this application this application again will have been started but now I see we build successful page okay but it's succeeding now I can run my page again I am Andy Roddick is again and then gave to my products page because I have component applications I said it will be empty products again into the God which is animated TV at God okay I have to be okay nothing here because I have created the request will be okay now when I click on diversity to check out water it will go to people [Music] page so paper is going to take some time while loading okay thirty thousand is converted into new dollars by using that rate we have copied onto our application and now I'm going to check this out by continuing okay no I have to be unclick p.m. button okay you have been because I was already logged into my car so I don't have to log in again but in yours now I know you have to log in first time to make this payment and whenever you see this payment successful method you may return to the merchants website for payment form you can show here the invoice on the billing details here I am going to have all these features later I am also going to send the email and message confirmation successful payment thank you for watching
Info
Channel: Dev. Khurram Shahzad
Views: 5,660
Rating: undefined out of 5
Keywords:
Id: phLBvOa0xog
Channel Id: undefined
Length: 18min 10sec (1090 seconds)
Published: Mon Apr 27 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.