No video

PHP, MySQL & Stripe API Payment App - Part 1

  Рет қаралды 223,720

Traversy Media

Traversy Media

Күн бұрын

Пікірлер: 248
@prayk11
@prayk11 5 жыл бұрын
Why did I take so much time to find this channel? Seriously, I'm learning lots with your videos. Thank you!
@AhmedBalfaqih
@AhmedBalfaqih 6 жыл бұрын
I am honored to let you know that I have become one of your patreon as long as I can afford. Thank you for helping the community.
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Thanks Ahmed, I appreciate that
@JonathanZaccaria
@JonathanZaccaria 4 жыл бұрын
Hi, I really appreciate your clear explanation of the entire process. From the very beginning (a blank page) to the very end (getting back the data from the stripe server). I followed all of your steps without being a developer and I could realize everything. It helps me a lot ! Thanks a lot for that ! You are very clear and comprehensible. The only thing I changed from my side, instead of using composer to install the library on my server, was to use the latest php library from stripe here : github.com/stripe/stripe-php/releases. All what you need is the init.php file and the lib folder. Then I included the init.php file in the charge page instead of the autoload.php. (I saw that trick in another tutorial) Once again thank you very much. You are an excellent teacher.
@sakazuki8031
@sakazuki8031 2 жыл бұрын
hi may I have the link refer back to the trick in another tutorial?
@barneman3213
@barneman3213 6 жыл бұрын
Man I love traversy media...man i am learning so much from this dude....I am buying all his courses this payday.....
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Thanks brother, appreciate anything...courses, watching free videos, likes, shares, I am grateful for all of it
@barneman3213
@barneman3213 6 жыл бұрын
Mr Brad, I want to integrate php with python..is it doable? if sometime in the future could you do a quick video on it....with the @app.route('/') function...could i just do this python below @app.route('/') def index(): return render_template("index.php") Just want to get a second opinion on it...Thanks
@devilmanscott
@devilmanscott 6 жыл бұрын
Nah, the template engine won't allow it, but you could send it like a static file - return send_from_directory(app.static_folder, request.path[1:]) But you could also use a JSON response and let PHP just for call it, but I don't get why you'd want to have two back end servers butting heads, there's no real use case for such, the only thing I can think of is proxying to each other, but that doesn't involve using PHP as a view layer as you're trying to do.
@barneman3213
@barneman3213 6 жыл бұрын
man that sucks..i am so used to using php...LOL...it would be sooooo easy....especially i am working with heroku....it basically used python and flask..among other things..thanks though....
@MarcoAZeballosS
@MarcoAZeballosS 6 жыл бұрын
Man, you are amazing, every time I search for some interesting/important stuff I need to learn, one of your great videos appear to save my day, Thank you very much!
@4seth
@4seth 6 жыл бұрын
For those of you unfamiliar with command line: Take note that at 23:46 he installs stripe INSIDE of the of the xammp/htdocs/paypage folder. You can’t just open up terminal and copy his commands. You have to go that file from inside of terminal. You will have to learn basic unix commands. If you are on a mac: ie cd /Applications/XAMPP/htdocs/et cetera
@taospencer1403
@taospencer1403 5 жыл бұрын
What about if your not on localhost and on shared server with a web hosting company? he didn't mention anything about this?
@jarodmorris611
@jarodmorris611 5 жыл бұрын
@@taospencer1403 - Shared hosting accounts rarely have command line access. Good luck.
@taospencer1403
@taospencer1403 5 жыл бұрын
@@jarodmorris611 How would you use stripe without installing these then. Do you know any reference?
@jarodmorris611
@jarodmorris611 5 жыл бұрын
@@taospencer1403 - sorry, I don't know.
@marwanak10
@marwanak10 6 жыл бұрын
Thank you very much Brad. For anyone having problems with PHP converting double values to integers use substr($var,0,8) to format the number to the needed count, in this case 8, then str_replace(".","", $var) to get rid of the decimal point "." this way it will get accepted by stripe as a valid integer amount.
@Driftingdane
@Driftingdane 6 жыл бұрын
Hi, Brad! I appreciate your effort. I spent the last 8-10 years developing OneManCms, which is purely mysql PDO - functions and old school PHP. All that was missing was the payment gateway. 10 years ago this was a pain in the ... but you certainly made it easy. Thanks! I am currently following your MVC course in hopes of making one last update to this baby project.
@thatsenam9183
@thatsenam9183 6 жыл бұрын
You are really helpful guy.
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Thanks :)
@thatsenam9183
@thatsenam9183 6 жыл бұрын
Welcome Dear!!!
@NathanBudd
@NathanBudd 6 жыл бұрын
This is timely! On your KZfaq poll I suggested more API content. Having just watched your Git & Github tutorial, it would be useful if you did a large project like this and also used version control. Just so people like me could get an idea of how often you add files, commit, push etc, and perhaps pull down onto another machine? Currently working through your Laravel Projects Udemy course, but once that's complete, I'll be following this one. Keep up the great work!
@JasonPurkiss
@JasonPurkiss 4 жыл бұрын
This was a great video but stripe have now updated there code, any change of you making video number 4 to include the updates :) include the new Strong Customer Authentication (SCA) that stripe has updated all there php with?
@imranhadid8082
@imranhadid8082 5 жыл бұрын
I have looked for all the comments. Hoping that someone will notice but unfortunately, no one noticed or facing this error. In 28:48 you put $5000 as payment amount and when you make the request 31:00 you receive $50. I solved it by adding two zero after the price in my eCommerce project. Thanks, Brad
@lrunge
@lrunge 5 жыл бұрын
Its not an error, check the stripe docs: Zero-decimal currencies All API requests expect amounts to be provided in a currency’s smallest unit. For example, to charge $10 USD, provide an amount value of 1000 (i.e, 1000 cents). Its the way that stripe world for some currencies stripe.com/docs/currencies#zero-decimal
@imranhadid8082
@imranhadid8082 5 жыл бұрын
Thanks @@lrunge. I already manage to fix it by add to 00 at the end.
@Danny-lf4ny
@Danny-lf4ny 5 жыл бұрын
It's refreshing to see some development tutorials that teach us practical and real world skills, you're awesome dude!
@ilyosjon_uz
@ilyosjon_uz 6 жыл бұрын
You always teach what people needed. You know your audience's needs. You are awesome! Thanks.
@arminharper510
@arminharper510 4 жыл бұрын
as of right now the only jobs available for freelancers are e-commerce websites and being able to charge customers in a secure way is 90% of the job, it was surprisingly easy to do using stripe, thanks for the tut xD
@tomeksimba5687
@tomeksimba5687 6 жыл бұрын
Finally something with PHP :D Thank you Brad !
@lkkrv00rm3
@lkkrv00rm3 3 жыл бұрын
Do you wear a cape in real life? Cause your my Hero... been looking litteraly 2 full days for this and now it works like a bus!
@therealmobe9869
@therealmobe9869 6 жыл бұрын
Thank you for this amazing video series! Just started with stripe, but with this tutorial everything worked so fast surprisingly well! Keep on creating such helpful and amazing content (y)
@codercasts6846
@codercasts6846 3 жыл бұрын
This has helped me with one of my first ecommerce sites. Top man Brad 👍
@danishmanzoor795
@danishmanzoor795 4 жыл бұрын
Sir please make a video on the SCA stripe payment integration.
@connerallen642
@connerallen642 4 жыл бұрын
finally somebody who is actually doing this is code and not just a wordpress plugin. lol
@tunnelboy777
@tunnelboy777 3 жыл бұрын
Love your PHP videos! You're like the only one with a good mic and not a thick accent. I would guess at 33:12, you would redirect only to a success page after you've checked whether Stripe ok'd it. They could still deny it and it would go to the success page. if ($charge->status == "succeeded") redirect?
@papaOhmTV
@papaOhmTV 6 жыл бұрын
Brad you are the best! I always get the best answer from your tutorial videos... Thanks a LOT!!!
@siriusgd4753
@siriusgd4753 5 жыл бұрын
This is really cool. Best video I've found so far explaining this. Is there a video addressing recurring payments? I have to make that extra step.
@wassim5622
@wassim5622 5 жыл бұрын
Hey Brad ! really great video, se if i had multiple products in the user cart do i have to loop throught the charge method or just create a variable that holds the total amount of the cart ?
@Vichion
@Vichion 2 жыл бұрын
"Button is not in the html" -> *Button is literally in the html* -> *proceeds to use JavaScript to add a class* Love it, some humor in a tutorial is always good 😂
@AdrianSotoKraack
@AdrianSotoKraack 5 жыл бұрын
Hi, I see it very helpful but unfortunately, when I go to the documentation from stripe it says it is not updated for Europe. Do you think you will do more videos like this? I would be very interested in processing a single time payment for a real-life course/workshop where the customer could choose the date he/she wants to participate. Thanks :D
@Translationcloud
@Translationcloud 6 жыл бұрын
Thanks a lot! As of time of this writing, the lineHeight had been removed from the Stripe's example. Times go by quickly!
@haseebquadri5461
@haseebquadri5461 5 жыл бұрын
Hey Brad, I am getting a syntax error on \Stripe\Stripe::setApiKey line. the error is Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in C:\xampp\htdocs\paypage\charge.php on line 5 I am using Sublime Text Editor . What do i need to do? Please help!
@coder236
@coder236 4 жыл бұрын
can you do a new one on stripe :) maybe stripe and laravel integration would be awesome lol, keep up the good work though love the channel.
@mulletman1705
@mulletman1705 4 жыл бұрын
I don't agree with asking the user to type in the name on strip payment page. As stripe does not require this name to process payment using the old legacy payment method in this video, stripe will not validate that it matches the name on the credit card. So if someone types in a false name the payment will still process successfully. People will then think you're website is insecure as you are processing credit card payments will false names.
@donovan8031
@donovan8031 6 жыл бұрын
Thank you! I’ve always wanted to make something like this with PHP! You rock Brad!👍
@jorgetoro7048
@jorgetoro7048 3 жыл бұрын
Excellent video. You have helped me again advance my project. Thank you
@justeelvain7137
@justeelvain7137 6 жыл бұрын
I am working on a project and i was stuck on the payment system,now I say Thank you so much for this! I am from Burundi and stripe isn't available in our country, can u suggest me which payment gateway can I use?By the way learning this was so helpful for thank you again Brad!
@LetTheWritersWrite
@LetTheWritersWrite 5 жыл бұрын
Try PayPal
@drcod3r329
@drcod3r329 5 жыл бұрын
thats why i love php because of Brad of course
@taospencer1403
@taospencer1403 5 жыл бұрын
Does the Stripe Api include its own version of CSP, i'm getting an error when trying to include charge.js? not sure how to get round this?
@manoelmessias1787
@manoelmessias1787 2 жыл бұрын
Very good! Do you have the new video about how can we do this today? Stripe updated the api and I couldn't do it the way you taught in this video. Thanks a lot.
@vinaytomar5827
@vinaytomar5827 6 жыл бұрын
Thanks allot!!! waiting for this one 😍
@BachPhotography
@BachPhotography 5 жыл бұрын
Very good video, clean and concise.
@MajorTom8461
@MajorTom8461 5 жыл бұрын
Man, I love your videos! You do such good work, Thank you!
@mstafadev6729
@mstafadev6729 6 жыл бұрын
Thank you, you are satisfaying every one's technologie
@TechReagan
@TechReagan 6 жыл бұрын
Thanks man, I always love it when you teach PHP. You very good with it. Teach PHP some more.
@prsion1925
@prsion1925 6 жыл бұрын
It goes without saying Thanks for your great job.
@SteveSmith-jc7pc
@SteveSmith-jc7pc 3 жыл бұрын
It looks like this may be out of date. When I check the stripe website URL that Brad refers to I see: "Accept online payments from U.S. and Canadian customers. The Charges API is an older payments API that doesn’t handle bank requests for card authentication. Try our new payments APIs and integrations instead." I don't know but am guessing that European Banks have some new rules. The new stripe API integration seems to use webhooks to send your PHP-webserver details of the successful charge. The stripe website is quite good with code examples etc. (What I'm unsure about is what data, I need to extract from the file they send to the webhook - It's a JSON file with over 100 key-value pairs.)
@izukauche7835
@izukauche7835 5 жыл бұрын
Helpful video... I need help in getting values for a single row using its ID, please kindly respond.
@kvelez
@kvelez Ай бұрын
PHP/MariaDB API Should be a great update + PHP Course. **Laravel also needs an update. (Laravel APIs would be great too)
@JoseGarcia-vr8mx
@JoseGarcia-vr8mx 6 жыл бұрын
AWESOME tutorial! Very simple and to the point, thank you!
@stefan4800
@stefan4800 6 жыл бұрын
Brad, you are the legend!
@faizurrahuman3930
@faizurrahuman3930 6 жыл бұрын
I know basics of PHP and mysql .Can i follow this series?
@jamesr2408
@jamesr2408 Жыл бұрын
5 Years old. Is it any good today? Hard to find a comprehensive, up-to-date php-stripe course.
@hhhrrruuulll
@hhhrrruuulll 3 жыл бұрын
Hello.. Can you tell me how can i show the last4 card number on success.php? thanks.
@sparkfire1223
@sparkfire1223 5 жыл бұрын
Did something break with the latest bootstrap and but button thats modified with js? I cloned the repo and even that doesnt have the same look as whats shown in the video.
@jerrickhakim4355
@jerrickhakim4355 5 жыл бұрын
The famous 4242 as fast as you can key stroke. Thanks for the info.
@TAHJBecomeYourBestSelf
@TAHJBecomeYourBestSelf 4 жыл бұрын
So how did you send an email to them after????
@aimadhadiri3563
@aimadhadiri3563 6 жыл бұрын
i was waiting for this, thank's man i appreciate that
@rajnishpatel580
@rajnishpatel580 6 жыл бұрын
Awesome sir very awesome teaching style.Very interesting.Waoo!!!!
@i.zanoth
@i.zanoth 4 жыл бұрын
I thank you. Idk wheter the Stripe team update it up or was on purpose but you can find the elements out in stripe.com/docs/stripe-js instead...
@michaelblaze3302
@michaelblaze3302 5 жыл бұрын
I am a very big fan of yours .... Sir brad ... Just wanna say thank you for this free courses but I felt like giving back to you .... How do I support this channel?
@webpro3493
@webpro3493 6 жыл бұрын
Thank u very much brad traversy, i will u post about angularfire, crud image(storage, auth, dll)
@its-anuga
@its-anuga 6 жыл бұрын
Hmm the button is right there... in the html, no need for the js added for the button.
@gandagurl2020
@gandagurl2020 5 жыл бұрын
very helpful! Thank you! can you also show refunds and chargebacks on the dashboard?
@philjones2839
@philjones2839 3 ай бұрын
Is there an up to date set of code or video for doing these payments - this video was great but now out of date.
@ricardochitagu6280
@ricardochitagu6280 6 жыл бұрын
hi brad...can you please make a video on how to build a VLOG like the blog you built in the laravel from scratch video
@houba1263
@houba1263 2 жыл бұрын
Hi can you please help im creating a landing page for my product and i want users to pay monthly or yearly so the problem here is let s say the monthly subscription expired what i have to do to deny the user from using it unless he pays again .. can u please help me
@irvintl
@irvintl 6 жыл бұрын
I don't know why my charge is not going through. It shows up on my logs but not of my processed payments. Could you guide me ?
@tihoho
@tihoho 2 жыл бұрын
38:10 hey. u have err on line 2. close second ")" in first "empty"
@maxeminem777
@maxeminem777 6 жыл бұрын
What would be a good way to protect Stripe token and secret API key if we want to implement version control? If we upload files to GitHub, key and token would also get pushed to the repo.
@gowthams8340
@gowthams8340 6 жыл бұрын
Amazing !! Please make more PHP real time projects
@truecodemedia5099
@truecodemedia5099 6 жыл бұрын
Great tutorial Mr.Brad . Thank you.
@codeofethics1
@codeofethics1 2 ай бұрын
thank you so so so so much..❤ May Allah give you hidayah
@sanghiang7
@sanghiang7 4 жыл бұрын
Amazing Tutuorial Sir, E-Wallet Totorial too Sir PLS.. :) Thanks
@Babak_Ahari
@Babak_Ahari 4 жыл бұрын
when you put on the web and in test mode everything was ok then change it to real and change security code also but I get success white page and error number 403 in stripe how can solve it?
@arnantaroy7468
@arnantaroy7468 3 жыл бұрын
Hi, for some reason it says " the site can't be loaded' how do I run this program, you haven't showed that
@jampiuatila6301
@jampiuatila6301 4 жыл бұрын
Hey guyz I just want to ask about making the paypage responsive. After I was done I realized that the MM/YY and some parts where overlapping the four digit credit card hence the user could barely see what they are typing in(CVC). Could someone please help me with this?
@tehseenullah215
@tehseenullah215 3 жыл бұрын
hello sir, i have placed my api key but gettting 'invalid api key' error
@chineduogelekaBigNick
@chineduogelekaBigNick 4 жыл бұрын
Good day please how do you make ebook download after successfully payment
@SogMosee
@SogMosee 6 жыл бұрын
Great video! Just would have been cool if you did express/mongodb version too
@ShayneTaylor
@ShayneTaylor 4 жыл бұрын
In the beginning of the video, you mentioned you had another video about using Stripes pre-made form. Do you have that link? I couldn't find it in your channel.
@sparkfire1223
@sparkfire1223 5 жыл бұрын
In case anyone get an error about 'the requested php extension curl is missing... Add extension=php_curl.dll if your own windows
@ShannonWhitty
@ShannonWhitty 3 жыл бұрын
Is this video still compatible with the new PaymentIntent object stripe now uses? Is it just like for like with Stripe\Charge
@wintereh4818
@wintereh4818 6 жыл бұрын
Thank you Brad it's like you are psychic!
@UpEthio
@UpEthio Жыл бұрын
Hello, i got error Invalid API Key provided: pk_YOURP*********EKEY but the public key and secret key is correct even i check if there a space pls give me solution
@shirishachhetri3315
@shirishachhetri3315 3 жыл бұрын
Thank you so much. It was really helpful.
@beastieboy96
@beastieboy96 3 жыл бұрын
What if i want users to be able to pay a custom amount each time?
@gabrielrodinrumajar8460
@gabrielrodinrumajar8460 6 жыл бұрын
How to fix this error?? Pls help Fatal error: Cannot use 'Object' as class name as it is reserved in C:\xampp\htdocs\ecommerce\vendor\stripe\stripe-php\lib\Object.php on line 8
@reighlee6651
@reighlee6651 5 жыл бұрын
i have a question though , is it advisable to create a customer everytime a transaction is created? would it be better to pass your customer id instead of creating a new snipe customer everytime? let me know thanks.
@Hafiz9188
@Hafiz9188 5 жыл бұрын
it very helpful to me but i have a question. is there any way or method in this github repo to get status of subscription ? if yes then kindly help me. i will be very thankful to you.
@victoriouscyber1532
@victoriouscyber1532 2 жыл бұрын
Hello. I have a request to make and am gonna try to request it on every video I watch on your channel till you help out😂. So I started a reseller hosting business and for some reason I can't manage to pay for WHMCS monthly. I have done my research and realized that Box Billing is the best free alternative for WHMCS. However I haven't managed to intergrate their code into my website without necessarily having my client to log in a boxbilling account, plus I haven't been able to automate the creation, suspension of accounts and emailing clients. Please make a video on that. Assume at your own risk😂😂. Thank you in advance
@TheOriginalTristonEvo
@TheOriginalTristonEvo 5 жыл бұрын
hey so this really does charge your account the proper way with the bank knowing?????
@rmz261
@rmz261 3 жыл бұрын
Hey Brad if I wanted to use a different API could I do so with this same setup of PHP and MySQL then just put in the API for say Venmo or something like that
@konteee
@konteee 4 жыл бұрын
i tried to make this form responsive, for mobile, and the credit-card input doesnt work. the placeholder floats above all the other fields.
@konteee
@konteee 4 жыл бұрын
found the problem! it seems the card-holder uses an "" somewhere, and because I had a -styling on my css it unintentionally changed the stripe-element.
@XTUBER010
@XTUBER010 4 жыл бұрын
Hi, is it okay to not use Classes and Objects for php database connections and mysqli stuff? I know 'straightforward' programming, not too easy with using objects and classes? thank you!
@snipe3045
@snipe3045 6 жыл бұрын
hey Brad will you ever do something with fusetools? by the way thanks for the great tutorials you give us
@praveenpushkar6744
@praveenpushkar6744 6 жыл бұрын
Boss you are the best.Really you are the best
@programmerako
@programmerako 2 жыл бұрын
so is it secured so we can save the credit card?
@mojar2680
@mojar2680 6 жыл бұрын
For the people who have never used a composer before, i recommend you download the latest release -- github.com/stripe/stripe-php/releases -- And then to just require the local files. with require_once('/path/to/stripe-php/init.php');
@augustomarcelo
@augustomarcelo 6 жыл бұрын
Do you have a course or class that uses notifications in a way that we do not have to keep making javascript requests constant to the database?
@williamcampospc123
@williamcampospc123 4 жыл бұрын
Hi traversy Media, thaks for this awesome video. I have a question, what if I wanted to set up Custom Accounts for each costumer that sign up into my web store? Is it possible? do you teach how to do this in your videos?
@patriciamaria1034
@patriciamaria1034 4 жыл бұрын
hi. How to open intergrated terminal in Dreamweaver
@theflashglobal4355
@theflashglobal4355 6 жыл бұрын
Hey Brad, I am building an eCommerce site on CodeIgniter Framework and wondering which payment gateway should I use for payment. Please Help anyone who can...
PHP, MySQL & Stripe API Payment App - Part 2
26:57
Traversy Media
Рет қаралды 41 М.
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 37 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 221 М.
Build better payment forms using new “embedded” Stripe Checkout
6:04
How To Accept Payments With Stripe
23:05
Web Dev Simplified
Рет қаралды 272 М.
Are we going back to PHP with fullstack JavaScript?
9:57
Maximilian Schwarzmüller
Рет қаралды 136 М.
Stripe Complete Checkout Process in Laravel
1:03:36
The Codeholic
Рет қаралды 50 М.
JSON Crash Course
24:49
Traversy Media
Рет қаралды 1 МЛН
Implement Stripe with PHP | Step by Step Guide
27:57
BeyondBasics with Rakesh
Рет қаралды 331
Accept a payment with the Payment Element using PHP
22:02
Stripe Developers
Рет қаралды 12 М.