Laravel and Paypal Checkout API
HTML-код
- Опубликовано: 10 сен 2024
- We take a look at using Laravel and Paypal Checkout. Paypal is the most widely known online payment gateway so it's a good idea to accept it as payment if you run an online business. Unfortunately, Paypal does not have the greatest reputation in the developer community as its known for bad documentation and a confusing API.
Nonetheless, we'll take a look at how to integrate the Paypal Checkout API in a Laravel application using the PHP SDK.
GitHub Repo: github.com/dre...
Premium Course on Useful Laravel Packages: usefullaravelpa...
LINKS
My courses: codewithdre.com
Sign up for my newsletter: andremadarang.c...
My website: andremadarang.com
Twitter: / drehimself
GitHub: github.com/dreh...
CodePen: codepen.io/dreh...
I'm pretty sure that I'm wasn't the only one waiting for this teacher. Amazing
True dat bro
Haha, definitely a popular request! I had to figure it out for a project anyways, this video is what I went through to do so.
@@drehimself Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
Thanks Andre , Guys if your paypal popup disappears with clicking just move the code from api route to controller and create two functions for the two post routes you're gonna create
Thank you so much sir ... I did struggle with attaching database data to the work flow, but it now works like charm.
I was eagerly waiting for your tutorial, 3 days ago, when you posted on github, grateful.
Thanks for watching! Excellent stalking skills 😆
😂
@@drehimself Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
Just what I was looking for. From the best teacher no less!
Thanks for watching!
Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
how do we connect with the database??? and not use pre defined values for products?!
Great video, i have all i need and more, tnx Andre
Is it outdated? As currently, PayPal have different on its docs page.
yes I think so
does paypal offer multi-seller kick backs or handling fee? Similar to Square api for Taking a payment and collect an application fee Thank you
Hello Andre,
I keep getting a 500 internal server error - Correlation id: unknown - Request to post /api/create-payment/ failed with 500 error.. please what do i need to do to solve this problem - URgent !!
What a sir. Thankz alot dude. I have being learning too much things with u.
God bless you
Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
I love the way you explain subject 👍👍👍
Thanks for watching!
Unfortunately this is not working now. As it prompts in console "Use of Mutation Events is deprecated. Use MutationObserver instead."
What's up Andre, Should i use NVP/SOAP(classic) API which requires api username password and signature for laravel paypal checkout or this way?
You cannot use stripe for certain payments they dont allow it paypal accepts al payments
Hi, are you planing to redo this tutorial? PayPal has changed and they are pushing Smart Payment Buttons. So an update would be great.
InstaBlaster...
also why we need redirecturls? since after cancel it just returns to the same page . everything about paypal is so weird, their apis docs , etc suck hard. Stripe is so easy for example.
Hi! I would like to know if is safe use the javascript version cause you the credentials are there vissible for everyone.
Andre , when I need IPN? Is it not madantory? Please get me out of confusion. Paypal is the only gateway that confuses me.
Hello thank you but how do I save the payment to my database once the transaction is complete?
can i send invoice to my curtomer with create order API?
Hello, why setReturnUrl and setCancelUrl does not work ?
i just wasted 2 days for nothing.
thanks for awesome tutorial
Thanks for watching!
Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
Hello sir,
Thank you for posting this video. I'm trying to do this way. But when i am going to payment "
Sorry, your bank wasn't able to verify your VISA x-4366 at this time. Please choose another way to pay." message is showing. Could you please help me why this message is showing. I set current INR in seller & business account. But when i'm changing currency INR to USD it is working fine.
Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
100% working Thanks Man
Hi sir, last week i did a paypal integration as given in the below link:
www.cloudways.com/blog/paypal-integration-in-php/
After watching your video which is completely in a different way, I feel confused now. Which one should i follow? Which method is good for a e-commerce application?? Will there be a problem if i followed as specified in the link? or should i follow your steps?
I'm sorry if my question doesn't makes sense.
Thanks!
what about error options? are there any security risks? can you maybe cover?
thanks for great tutorial!
I wonder if anyone can help though. As it turns out, paypal has slightly changed the recommended integration and they encourage to use the smart buttons.
I am trying to implement it server side. As the user clicks the button I expect to get all the form data (name, lastname, shipping info, product, etc) and validate it. In case of some error, I would like to show it to the user. Instead...the PayPal popup appears as soon as the user clicks the button, regardless of my server response.
I feel like I am missing something big, maybe my whole approach is wrong?
Life saver
Steady! Awesome!
When it comes to documentation, of all the documentation you've gone through, whether it's paypal or laravel, google, tailwind, amazon, your new iphone xs plus manual. If you had to choose ONE of all you went through, who has the best looking, well structured and most appealing documentation out there ???
Just choose ONE, ok then MAX two. :D
I'm sorry, I'm choosing three lol. Laravel, Vue, and Tailwind all have amazing docs in my opinion.
Disqualified you are to bias! Haha :) Like for any topic a good documentation is essential for delivering your message and geting across to the students. I like Vue docs, well structured and clean and searchable, good stuff.
This is a great tutorial. I am only getting started with Laravel to create a fundraising site. Do you have a tutorial on getting the PayPal response back and including into Laravel Forms to save payment data?
I appreciate your work sir Andre, I follow your tutorial it works fine on sandbox but whenever i switched sandbox to live and change Client and Secret Ids as respect to live but i m getting error :( can you please help me, sir ?
same error ! any solution for ..!
Good Video and Well Content.
You're a life saver
Saludos, gracias por el video. 👍
Thanks for watching!
Thank you very much !
Thanks for watching!
Thank you for your tutorial
I want to do something like when a User sends money to another one I want that I keep a specific amount for the website itself
how can this be done ?
You'll have to keep track of this in your own logic and charge the user a percentage.
@@drehimself Hey Andre Thank you for your video. Just a question can we use batch payout api to accomplish this task brought up by @Atef
I mean this is the flow i come up with.
1. Make the user pay the amount of the service + 5% of this amount into my account using the tutorial you specified.
2. Then using batch payout to pay the respective seller right after payment execute.
Is this the right way to do it? Please any sort of tip will help.
Good logic but a lot of worse case part he didnt use the art of mvc to lessen the code but still thanks for giving the idea
Thanks for this :)
Thanks for watching!
Awesome!
Thanks for watching!
Hey man, can you show us how to integrate PayU Money payment gateway in laravel?
Amazing tutorial. Do you have any plans for Paypal Checkout Subscription tutorial?
Thanks for watching! No plans for Paypal Subscription tutorial as I've personally never had to deal with it.
Thanks for your effort making this video. I have never been using PayPal on my shops, and now I see why. My other shops getaway intergrate very easy, this on the other hand... I have absolutely no idear how to paste the tekst. Are anybody able to help me with this?
Pssst, just use Braintree, which allows you to simultaneously integrate PayPal. Braintree has great documentation :)
Lol ya, I just took a look at the docs and it seems way easier. I'm definitely considering using Braintree for my course platform. I'll do a video on it too :)
Damn dude, you're amazing
Thanks for watching!
@@drehimself Hello, how are you?
I am in big hurry, please help me out, I have seen your paypal integration please help me what else need to be change while making my site live/production. because I am creating payment but not executing i think so. what credentials should be there in production level. thanks
please make quzzle example
Is there a way to remove the shipping address though? Nice tutorial bro :)
just set the value to 0 :)
New question how can we pass arguments to payment event ?