Why did I take so much time to find this channel? Seriously, I'm learning lots with your videos. Thank you!
@AhmedBalfaqih6 жыл бұрын
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.
@TraversyMedia6 жыл бұрын
Thanks Ahmed, I appreciate that
@JonathanZaccaria4 жыл бұрын
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.
@sakazuki80312 жыл бұрын
hi may I have the link refer back to the trick in another tutorial?
@barneman32136 жыл бұрын
Man I love traversy media...man i am learning so much from this dude....I am buying all his courses this payday.....
@TraversyMedia6 жыл бұрын
Thanks brother, appreciate anything...courses, watching free videos, likes, shares, I am grateful for all of it
@barneman32136 жыл бұрын
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
@devilmanscott6 жыл бұрын
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.
@barneman32136 жыл бұрын
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....
@MarcoAZeballosS6 жыл бұрын
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!
@4seth6 жыл бұрын
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
@taospencer14035 жыл бұрын
What about if your not on localhost and on shared server with a web hosting company? he didn't mention anything about this?
@jarodmorris6115 жыл бұрын
@@taospencer1403 - Shared hosting accounts rarely have command line access. Good luck.
@taospencer14035 жыл бұрын
@@jarodmorris611 How would you use stripe without installing these then. Do you know any reference?
@jarodmorris6115 жыл бұрын
@@taospencer1403 - sorry, I don't know.
@marwanak106 жыл бұрын
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.
@Driftingdane6 жыл бұрын
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.
@thatsenam91836 жыл бұрын
You are really helpful guy.
@TraversyMedia6 жыл бұрын
Thanks :)
@thatsenam91836 жыл бұрын
Welcome Dear!!!
@NathanBudd6 жыл бұрын
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!
@JasonPurkiss4 жыл бұрын
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?
@imranhadid80825 жыл бұрын
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
@lrunge5 жыл бұрын
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
@imranhadid80825 жыл бұрын
Thanks @@lrunge. I already manage to fix it by add to 00 at the end.
@Danny-lf4ny5 жыл бұрын
It's refreshing to see some development tutorials that teach us practical and real world skills, you're awesome dude!
@ilyosjon_uz6 жыл бұрын
You always teach what people needed. You know your audience's needs. You are awesome! Thanks.
@arminharper5104 жыл бұрын
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
@tomeksimba56876 жыл бұрын
Finally something with PHP :D Thank you Brad !
@lkkrv00rm33 жыл бұрын
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!
@therealmobe98696 жыл бұрын
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)
@codercasts68463 жыл бұрын
This has helped me with one of my first ecommerce sites. Top man Brad 👍
@danishmanzoor7954 жыл бұрын
Sir please make a video on the SCA stripe payment integration.
@connerallen6424 жыл бұрын
finally somebody who is actually doing this is code and not just a wordpress plugin. lol
@tunnelboy7773 жыл бұрын
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?
@papaOhmTV6 жыл бұрын
Brad you are the best! I always get the best answer from your tutorial videos... Thanks a LOT!!!
@siriusgd47535 жыл бұрын
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.
@wassim56225 жыл бұрын
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 ?
@Vichion2 жыл бұрын
"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 😂
@AdrianSotoKraack5 жыл бұрын
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
@Translationcloud6 жыл бұрын
Thanks a lot! As of time of this writing, the lineHeight had been removed from the Stripe's example. Times go by quickly!
@haseebquadri54615 жыл бұрын
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!
@coder2364 жыл бұрын
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.
@mulletman17054 жыл бұрын
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.
@donovan80316 жыл бұрын
Thank you! I’ve always wanted to make something like this with PHP! You rock Brad!👍
@jorgetoro70483 жыл бұрын
Excellent video. You have helped me again advance my project. Thank you
@justeelvain71376 жыл бұрын
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!
@LetTheWritersWrite5 жыл бұрын
Try PayPal
@drcod3r3295 жыл бұрын
thats why i love php because of Brad of course
@taospencer14035 жыл бұрын
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?
@manoelmessias17872 жыл бұрын
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.
@vinaytomar58276 жыл бұрын
Thanks allot!!! waiting for this one 😍
@BachPhotography5 жыл бұрын
Very good video, clean and concise.
@MajorTom84615 жыл бұрын
Man, I love your videos! You do such good work, Thank you!
@mstafadev67296 жыл бұрын
Thank you, you are satisfaying every one's technologie
@TechReagan6 жыл бұрын
Thanks man, I always love it when you teach PHP. You very good with it. Teach PHP some more.
@prsion19256 жыл бұрын
It goes without saying Thanks for your great job.
@SteveSmith-jc7pc3 жыл бұрын
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.)
@izukauche78355 жыл бұрын
Helpful video... I need help in getting values for a single row using its ID, please kindly respond.
@kvelezАй бұрын
PHP/MariaDB API Should be a great update + PHP Course. **Laravel also needs an update. (Laravel APIs would be great too)
@JoseGarcia-vr8mx6 жыл бұрын
AWESOME tutorial! Very simple and to the point, thank you!
@stefan48006 жыл бұрын
Brad, you are the legend!
@faizurrahuman39306 жыл бұрын
I know basics of PHP and mysql .Can i follow this series?
@jamesr2408 Жыл бұрын
5 Years old. Is it any good today? Hard to find a comprehensive, up-to-date php-stripe course.
@hhhrrruuulll3 жыл бұрын
Hello.. Can you tell me how can i show the last4 card number on success.php? thanks.
@sparkfire12235 жыл бұрын
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.
@jerrickhakim43555 жыл бұрын
The famous 4242 as fast as you can key stroke. Thanks for the info.
@TAHJBecomeYourBestSelf4 жыл бұрын
So how did you send an email to them after????
@aimadhadiri35636 жыл бұрын
i was waiting for this, thank's man i appreciate that
@rajnishpatel5806 жыл бұрын
Awesome sir very awesome teaching style.Very interesting.Waoo!!!!
@i.zanoth4 жыл бұрын
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...
@michaelblaze33025 жыл бұрын
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?
@webpro34936 жыл бұрын
Thank u very much brad traversy, i will u post about angularfire, crud image(storage, auth, dll)
@its-anuga6 жыл бұрын
Hmm the button is right there... in the html, no need for the js added for the button.
@gandagurl20205 жыл бұрын
very helpful! Thank you! can you also show refunds and chargebacks on the dashboard?
@philjones28393 ай бұрын
Is there an up to date set of code or video for doing these payments - this video was great but now out of date.
@ricardochitagu62806 жыл бұрын
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
@houba12632 жыл бұрын
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
@irvintl6 жыл бұрын
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 ?
@tihoho2 жыл бұрын
38:10 hey. u have err on line 2. close second ")" in first "empty"
@maxeminem7776 жыл бұрын
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.
@gowthams83406 жыл бұрын
Amazing !! Please make more PHP real time projects
@truecodemedia50996 жыл бұрын
Great tutorial Mr.Brad . Thank you.
@codeofethics12 ай бұрын
thank you so so so so much..❤ May Allah give you hidayah
@sanghiang74 жыл бұрын
Amazing Tutuorial Sir, E-Wallet Totorial too Sir PLS.. :) Thanks
@Babak_Ahari4 жыл бұрын
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?
@arnantaroy74683 жыл бұрын
Hi, for some reason it says " the site can't be loaded' how do I run this program, you haven't showed that
@jampiuatila63014 жыл бұрын
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?
@tehseenullah2153 жыл бұрын
hello sir, i have placed my api key but gettting 'invalid api key' error
@chineduogelekaBigNick4 жыл бұрын
Good day please how do you make ebook download after successfully payment
@SogMosee6 жыл бұрын
Great video! Just would have been cool if you did express/mongodb version too
@ShayneTaylor4 жыл бұрын
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.
@sparkfire12235 жыл бұрын
In case anyone get an error about 'the requested php extension curl is missing... Add extension=php_curl.dll if your own windows
@ShannonWhitty3 жыл бұрын
Is this video still compatible with the new PaymentIntent object stripe now uses? Is it just like for like with Stripe\Charge
@wintereh48186 жыл бұрын
Thank you Brad it's like you are psychic!
@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
@shirishachhetri33153 жыл бұрын
Thank you so much. It was really helpful.
@beastieboy963 жыл бұрын
What if i want users to be able to pay a custom amount each time?
@gabrielrodinrumajar84606 жыл бұрын
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
@reighlee66515 жыл бұрын
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.
@Hafiz91885 жыл бұрын
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.
@victoriouscyber15322 жыл бұрын
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
@TheOriginalTristonEvo5 жыл бұрын
hey so this really does charge your account the proper way with the bank knowing?????
@rmz2613 жыл бұрын
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
@konteee4 жыл бұрын
i tried to make this form responsive, for mobile, and the credit-card input doesnt work. the placeholder floats above all the other fields.
@konteee4 жыл бұрын
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.
@XTUBER0104 жыл бұрын
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!
@snipe30456 жыл бұрын
hey Brad will you ever do something with fusetools? by the way thanks for the great tutorials you give us
@praveenpushkar67446 жыл бұрын
Boss you are the best.Really you are the best
@programmerako2 жыл бұрын
so is it secured so we can save the credit card?
@mojar26806 жыл бұрын
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');
@augustomarcelo6 жыл бұрын
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?
@williamcampospc1234 жыл бұрын
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?
@patriciamaria10344 жыл бұрын
hi. How to open intergrated terminal in Dreamweaver
@theflashglobal43556 жыл бұрын
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...