PayPal Integration In Laravel - Step By Step Guide -

#Laravel #Php #PayPal
Hello all!
The aim of this video is to give you a demonstration of how you can integrate PayPal gateway with Laravel. You can find step by step guide that how can you integrate PayPal with Laravel.
00:00 What we are going to create?
00:39 Creating PayPal account
02:16 Create PayPal App
03:04 Adding PayPal credentials in .env
04:09 Create Model & Migration
05:27 Migrating migrations
06:10 Omnipay PayPal Package
07:15 make PaymentController & write logic
11:57 make routes in web.php
12:25 Adding Pay Form
13:24 Resloving Errors
14:35 Pay with PayPal
15:58 Last part
blog post:
dev.to/suleman/paypal-integra...
Feel free to mention your problem in the comment box of this video.
Thanks!

Пікірлер: 108

  • @fromazerbaijan6482
    @fromazerbaijan64822 жыл бұрын

    I just need this explanation, very good man.

  • @user-rw8er2ev9j
    @user-rw8er2ev9j5 ай бұрын

    just wow its working thank you so much , much respect

  • @takneekicode

    @takneekicode

    5 ай бұрын

    👍🏻

  • @yamachben6293
    @yamachben62933 ай бұрын

    Very Smooth bro 👍👍👍

  • @takneekicode

    @takneekicode

    3 ай бұрын

    Thanks for the visit

  • @varun8693
    @varun86932 жыл бұрын

    Great man, you really help me out ✅

  • @iamjosh2084
    @iamjosh2084 Жыл бұрын

    Great Work!

  • @vasyabondar4333
    @vasyabondar4333 Жыл бұрын

    Great man, you really help me

  • @mrjohn6960
    @mrjohn6960 Жыл бұрын

    Very Help ful brother

  • @Allen-yc8jc
    @Allen-yc8jc2 жыл бұрын

    Very good man, I could not find the package now I found

  • @akhilvijay8670
    @akhilvijay867010 ай бұрын

    Hello, great tutorial! Appreciated for the effort..

  • @takneekicode

    @takneekicode

    10 ай бұрын

    Glad it was helpful!

  • @pandyjee1752
    @pandyjee1752 Жыл бұрын

    Well done sir

  • @user-ix2zz7ci6i
    @user-ix2zz7ci6i28 күн бұрын

    Thank you. It was really usefull.

  • @matteobatticani435
    @matteobatticani435 Жыл бұрын

    Great work. Thank you, you have been very helpful to me

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Glad to hear ❤️

  • @priyaverma4297

    @priyaverma4297

    Жыл бұрын

    Hiiii , I got error Call to a member function purchase() on null Anyone help me for PayPal payment gateway integration ?????

  • @unknownname6671
    @unknownname6671Ай бұрын

    Great explanation sir. recommended 🥰😍

  • @takneekicode

    @takneekicode

    Ай бұрын

    thanks

  • @jm-rq5sj
    @jm-rq5sjАй бұрын

    thanks you so much man

  • @takneekicode

    @takneekicode

    Ай бұрын

    thanks 😊

  • @hazinaprosper443
    @hazinaprosper443 Жыл бұрын

    Thank you for your good work.

  • @takneekicode

    @takneekicode

    Жыл бұрын

    I am glad I can help.

  • @hazinaprosper443

    @hazinaprosper443

    Жыл бұрын

    @@takneekicode what about integrating visa card and mastercard?. please do it.

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Well you can use the same omnipay package for this. I suggest you to read docs of omnipay. 👍🏻

  • @hazinaprosper443

    @hazinaprosper443

    Жыл бұрын

    @@takneekicode i will

  • @KirtiDixit-lj4ve
    @KirtiDixit-lj4ve4 ай бұрын

    Thank you so much

  • @takneekicode

    @takneekicode

    4 ай бұрын

    👍🏻

  • @henryh.1979
    @henryh.1979 Жыл бұрын

    very thanks man, love you ❤

  • @souravdutt7
    @souravdutt7 Жыл бұрын

    Very useful! Thanks for sharing.

  • @takneekicode

    @takneekicode

    Жыл бұрын

  • @asmatkhan6170
    @asmatkhan61702 жыл бұрын

    Good

  • @roshannafiz8698
    @roshannafiz8698 Жыл бұрын

    Cool

  • @George-zh3ws
    @George-zh3ws2 жыл бұрын

    Very helpful but what about live server???

  • @mahiuddinnoyon6040
    @mahiuddinnoyon60402 жыл бұрын

    Thanks bro.

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    I am glad that I am helpful.

  • @rbsvan1273
    @rbsvan12732 жыл бұрын

    Thank you

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    Glad I can help you

  • @skia515
    @skia5159 ай бұрын

    thanks a lot

  • @takneekicode

    @takneekicode

    9 ай бұрын

    Happy to help

  • @roshannafiz8698
    @roshannafiz8698 Жыл бұрын

    How can I Insert dynamic value Like: user_name, user_email ETC ??

  • @nuruzzanamhimel5911
    @nuruzzanamhimel5911 Жыл бұрын

    thx u sir

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Most welcome

  • @englishman5342
    @englishman53422 жыл бұрын

    That's what I want 👍🏻

  • @Arslangrewal
    @Arslangrewal Жыл бұрын

    Class '\Omnipay\Paypal\RestGateway' not found Hi the above mentioned error couldn't be resolved ...please guide me. or send me any link for solution.

  • @vishwasitprofessional
    @vishwasitprofessional Жыл бұрын

    Ipn or webhooks are missing, anyways good one.

  • @ssjc02
    @ssjc02 Жыл бұрын

    Great! Now, how can we send custom fields i.e orderId or userID?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Hey John, sorry for late reply. If you want to save your orderId and userId to the database then just add two columns in your migration and then migrate and then just save it with the help of a controller.

  • @lastride8891
    @lastride88912 жыл бұрын

    Great, you have explain every step. Save my ass

  • @azlinrazali2664
    @azlinrazali26643 күн бұрын

    I just created PayPal developer, but there's no default sandbox test account for Business and Personal. Then, I also cannot create new account for Personal. Anyone know how to solve it?

  • @priyaverma4297
    @priyaverma4297 Жыл бұрын

    Hiii guys Anyone help me M facing some errors regarding of payment ???????

  • @danhnhan1169
    @danhnhan1169Ай бұрын

    Is there any problem when I use Omnipay for live app?

  • @bishalshrestha707
    @bishalshrestha707 Жыл бұрын

    Where does the payment_id and payer_id come from in success function of PaymentController ?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    From payal

  • @user-yt6wc
    @user-yt6wc Жыл бұрын

    thanks bro. Btw in which account payment will be recieved?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    In this video I used sandbox account for testing so the would be received in a sandbox account. But when you make your application live then you should not use sandbox account.

  • @mahmoodali7522
    @mahmoodali75222 жыл бұрын

    weldone

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    Thanks Mahmood

  • @mahmoodali7522

    @mahmoodali7522

    2 жыл бұрын

    Can u share contact info?

  • @khamisbadru9342
    @khamisbadru9342 Жыл бұрын

    Hey man, can you please make a video on how to integrate PesaPal in laravel, thank you

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Hello sir! I didn't work on PesaPal but I will try

  • @DeepakVerma-rw5lu
    @DeepakVerma-rw5lu Жыл бұрын

    i am facing same issue while using this code. "Authentication failed due to invalid authentication credentials or a missing Authorization header.". Can you please help me in this. I searched this alot but cant find any solution.

  • @jamesadeyemo2516

    @jamesadeyemo2516

    Жыл бұрын

    Hello Deepak, have you found the solution? if yes, please can you share with me?? Thanks in Advance

  • @raulhernandez7528
    @raulhernandez7528 Жыл бұрын

    hi can i ask i get errors with omnipay in the controller can u give me any ideas?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    What errors?

  • @raulhernandez7528

    @raulhernandez7528

    Жыл бұрын

    @@takneekicode working now thank u i subscribed to u! 😃😃😃😃

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Great and thanks

  • @arunkumark1596
    @arunkumark15962 жыл бұрын

    How can i add debit / credit card form

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    It will add automatically with Paypal

  • @CodingEscort
    @CodingEscort Жыл бұрын

    please make video on laravel weather app

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Sure

  • @khamisbadru9342
    @khamisbadru9342 Жыл бұрын

    Salaam, in my payments table i added column "student_id". how can i receive my student id? because i got an error student_id can not be null

  • @takneekicode

    @takneekicode

    Жыл бұрын

    That error means you are data is going null in student_id field either make it nullable or try to add data on every request

  • @khamisbadru9342

    @khamisbadru9342

    Жыл бұрын

    @@takneekicode okay, i'll share my code with you

  • @Useful-content
    @Useful-content11 ай бұрын

    Sir, how to view our balance in PayPal?

  • @takneekicode

    @takneekicode

    10 ай бұрын

    From dashboard

  • @ihsanboediono
    @ihsanboediono2 жыл бұрын

    how i can check status of the payment sir ??

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    You can save the data into the transactions table and a column payment_status.

  • @gadgetgemsonline
    @gadgetgemsonline Жыл бұрын

    Do you freelance for larave works?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Yes, I do

  • @khurramyaseen8041
    @khurramyaseen8041 Жыл бұрын

    how to run command line to install omnipay

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Hey Khurram, you just need to open your terminal in your code editor and then run the same command that I have run in the video to the install omnipay package

  • @khurramyaseen8041

    @khurramyaseen8041

    Жыл бұрын

    @@takneekicode I am applying this on my share hosting server, I have tried your given command on route file but failed.

  • @takneekicode

    @takneekicode

    Жыл бұрын

    If your project works fine in your local then the same project should work on a live server but If you are facing continuous errors then let me know in the email by sending screenshots or something with I can understand your problem.

  • @asimadnan1316
    @asimadnan13162 жыл бұрын

    can you please provide controller file!!😐

  • @takneekicode

    @takneekicode

    2 жыл бұрын

    I will share

  • @asimadnan1316

    @asimadnan1316

    2 жыл бұрын

    @@takneekicode i have a problem. The success function is not working . 404 | Not Found error occured.

  • @asimadnan1316

    @asimadnan1316

    2 жыл бұрын

    @@takneekicode where is the link where you shared that file?

  • @asimadnan1316

    @asimadnan1316

    2 жыл бұрын

    @@takneekicode share your controller code or file. It may be helpful for me.

  • @andersodgaard6699

    @andersodgaard6699

    2 жыл бұрын

    chill asim

  • @usmanbabar8217
    @usmanbabar8217 Жыл бұрын

    when i put live keys it throws an error authentication failed

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Check your credentials or permissions. There should be something missing or wrong.

  • @ricardoromeroarana3145
    @ricardoromeroarana3145 Жыл бұрын

    bro i got an error in setClientId(...), setSecret and setTesMode, it says undefined method any idea?

  • @takneekicode

    @takneekicode

    Жыл бұрын

    Hello Ricardo! Did you add all the functions to the controller? Or follow all the steps?

  • @ricardoromeroarana3145

    @ricardoromeroarana3145

    Жыл бұрын

    @@takneekicode I added all the functions exactly like you, I watched the video 5 times 😅😅 I also have an error in "$response->redirect" with the same message: undefined method redirect, its a bit strange

  • @arqamali1042
    @arqamali10424 ай бұрын

    very helpful

  • @takneekicode

    @takneekicode

    4 ай бұрын

    Glad it helped!

  • @maapidongmo4797
    @maapidongmo4797 Жыл бұрын

    thank Takneeki code

  • @takneekicode

    @takneekicode

    Жыл бұрын

    👍🏻

  • @amjidpathan215
    @amjidpathan2152 жыл бұрын

    Good

  • @ZainHassan512
    @ZainHassan512 Жыл бұрын

    i am facing same issue while using this code. "Authentication failed due to invalid authentication credentials or a missing Authorization header.". Can you please help me in this. I searched this alot but cant find any solution. Thanks

  • @cjbrazil4301

    @cjbrazil4301

    Жыл бұрын

    Have you resolved this issue? I am also getting this error..

  • @jamesadeyemo2516

    @jamesadeyemo2516

    Жыл бұрын

    Hello Zain, Have you resolve this issue? Because im also facing this for the past few days now.

  • @jamesadeyemo2516

    @jamesadeyemo2516

    Жыл бұрын

    @@cjbrazil4301 Hello Cj, Have you resolve this issue? Because im also facing this for the past few days now.

  • @ZainHassan512

    @ZainHassan512

    Жыл бұрын

    @@jamesadeyemo2516 yes i've solved this issue

  • @jamesadeyemo2516

    @jamesadeyemo2516

    Жыл бұрын

    @@ZainHassan512 Please can you give me a guide? help me with the solution, i have been on it since 4days. I will so much appreciate it Zain