PHP, MySQL & Stripe API Payment App - Part 1

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 248

  • @prayk11
    @prayk11 5 лет назад +1

    Why did I take so much time to find this channel? Seriously, I'm learning lots with your videos. Thank you!

  • @AhmedBalfaqih
    @AhmedBalfaqih 6 лет назад +3

    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.

  • @marwanak10
    @marwanak10 6 лет назад +1

    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.

  • @MarcoAZeballosS
    @MarcoAZeballosS 6 лет назад +5

    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!

  • @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 лет назад +61

    You are really helpful guy.

  • @ilyosjon_uz
    @ilyosjon_uz 6 лет назад

    You always teach what people needed. You know your audience's needs. You are awesome! Thanks.

  • @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!

  • @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!

  • @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

  • @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?

  • @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 лет назад +1

      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.

  • @connerallen642
    @connerallen642 4 года назад

    finally somebody who is actually doing this is code and not just a wordpress plugin. lol

  • @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)

  • @danishmanzoor795
    @danishmanzoor795 5 лет назад +2

    Sir please make a video on the SCA stripe payment integration.

  • @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.

  • @donovan8031
    @donovan8031 6 лет назад

    Thank you! I’ve always wanted to make something like this with PHP! You rock Brad!👍

  • @drcod3r329
    @drcod3r329 5 лет назад

    thats why i love php because of Brad of course

  • @coder236
    @coder236 4 года назад +2

    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.

  • @JasonPurkiss
    @JasonPurkiss 5 лет назад +5

    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?

  • @jorgetoro7048
    @jorgetoro7048 3 года назад

    Excellent video. You have helped me again advance my project. Thank you

  • @BachPhotography
    @BachPhotography 5 лет назад

    Very good video, clean and concise.

  • @vinaytomar5827
    @vinaytomar5827 6 лет назад +4

    Thanks allot!!! waiting for this one 😍

  • @TechReagan
    @TechReagan 6 лет назад +2

    Thanks man, I always love it when you teach PHP. You very good with it. Teach PHP some more.

  • @MajorTom8461
    @MajorTom8461 5 лет назад

    Man, I love your videos! You do such good work, Thank you!

  • @stefan4800
    @stefan4800 6 лет назад +1

    Brad, you are the legend!

  • @justeelvain7137
    @justeelvain7137 6 лет назад +2

    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!

  • @JoseGarcia-vr8mx
    @JoseGarcia-vr8mx 6 лет назад

    AWESOME tutorial! Very simple and to the point, thank you!

  • @mstafadev6729
    @mstafadev6729 6 лет назад

    Thank you, you are satisfaying every one's technologie

  • @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.

  • @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.)

  • @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...

  • @AdrianSotoKraack
    @AdrianSotoKraack 5 лет назад +2

    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

  • @kvelez
    @kvelez 2 месяца назад

    PHP/MariaDB API Should be a great update + PHP Course.
    **Laravel also needs an update. (Laravel APIs would be great too)

  • @aimadhadiri3563
    @aimadhadiri3563 6 лет назад

    i was waiting for this, thank's man i appreciate that

  • @jerrickhakim4355
    @jerrickhakim4355 5 лет назад

    The famous 4242 as fast as you can key stroke. Thanks for the info.

  • @rajnishpatel580
    @rajnishpatel580 6 лет назад

    Awesome sir very awesome teaching style.Very interesting.Waoo!!!!

  • @jamesr2408
    @jamesr2408 Год назад

    5 Years old. Is it any good today? Hard to find a comprehensive, up-to-date php-stripe course.

  • @mulletman1705
    @mulletman1705 4 года назад +1

    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.

  • @wintereh4818
    @wintereh4818 6 лет назад

    Thank you Brad it's like you are psychic!

  • @izukauche7835
    @izukauche7835 5 лет назад +1

    Helpful video... I need help in getting values for a single row using its ID, please kindly respond.

  • @shirishachhetri3315
    @shirishachhetri3315 3 года назад

    Thank you so much. It was really helpful.

  • @sanghiang7
    @sanghiang7 4 года назад +1

    Amazing Tutuorial Sir, E-Wallet Totorial too Sir PLS.. :) Thanks

  • @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

  • @haseebquadri5461
    @haseebquadri5461 5 лет назад +1

    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!

  • @SogMosee
    @SogMosee 6 лет назад

    Great video! Just would have been cool if you did express/mongodb version too

  • @___OmerAJ___
    @___OmerAJ___ 5 лет назад +1

    Love your vids.

  • @gowthams8340
    @gowthams8340 6 лет назад

    Amazing !! Please make more PHP real time projects

  • @mojar2680
    @mojar2680 6 лет назад +1

    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');

  • @philjones2839
    @philjones2839 4 месяца назад

    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

  • @gglandshomeunixorg
    @gglandshomeunixorg 6 лет назад

    Vert well explained, big up!

  • @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.

  • @mohmmadse1565
    @mohmmadse1565 3 года назад

    wonderfull my friend

  • @its_maalik
    @its_maalik 6 лет назад

    Hey.. I would absolutely love something like.. Modern php from scratch.. Like you did the JavaScript Course

  • @taospencer1403
    @taospencer1403 5 лет назад +1

    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?

  • @hamastarcombat
    @hamastarcombat 2 года назад

    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.

  • @nonchalant8473
    @nonchalant8473 6 лет назад

    Great series thanks!

  • @mithu26491
    @mithu26491 6 лет назад +1

    You're my hero..

  • @TAHJBecomeYourBestSelf
    @TAHJBecomeYourBestSelf 4 года назад

    So how did you send an email to them after????

  • @VeeWebCode
    @VeeWebCode 6 лет назад +1

    That is Awesome!!

  • @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.

  • @hhhrrruuulll
    @hhhrrruuulll 3 года назад

    Hello.. Can you tell me how can i show the last4 card number on success.php? thanks.

  • @IsfhanAhmed
    @IsfhanAhmed 6 лет назад +3

    love U from Pakistan

  • @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?

  • @tehseenullah215
    @tehseenullah215 3 года назад

    hello sir, i have placed my api key but gettting 'invalid api key' error

  • @logic_master950
    @logic_master950 4 года назад

    Hey 👋 , awesome tutorial brother.

  • @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.

  • @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.

  • @UpEthio
    @UpEthio 2 года назад

    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

  • @infotech7010
    @infotech7010 6 лет назад

    thank you sir .... bundle of thanks ...

  • @konteee
    @konteee 5 лет назад

    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 5 лет назад

      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.

  • @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?

  • @Babak_Ahari
    @Babak_Ahari 5 лет назад

    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?

  • @roswithameier921
    @roswithameier921 4 года назад

    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.

  • @h3yfriday659
    @h3yfriday659 6 лет назад +11

    PHP

  • @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

  • @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.

  • @williamjamesrapp7356
    @williamjamesrapp7356 4 года назад +1

    ** 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 ????

  • @programmerako
    @programmerako 2 года назад

    so is it secured so we can save the credit card?

  • @saikatsen4515
    @saikatsen4515 4 года назад

    Great man .

  • @chineduogelekaBigNick
    @chineduogelekaBigNick 4 года назад

    Good day please how do you make ebook download after successfully payment

  • @TheOriginalTristonEvo
    @TheOriginalTristonEvo 5 лет назад

    hey so this really does charge your account the proper way with the bank knowing?????

  • @kevyyar
    @kevyyar 5 лет назад

    Can I integrate this project into my website? Trying to scale the website. Need a payment API.

  • @francescoscollo2275
    @francescoscollo2275 3 года назад

    The video is great. How can i get the email to confirm the payment?

  • @adriankennyacostaramirez3065
    @adriankennyacostaramirez3065 6 лет назад

    Hey can you make another tutorial with another payment api, in Dominican Republic it is not available yet.

  • @beastieboy96
    @beastieboy96 4 года назад

    What if i want users to be able to pay a custom amount each time?

  • @__Cypher
    @__Cypher 4 года назад

    I have a request please recreate old tutorials with latest changes

  • @FreakFolkerify
    @FreakFolkerify 5 лет назад

    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.

  • @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...

  • @satvinderjit21
    @satvinderjit21 3 года назад

    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.

  • @TheYannsonnboys
    @TheYannsonnboys 6 лет назад

    Amazing Traversy Media

  • @MrAKGarg007
    @MrAKGarg007 6 лет назад

    Hey Brad, Can you please make some tutorial on PayPal. It's complicated.

  • @hakizimanafred6482
    @hakizimanafred6482 6 лет назад

    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.

  • @pillar6programming687
    @pillar6programming687 6 лет назад

    can you show us how to do Stripe with angular + firebase?

  • @redbeardjunior
    @redbeardjunior 6 лет назад

    Hi im trying to find my way in Stripe ideal can you help me out some way ???

  • @ibsmiley6313
    @ibsmiley6313 6 лет назад

    Could you do a subscription tut?

  • @robertosaldanha3571
    @robertosaldanha3571 5 лет назад

    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!

  • @Dmitriy_Sentinel
    @Dmitriy_Sentinel 5 лет назад

    Does it really work or is it an example of how it can be?
    Sorry, but i do not speak English.

  • @patriciamaria1034
    @patriciamaria1034 4 года назад

    hi. How to open intergrated terminal in Dreamweaver