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.
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!
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.
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
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?
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
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
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)
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?
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!
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.
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.)
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
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.
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
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!
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');
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.
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.
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.
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?
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.
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.
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
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.
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?
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?
Dear Brad It is necessary to create a customer or can i execute the charge wihtout a customer-id? I don't want stripe to receive my customers' emails. What do you recommend.
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
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.
** QUESTION I am wanting to build a DATABASE driven Website. On my web site DATA IS MY COMMERCE . I will have several data sets. In One DB set ( not sure if thats proper terminology ) a CUSTOMER enters data for a FEE ( $5 ) the data form is filled out the Customer presses NEXT button which takes customer to Payment Page. Customer fills out payment form and presses SUBMIT after payment is ACCEPTED or APPROVED only THEN will data be entered into the data base. HERE IS QUESTION 1 can that be done and HOW ? ** Also on the same site other DATA SETS a person can enter data into those sets FOR FREE ( $0 ). So when Customer fills out form they press submit and data is entered into DB . ** On any data The data can be SEARCHED for FREE ($ 0 ) I DO NOT want this to be a Subscription / nor Membership site. ** ALSO I want ALL DATA to AUTO DELETE from the database after a set time period from the date of submission. Do you have any videos on these aspects of DB COLLECTION AND USE ????
Do you mind to make a video about making 2 person video call conference Using webrtc or else libraries, and PHP handle the connect between two parties.
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...
Hello dear Developer Can you help Please help me with my requirement. my requirement is ton transfer the amount to the 3rd person for example any hotel booking site. different hotels are listed in a single website. every hotel owner has its dashboard where hotel owner attached his bank account or his card. Now if any user booked any hotel then i want to directly transfer that booking amount to the hotels owner account. how i can do this there is no compulsory that every user have strip account. he can add his credit card or bank account details.
I greatly appreciate you a lot! thanks for your helpful videos really, I never attended any programming school, but just learned from you a few things, been able to get paying projects in the last months. Would you build us something in relation to blockchain too? like a site that accepts bitcoin or any other crypto currency as a form of payment. Thanks a lot.
Thanks for the series, would you like to know if it is possible to create (program) a payment platform similar to paypal or the paid market, to offer internet transaction services using this content? greetings from Brazil!
Why did I take so much time to find this channel? Seriously, I'm learning lots with your videos. Thank you!
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.
Thanks Ahmed, I appreciate that
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.
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!
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.
You are really helpful guy.
Thanks :)
Welcome Dear!!!
You always teach what people needed. You know your audience's needs. You are awesome! Thanks.
It's refreshing to see some development tutorials that teach us practical and real world skills, you're awesome dude!
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!
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
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?
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
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
Thanks @@lrunge. I already manage to fix it by add to 00 at the end.
finally somebody who is actually doing this is code and not just a wordpress plugin. lol
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)
Sir please make a video on the SCA stripe payment integration.
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.
Thank you! I’ve always wanted to make something like this with PHP! You rock Brad!👍
thats why i love php because of Brad of course
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.
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?
Excellent video. You have helped me again advance my project. Thank you
Very good video, clean and concise.
Thanks allot!!! waiting for this one 😍
Thanks man, I always love it when you teach PHP. You very good with it. Teach PHP some more.
Man, I love your videos! You do such good work, Thank you!
Brad, you are the legend!
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!
Try PayPal
AWESOME tutorial! Very simple and to the point, thank you!
Thank you, you are satisfaying every one's technologie
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.
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.)
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...
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
PHP/MariaDB API Should be a great update + PHP Course.
**Laravel also needs an update. (Laravel APIs would be great too)
i was waiting for this, thank's man i appreciate that
The famous 4242 as fast as you can key stroke. Thanks for the info.
Awesome sir very awesome teaching style.Very interesting.Waoo!!!!
5 Years old. Is it any good today? Hard to find a comprehensive, up-to-date php-stripe course.
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.
Thank you Brad it's like you are psychic!
Helpful video... I need help in getting values for a single row using its ID, please kindly respond.
Thank you so much. It was really helpful.
Amazing Tutuorial Sir, E-Wallet Totorial too Sir PLS.. :) Thanks
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
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!
Great video! Just would have been cool if you did express/mongodb version too
Love your vids.
Amazing !! Please make more PHP real time projects
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');
Is there an up to date set of code or video for doing these payments - this video was great but now out of date.
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
Vert well explained, big up!
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.
wonderfull my friend
Hey.. I would absolutely love something like.. Modern php from scratch.. Like you did the JavaScript Course
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?
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.
Great series thanks!
You're my hero..
So how did you send an email to them after????
That is Awesome!!
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.
Hello.. Can you tell me how can i show the last4 card number on success.php? thanks.
love U from Pakistan
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?
hello sir, i have placed my api key but gettting 'invalid api key' error
Hey 👋 , awesome tutorial brother.
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.
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.
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
thank you sir .... bundle of thanks ...
i tried to make this form responsive, for mobile, and the credit-card input doesnt work. the placeholder floats above all the other fields.
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.
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?
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?
Dear Brad
It is necessary to create a customer or can i execute the charge wihtout a customer-id?
I don't want stripe to receive my customers' emails. What do you recommend.
PHP
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
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.
** QUESTION I am wanting to build a DATABASE driven Website. On my web site DATA IS MY COMMERCE . I will have several data sets. In One DB set ( not sure if thats proper terminology ) a CUSTOMER enters data for a FEE ( $5 ) the data form is filled out the Customer presses NEXT button which takes customer to Payment Page.
Customer fills out payment form and presses SUBMIT after payment is ACCEPTED or APPROVED only THEN will data be entered into the data base. HERE IS QUESTION 1 can that be done and HOW ?
** Also on the same site other DATA SETS a person can enter data into those sets FOR FREE ( $0 ). So when Customer fills out form they press submit and data is entered into DB .
** On any data The data can be SEARCHED for FREE ($ 0 )
I DO NOT want this to be a Subscription / nor Membership site.
** ALSO I want ALL DATA to AUTO DELETE from the database after a set time period from the date of submission.
Do you have any videos on these aspects of DB COLLECTION AND USE ????
so is it secured so we can save the credit card?
Great man .
Good day please how do you make ebook download after successfully payment
hey so this really does charge your account the proper way with the bank knowing?????
Can I integrate this project into my website? Trying to scale the website. Need a payment API.
The video is great. How can i get the email to confirm the payment?
Hey can you make another tutorial with another payment api, in Dominican Republic it is not available yet.
What if i want users to be able to pay a custom amount each time?
I have a request please recreate old tutorials with latest changes
Do you mind to make a video about making 2 person video call conference
Using webrtc or else libraries, and PHP handle the connect between two parties.
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...
Hello dear Developer
Can you help Please help me with my requirement.
my requirement is ton transfer the amount to the 3rd person
for example any hotel booking site. different hotels are listed in a single website. every hotel owner has its dashboard where hotel owner attached his bank account or his card. Now if any user booked any hotel then i want to directly transfer that booking amount to the hotels owner account.
how i can do this there is no compulsory that every user have strip account. he can add his credit card or bank account details.
Amazing Traversy Media
Hey Brad, Can you please make some tutorial on PayPal. It's complicated.
I greatly appreciate you a lot! thanks for your helpful videos really, I never attended any programming school, but just learned from you a few things, been able to get paying projects in the last months. Would you build us something in relation to blockchain too? like a site that accepts bitcoin or any other crypto currency as a form of payment. Thanks a lot.
can you show us how to do Stripe with angular + firebase?
Hi im trying to find my way in Stripe ideal can you help me out some way ???
Could you do a subscription tut?
Thanks for the series, would you like to know if it is possible to create (program) a payment platform similar to paypal or the paid market, to offer internet transaction services using this content? greetings from Brazil!
Does it really work or is it an example of how it can be?
Sorry, but i do not speak English.
hi. How to open intergrated terminal in Dreamweaver