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...

Комментарии • 86

  • @jhoanborges6574
    @jhoanborges6574 5 лет назад +2

    I'm pretty sure that I'm wasn't the only one waiting for this teacher. Amazing

    • @Thavarshan
      @Thavarshan 5 лет назад

      True dat bro

    • @drehimself
      @drehimself  5 лет назад +1

      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.

    • @xtrait2470
      @xtrait2470 4 года назад

      @@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

    • @xtrait2470
      @xtrait2470 4 года назад

      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

  • @mohamedabdelrhman3241
    @mohamedabdelrhman3241 5 лет назад

    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

  • @aserlink
    @aserlink 4 года назад

    Thank you so much sir ... I did struggle with attaching database data to the work flow, but it now works like charm.

  • @nilnavegadores767
    @nilnavegadores767 5 лет назад

    I was eagerly waiting for your tutorial, 3 days ago, when you posted on github, grateful.

    • @drehimself
      @drehimself  5 лет назад

      Thanks for watching! Excellent stalking skills 😆

    • @nilnavegadores767
      @nilnavegadores767 5 лет назад

      😂

    • @xtrait2470
      @xtrait2470 4 года назад

      @@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

  • @Thavarshan
    @Thavarshan 5 лет назад

    Just what I was looking for. From the best teacher no less!

    • @drehimself
      @drehimself  5 лет назад

      Thanks for watching!

    • @xtrait2470
      @xtrait2470 4 года назад

      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

  • @nepaliNamastey
    @nepaliNamastey 5 лет назад +1

    how do we connect with the database??? and not use pre defined values for products?!

  • @giorgiobrugnone6879
    @giorgiobrugnone6879 3 года назад

    Great video, i have all i need and more, tnx Andre

  • @saroj_shrestha
    @saroj_shrestha 5 лет назад +1

    Is it outdated? As currently, PayPal have different on its docs page.

  • @nebo6692
    @nebo6692 2 года назад

    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

  • @onecarry1532
    @onecarry1532 4 года назад

    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 !!

  • @jorgenash3452
    @jorgenash3452 4 года назад

    What a sir. Thankz alot dude. I have being learning too much things with u.
    God bless you

    • @xtrait2470
      @xtrait2470 4 года назад

      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

  • @siyedyoussef3202
    @siyedyoussef3202 5 лет назад

    I love the way you explain subject 👍👍👍

  • @jayjayhealth2587
    @jayjayhealth2587 5 лет назад

    Unfortunately this is not working now. As it prompts in console "Use of Mutation Events is deprecated. Use MutationObserver instead."

  • @os_films
    @os_films 5 лет назад

    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?

  • @boltonfilmandtelevision2169
    @boltonfilmandtelevision2169 2 года назад

    You cannot use stripe for certain payments they dont allow it paypal accepts al payments

  • @Oldfishef
    @Oldfishef 4 года назад +3

    Hi, are you planing to redo this tutorial? PayPal has changed and they are pushing Smart Payment Buttons. So an update would be great.

  • @antonyjere
    @antonyjere 4 года назад

    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.

  • @nataliagonzalez5841
    @nataliagonzalez5841 3 года назад

    Hi! I would like to know if is safe use the javascript version cause you the credentials are there vissible for everyone.

  • @antonyjere
    @antonyjere 4 года назад

    Andre , when I need IPN? Is it not madantory? Please get me out of confusion. Paypal is the only gateway that confuses me.

  • @thomasdavies9449
    @thomasdavies9449 4 года назад

    Hello thank you but how do I save the payment to my database once the transaction is complete?

  • @fakhriramadhan4220
    @fakhriramadhan4220 2 года назад

    can i send invoice to my curtomer with create order API?

  • @amazighi5948
    @amazighi5948 4 года назад

    Hello, why setReturnUrl and setCancelUrl does not work ?

  • @mdarafat9692
    @mdarafat9692 5 лет назад +3

    i just wasted 2 days for nothing.
    thanks for awesome tutorial

    • @drehimself
      @drehimself  5 лет назад

      Thanks for watching!

    • @xtrait2470
      @xtrait2470 4 года назад

      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

  • @phpdeveloper8378
    @phpdeveloper8378 5 лет назад

    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.

  • @xtrait2470
    @xtrait2470 4 года назад

    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

  • @asimraza7192
    @asimraza7192 4 года назад

    100% working Thanks Man

  • @harryjamespotter8029
    @harryjamespotter8029 4 года назад

    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!

  • @antonyjere
    @antonyjere 4 года назад

    what about error options? are there any security risks? can you maybe cover?

  • @dippold77
    @dippold77 4 года назад

    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?

  • @omermutlu9941
    @omermutlu9941 2 года назад

    Life saver

  • @pajisounds
    @pajisounds 5 лет назад

    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

    • @drehimself
      @drehimself  5 лет назад +1

      I'm sorry, I'm choosing three lol. Laravel, Vue, and Tailwind all have amazing docs in my opinion.

    • @pajisounds
      @pajisounds 5 лет назад

      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.

  • @gwolanin
    @gwolanin 4 года назад

    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?

  • @eelectronics2742
    @eelectronics2742 5 лет назад +1

    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 ?

  • @ayazahamed8254
    @ayazahamed8254 3 года назад

    Good Video and Well Content.

  • @JorgeBartual1
    @JorgeBartual1 5 лет назад

    You're a life saver

  • @nadiefuego
    @nadiefuego 5 лет назад

    Saludos, gracias por el video. 👍

  • @therox9436
    @therox9436 5 лет назад

    Thank you very much !

  • @atefrihane
    @atefrihane 5 лет назад +1

    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 ?

    • @drehimself
      @drehimself  5 лет назад +1

      You'll have to keep track of this in your own logic and charge the user a percentage.

    • @sheikhabdullah6574
      @sheikhabdullah6574 5 лет назад

      @@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.

  • @johndetomal9678
    @johndetomal9678 5 лет назад

    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

  • @attemptedcoding
    @attemptedcoding 5 лет назад +1

    Thanks for this :)

  • @andreigatej6704
    @andreigatej6704 5 лет назад

    Awesome!

  • @dsuryas
    @dsuryas 5 лет назад

    Hey man, can you show us how to integrate PayU Money payment gateway in laravel?

  • @doreto95
    @doreto95 5 лет назад

    Amazing tutorial. Do you have any plans for Paypal Checkout Subscription tutorial?

    • @drehimself
      @drehimself  5 лет назад

      Thanks for watching! No plans for Paypal Subscription tutorial as I've personally never had to deal with it.

  • @juliebrix6673
    @juliebrix6673 5 лет назад

    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?

  • @vcmattsucr
    @vcmattsucr 5 лет назад

    Pssst, just use Braintree, which allows you to simultaneously integrate PayPal. Braintree has great documentation :)

    • @drehimself
      @drehimself  5 лет назад

      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 :)

  • @cevinways1434
    @cevinways1434 5 лет назад

    Damn dude, you're amazing

    • @drehimself
      @drehimself  5 лет назад

      Thanks for watching!

    • @xtrait2470
      @xtrait2470 4 года назад

      @@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

  • @dev_99999
    @dev_99999 Год назад

    please make quzzle example

  • @jebiboy
    @jebiboy 4 года назад

    Is there a way to remove the shipping address though? Nice tutorial bro :)

  • @sheikhabdullah6574
    @sheikhabdullah6574 5 лет назад +1

    New question how can we pass arguments to payment event ?