PayPal Integration with ReactJS - React Tutorial

  Рет қаралды 67,502

PedroTech

PedroTech

Күн бұрын

In this video, I show you guys how to integrate the PayPal online payment system into a react application. If you have any doubts, please leave a comment below.
Github Repo: github.com/mac...
Please leave a comment on what topic you guys want me to cover next!
SUBSCRIBE!
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Twitter: / machadop1407
Instagram: / _pedro.machado_
Github: github.com/mac...
Email: machadop1407@gmail.com

Пікірлер: 129
@pjguitar15
@pjguitar15 3 жыл бұрын
I was given a take home project by my employer to build an ecommerce website that will integrate Paypal as payment. I searched it on KZbin and Pedro came up. Wow. You definitely got all I need man.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hahaha thank you! Glad I was able to help!
@henriquekutner6724
@henriquekutner6724 3 жыл бұрын
Cara, vc solta conteúdo que nem curso pago tem! Seu canal está me ajudando muito muito obrigado
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Kkkkkk muito obrigado mano! Fico feliz! Estou preparando um curso pago em react pro futuro, mas meu foco é no conteúdo gratis no youtube mesmo!
@henriquekutner6724
@henriquekutner6724 3 жыл бұрын
@@PedroTechnologies Compro fácil
@ricardotsopse6836
@ricardotsopse6836 Жыл бұрын
heh bro you got your word to say in the web dev world. Whenever I'm stuck pedroTech got a solution for me. I'm still at the beginning of my journey but I believe I will make it. Thanks, Man and keep up the good work.
@networkserpent5155
@networkserpent5155 2 жыл бұрын
A fellow Canadian developer! Amazing work man!
@hoahuynh4919
@hoahuynh4919 Жыл бұрын
Thank you so much. I tried to do it, but I get the bug. The paypal button show twice when I put it to my project. Can you help me to fix it??? Thanks
@jakakrajnc7538
@jakakrajnc7538 2 жыл бұрын
I need to implement the PayPal API. I google that shit. And what do I see? My boy Pedro got me covered
@dave6012
@dave6012 3 жыл бұрын
Nice short video explaining the basic implementation. Any chance you know how to render only the basic paypal button and not the pay later or credit/debit buttons?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! If I recall you can just set their display to none using css.
@benhammourachid8144
@benhammourachid8144 3 жыл бұрын
@@PedroTechnologies .paypal-button-row.paypal-button-number-1 { display: none; }
@tiga2456
@tiga2456 3 жыл бұрын
Fantastic. You made it very easy to implement. Thannks
@morijin726
@morijin726 3 жыл бұрын
its a great video but it got error it shows "Indicate whether a cookie is intended to be set in a cross-site context by specifying its SameSite attribute"......can anyone tell how to fix it
@jonathanoakes5995
@jonathanoakes5995 4 жыл бұрын
Thank you so much Pedro that worked like a charm! Fantastic video! :)
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
I am happy I could help!
@mishadaro9759
@mishadaro9759 3 жыл бұрын
thanks! at last, I could integrate PayPal into my website
@beomsooshin5633
@beomsooshin5633 4 жыл бұрын
Thank you PedroTech. It's awesome video to me!!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Glad I could Help!
@gursahbwebcyst6030
@gursahbwebcyst6030 10 ай бұрын
You put your client ID in index.html. Is it safe? Anyone can get your client ID by inspecting the code.
@RahulSharma-ox6se
@RahulSharma-ox6se 3 жыл бұрын
I love it, man. Thanks for the video!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank u bro! I appreciate it!
@patitorodri
@patitorodri 2 жыл бұрын
Thanks, Pedro!! Awersome tutorial!
@mixedideas3351
@mixedideas3351 4 жыл бұрын
This is so fantastic , thanks man ,,,,,,, can you create another video showing How To Integrate Payfast in ReactJS.
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Your welcome! I can definitely check it out and see if I can make a video about it!
@mixedideas3351
@mixedideas3351 4 жыл бұрын
@@PedroTechnologies thanks in advance Pedro
@ngocduy2179
@ngocduy2179 Жыл бұрын
Thank you for your sharing. may I know vs theme u used in this video?
@anhxel
@anhxel 3 жыл бұрын
Hey Awesome Video! Just Subscribed! Also, could you please tell how to redirect the user to some success route on successful transaction??
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! Just posted a video on redirecting: kzbin.info/www/bejne/qpqknYamrrx8etU
@anhxel
@anhxel 3 жыл бұрын
@@PedroTechnologies BROOO You are amazing!!
@osoriodanny
@osoriodanny 3 жыл бұрын
Thank you for this video, I just subscribed!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you for subscribing! Glad you liked the video!
@kevorkyerevanian
@kevorkyerevanian 7 ай бұрын
Thank you. Very clear!
@pedrosabia6069
@pedrosabia6069 3 жыл бұрын
Thank you for the explanation!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it!
@atlferreira
@atlferreira 3 жыл бұрын
Tx for your videos. I open your git project, I install (npm install) I run the view but after I click on "checkout" button I receive this error: TypeError: Cannot read property 'Buttons' of undefined (anonymous function) src/components/PayPal.js:7 4 | const paypal = useRef(); 5 | 6 | useEffect(() => { > 7 | window.paypal | ^ 8 | .Buttons({ 9 | createOrder: (data, actions, err) => { 10 | return actions.order.create({ Then I install (npm install @paypal/react-paypal-js) but the problem still there, you know what's the prob?
@Valentina-km7qu
@Valentina-km7qu 2 жыл бұрын
I have the same problem, were you able to solve it?
@TheChickenExplorer
@TheChickenExplorer 3 жыл бұрын
thank you, really good work, I really appreciate
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it!
@luiszamoraveliz2862
@luiszamoraveliz2862 3 жыл бұрын
Thanks you so much, greetings from ecuador.
@akiij
@akiij 3 жыл бұрын
great video! However, the balance is not updating on my end for some reason on the buyer side. I logged in from the merchant and it's updated there but on the buyer side, it's not being deducted but can see the transaction being done :3 if anyone can shed some light on as to why this may be happening would really appreciate it.
@Juanlopezalurralde
@Juanlopezalurralde 3 жыл бұрын
Hi! Great tutorial. Just one question: How can you show the description property inside the modal, so the user knows not only the money it's gonna cost, but also information about items to be purchased. Do you know is it possible to show? I only could see the description information in the async promise... Again, tank you Pedro!
@kcheer18
@kcheer18 4 жыл бұрын
Great video. Definitely going to try this today.
@fungitao
@fungitao 5 ай бұрын
Since there's no server-side validation in this tutorial, can't the client just change the value they want to pay?
@lislouise2305
@lislouise2305 2 жыл бұрын
I dont have any index.html file
@akcoder974
@akcoder974 3 жыл бұрын
Nice explanation tq so much!!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Welcome 😊
@karishma999000
@karishma999000 3 жыл бұрын
This was really useful!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! This is how you do it with real paypal accounts hahaha If I were to actually use my account and make it actually work it would take me some time because I would have to get permission.
@rutvikjr8251
@rutvikjr8251 2 жыл бұрын
thanks bro, It was really helpful.
@temitopeoyewolefalua3128
@temitopeoyewolefalua3128 3 жыл бұрын
This is super great, thank you
@migesualdo
@migesualdo 3 жыл бұрын
Great! Thanks!!
@WinterSistaCh
@WinterSistaCh Жыл бұрын
But does the amount being sent to the business account? Or your original account?
@hasanradi93
@hasanradi93 2 жыл бұрын
Hello bro, it is a nice a video and I u are very good teacher. But i wanna ask u question: if i have 2 subscription on my site (persnal, and multi) - Personal: work for one month - Multi: work for one year ----------------------------------------------------------------------------------------------- and i have the database on firebase, all my users infromation + subscription information, so i wanna save the information of payment in firebase, how can i connect the payment when done to firebase, then after one month trun off the subscription (or after one year).
@mohmadail6611
@mohmadail6611 3 жыл бұрын
thanks for awesome info
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
No problem!
@shimesami
@shimesami 3 жыл бұрын
Great video! thanks
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it!
@yachujoshi
@yachujoshi 2 жыл бұрын
I'm getting an error. The transaction is successful & the seller receives the money. But there is no deduction of money in the buyer's account. I have captured the actions.order but still no changes in buyer's money. Any suggestion is appreciated.
@poorprogrammers
@poorprogrammers 2 жыл бұрын
I really appreciate you sir
@kcheer18
@kcheer18 4 жыл бұрын
Great Video! Can you cover testing this Paypal API with Cypress?
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
I don't have much experience testing with Cypress, but it is definitely something I can learn!
@kcheer18
@kcheer18 4 жыл бұрын
@@PedroTechnologies I'm just learning too. It's pretty awesome. This video saved me so much time by the way THANK YOU!
@namjotsingh
@namjotsingh 2 ай бұрын
Thank you so much bro.
@zedshockblade7157
@zedshockblade7157 3 жыл бұрын
How do i get the user id of the payee upon redirecting to success page? I’m planning to create an admin dashboard where i can keep track of them
@yazidthedev4281
@yazidthedev4281 11 ай бұрын
Hello it works very well , the problem i have 2 buttons.
@nileshzemse
@nileshzemse Жыл бұрын
Great video, can you also create a video for apypal subscription with 7 days trail...?
@GauravSingh-ln1zj
@GauravSingh-ln1zj 3 жыл бұрын
Sir I have written same code & it's working but the mode of payment is only by debit card or credit card not paypal balance,, what to do ??
@kzar123
@kzar123 3 жыл бұрын
Muito bom Pedro. Excelente conteudo, parabens pelo trabalho
@kzar123
@kzar123 3 жыл бұрын
Solta um video sobre Stripe tambem brother ;)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Obrigado, penso em fazer um sobre stripe! Vou adicionar na lista!
@Shaadwz
@Shaadwz 3 жыл бұрын
Thanks for the tutorial. It's was helpful ! But how to you send data to your PayPal Button Component ? Just to not put a fixed price, or a fixed description ?
@atlferreira
@atlferreira 3 жыл бұрын
I think that probably you can use document.getElementById method
@cryptodoomer2855
@cryptodoomer2855 2 жыл бұрын
use a valiable name inside curly brackets instead of a string
@danielrichards552
@danielrichards552 Жыл бұрын
How do we secure the client ID, I can see PayPal saying can’t see a secure payment process
@wellzbrown2758
@wellzbrown2758 4 жыл бұрын
Perfect video. What is the production version of that script tag in index.html?
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
For production you would have to create an Application with paypal, and test some transactions through their api. Then finally you would need to submit ur application to review.
@adrienbenaceur4805
@adrienbenaceur4805 2 жыл бұрын
Super Easy ! :) Thank You ! :)
@6977202865
@6977202865 3 жыл бұрын
it works!!! thats good!
@saiswaroopbedamatta7747
@saiswaroopbedamatta7747 2 жыл бұрын
hey, great video thank you, one question, i need to add multiple buttons in my web, how can i do that?
@saiswaroopbedamatta7747
@saiswaroopbedamatta7747 2 жыл бұрын
And how to add styling in paypalbtn?
@mutsamutepfa
@mutsamutepfa Ай бұрын
you're the man👍
@Bloodyk91
@Bloodyk91 3 жыл бұрын
So with this simple tutorial I can get real payments from customers?
@Shellflower1234
@Shellflower1234 4 жыл бұрын
I love your videos! You should do a basics how to code
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thank You! I am thinking of doing a few different series, this could be one.
@iagommendes
@iagommendes 2 жыл бұрын
Sensacional!! Muito obrigado por compartilhar, me ajudou muuuuito!
@aurelianspodarec2629
@aurelianspodarec2629 4 жыл бұрын
Do a Stripe credit card tutorial as well please :D I'm using WooCommerce for the back-end, so I guess iwll need to do an extra step but hopefully will manage to figure out how to go about doing this.
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
I can make a video about it! Stripe has a very good API so I can definitely explain it!
@constWardtz
@constWardtz 3 жыл бұрын
Thanks bro.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glas you liked it!
@pinpon163
@pinpon163 2 жыл бұрын
For some reason, if I put the currency in the script tag, it won't work. Everything else is great.
@8fed
@8fed 4 жыл бұрын
Looked like the pyramid of doom to me at first
@waytopeace2703
@waytopeace2703 Жыл бұрын
Can you make a video on to switch this from sandbox to live so people can send real money
@WilCODE_
@WilCODE_ 3 жыл бұрын
amazing video bro
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it
@sup_nim
@sup_nim 3 жыл бұрын
thanks for this, great stuff - could you do one with apple pay through stripe please (react/gatsby)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I never used apple pay, but I love the Stripe API so I can make a video about it!
@sup_nim
@sup_nim 3 жыл бұрын
@@PedroTechnologies me neither tbh, was hoping I’d learn from you :)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
In my startup we will eventually implement such integrations and I will end up learning. I will post a video about it!
@sup_nim
@sup_nim 3 жыл бұрын
@@PedroTechnologies look forward to it bro :)
@abusayedrakib7019
@abusayedrakib7019 3 жыл бұрын
excellent video
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@ioannisme7495
@ioannisme7495 Жыл бұрын
thank you!
@arqamshakeel4536
@arqamshakeel4536 4 жыл бұрын
can anyone tell me what would i exactly need to change if im going for real paypal account. What changes do i need to make if i have already implemented the code in the video.
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
The Paypal documentation has a simple explanation on the transition between development and production. The code would be basically the same, but you would have to work around security and link some information. You should checkout the official paypal doc with react
@robertcampos7902
@robertcampos7902 3 жыл бұрын
rifado amigo que buen tutorial
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Gracias
@vanshikawaghela3391
@vanshikawaghela3391 2 жыл бұрын
Sir how can we do paypal onboarding process in mern?
@sanjeevgupta5189
@sanjeevgupta5189 3 жыл бұрын
Can anyone tell me how can I just get rid of the Pay with credit card button or if not how to just add information from database to card popup oninit.
@PurrfectlyChaotic
@PurrfectlyChaotic 3 жыл бұрын
Capo!! Muchas gracias!!!
@srijanrai770
@srijanrai770 4 ай бұрын
How to check whom to pay.
@naveensaini1618
@naveensaini1618 3 жыл бұрын
Can you make apple pay integration with stripe? checkout
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Hey, I can make one! I love the stripe api!
@christianirwandi4449
@christianirwandi4449 4 жыл бұрын
Cool man!
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Thankss!
@nastynaa6180
@nastynaa6180 3 жыл бұрын
Good Job, lad!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@nicolasbarcelo4258
@nicolasbarcelo4258 4 жыл бұрын
Wow Pedro is there anything you dont know how to do??? Hahaha can you make a video explaining how do you learn this stuff??
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Hahahaha Thank you bro! Everything I learned has been by wanting to make something and searching how to do it. In this case, I wanted to integrate both stripe and paypal for a project and I researched how to do it! I can definitely make a video on how to always find new things to learn!
@jinyoucheng8114
@jinyoucheng8114 3 жыл бұрын
@@PedroTechnologies is Really awesome. I will wait for that video "How to always find new things to learn !"
@kamalsaxena1384
@kamalsaxena1384 4 жыл бұрын
Sir,❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ plz make express.js complete advanced tutorials. There is no at KZbin. Plz tutorials.
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
You mean like a series building an advanced Node/Express project?
@kamalsaxena1384
@kamalsaxena1384 4 жыл бұрын
Yes, in series first tuotorials and then project
@PedroTechnologies
@PedroTechnologies 4 жыл бұрын
Interesting! I am thinking of maybe making a series explaining more complex topics behind a Node/Express application. For example, how to implement design patterns / architectures like MVC and SOLID. Or making videos about how to do specific things with express, like uploading images / files, handling errors correctly, authenticating with JWT's. What do you think?
@espero_dev
@espero_dev 2 жыл бұрын
Now how do I make it give me a dm on discord or my email the name and email and the products they have paid for?
How To Accept Payments With Stripe
23:05
Web Dev Simplified
Рет қаралды 277 М.
PayPal Payments Tutorial with Django and React
47:16
Matt Freire
Рет қаралды 11 М.
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 44 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 82 МЛН
PayPal Checkout 2.0 - Monetize React, Angular, & Vue Quickly
9:02
Integrate online payment with PayPal Checkout in ReactJS
31:21
DesignCode
Рет қаралды 28 М.
Intro To The Node.js PayPal REST SDK
25:37
Traversy Media
Рет қаралды 108 М.
How To Accept Payments With PayPal
24:35
Web Dev Simplified
Рет қаралды 126 М.
How to integrate PayPal API with Node.js
51:55
manfra․io
Рет қаралды 8 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1,1 МЛН
Set Up Payments With ReactJs and Stripe.
33:17
Darwin Tech
Рет қаралды 100 М.
Calculator In ReactJS - Coding Challenge #3
31:11
PedroTech
Рет қаралды 5 М.