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
I just need this explanation, very good man.
just wow its working thank you so much , much respect
@takneekicode
5 ай бұрын
👍🏻
Very Smooth bro 👍👍👍
@takneekicode
3 ай бұрын
Thanks for the visit
Great man, you really help me out ✅
Great Work!
Great man, you really help me
Very Help ful brother
Very good man, I could not find the package now I found
Hello, great tutorial! Appreciated for the effort..
@takneekicode
10 ай бұрын
Glad it was helpful!
Well done sir
Thank you. It was really usefull.
Great work. Thank you, you have been very helpful to me
@takneekicode
Жыл бұрын
Glad to hear ❤️
@priyaverma4297
Жыл бұрын
Hiiii , I got error Call to a member function purchase() on null Anyone help me for PayPal payment gateway integration ?????
Great explanation sir. recommended 🥰😍
@takneekicode
Ай бұрын
thanks
thanks you so much man
@takneekicode
Ай бұрын
thanks 😊
Thank you for your good work.
@takneekicode
Жыл бұрын
I am glad I can help.
@hazinaprosper443
Жыл бұрын
@@takneekicode what about integrating visa card and mastercard?. please do it.
@takneekicode
Жыл бұрын
Well you can use the same omnipay package for this. I suggest you to read docs of omnipay. 👍🏻
@hazinaprosper443
Жыл бұрын
@@takneekicode i will
Thank you so much
@takneekicode
4 ай бұрын
👍🏻
very thanks man, love you ❤
Very useful! Thanks for sharing.
@takneekicode
Жыл бұрын
❤
Good
Cool
Very helpful but what about live server???
Thanks bro.
@takneekicode
2 жыл бұрын
I am glad that I am helpful.
Thank you
@takneekicode
2 жыл бұрын
Glad I can help you
thanks a lot
@takneekicode
9 ай бұрын
Happy to help
How can I Insert dynamic value Like: user_name, user_email ETC ??
thx u sir
@takneekicode
Жыл бұрын
Most welcome
That's what I want 👍🏻
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.
Ipn or webhooks are missing, anyways good one.
Great! Now, how can we send custom fields i.e orderId or userID?
@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.
Great, you have explain every step. Save my ass
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?
Hiii guys Anyone help me M facing some errors regarding of payment ???????
Is there any problem when I use Omnipay for live app?
Where does the payment_id and payer_id come from in success function of PaymentController ?
@takneekicode
Жыл бұрын
From payal
thanks bro. Btw in which account payment will be recieved?
@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.
weldone
@takneekicode
2 жыл бұрын
Thanks Mahmood
@mahmoodali7522
2 жыл бұрын
Can u share contact info?
Hey man, can you please make a video on how to integrate PesaPal in laravel, thank you
@takneekicode
Жыл бұрын
Hello sir! I didn't work on PesaPal but I will try
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
Жыл бұрын
Hello Deepak, have you found the solution? if yes, please can you share with me?? Thanks in Advance
hi can i ask i get errors with omnipay in the controller can u give me any ideas?
@takneekicode
Жыл бұрын
What errors?
@raulhernandez7528
Жыл бұрын
@@takneekicode working now thank u i subscribed to u! 😃😃😃😃
@takneekicode
Жыл бұрын
Great and thanks
How can i add debit / credit card form
@takneekicode
2 жыл бұрын
It will add automatically with Paypal
please make video on laravel weather app
@takneekicode
Жыл бұрын
Sure
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
Жыл бұрын
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
Жыл бұрын
@@takneekicode okay, i'll share my code with you
Sir, how to view our balance in PayPal?
@takneekicode
10 ай бұрын
From dashboard
how i can check status of the payment sir ??
@takneekicode
2 жыл бұрын
You can save the data into the transactions table and a column payment_status.
Do you freelance for larave works?
@takneekicode
Жыл бұрын
Yes, I do
how to run command line to install omnipay
@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
Жыл бұрын
@@takneekicode I am applying this on my share hosting server, I have tried your given command on route file but failed.
@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.
can you please provide controller file!!😐
@takneekicode
2 жыл бұрын
I will share
@asimadnan1316
2 жыл бұрын
@@takneekicode i have a problem. The success function is not working . 404 | Not Found error occured.
@asimadnan1316
2 жыл бұрын
@@takneekicode where is the link where you shared that file?
@asimadnan1316
2 жыл бұрын
@@takneekicode share your controller code or file. It may be helpful for me.
@andersodgaard6699
2 жыл бұрын
chill asim
when i put live keys it throws an error authentication failed
@takneekicode
Жыл бұрын
Check your credentials or permissions. There should be something missing or wrong.
bro i got an error in setClientId(...), setSecret and setTesMode, it says undefined method any idea?
@takneekicode
Жыл бұрын
Hello Ricardo! Did you add all the functions to the controller? Or follow all the steps?
@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
very helpful
@takneekicode
4 ай бұрын
Glad it helped!
thank Takneeki code
@takneekicode
Жыл бұрын
👍🏻
Good
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
Жыл бұрын
Have you resolved this issue? I am also getting this error..
@jamesadeyemo2516
Жыл бұрын
Hello Zain, Have you resolve this issue? Because im also facing this for the past few days now.
@jamesadeyemo2516
Жыл бұрын
@@cjbrazil4301 Hello Cj, Have you resolve this issue? Because im also facing this for the past few days now.
@ZainHassan512
Жыл бұрын
@@jamesadeyemo2516 yes i've solved this issue
@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