- 5
- 16 502
ExtraServings BTS
Canada
Приєднався 19 тра 2006
'Not begun until half done,' said Keats. Follow my trials and tribulations as the late blooming founder of ExtraServings, the Smart Way to Dine Out for Less.
Mostly you'll see Flutter, Firebase, and related coding videos. Why? Because I'm still at the coding stage of the business. But hopefully as that part winds down, you'll see more about the actual building of a venture-scale business from the ground up. To the moon!
There are so many reasons not to do anything, many of them highly persuasive, especially in the mouth of a doubter. And the world is full of doubters. They infest our planet. In the living room, in the pub, in the office, at the boardroom table. Everywhere you look, you will find men and women who appear to take perverse pleasure in pointing out the shriekingly obvious: that if a new venture does not succeed, it may result in failure.
Mostly you'll see Flutter, Firebase, and related coding videos. Why? Because I'm still at the coding stage of the business. But hopefully as that part winds down, you'll see more about the actual building of a venture-scale business from the ground up. To the moon!
There are so many reasons not to do anything, many of them highly persuasive, especially in the mouth of a doubter. And the world is full of doubters. They infest our planet. In the living room, in the pub, in the office, at the boardroom table. Everywhere you look, you will find men and women who appear to take perverse pleasure in pointing out the shriekingly obvious: that if a new venture does not succeed, it may result in failure.
Cloud Firestore 2022 - Aggregation (Count) Queries in Flutter
Hey World, it's been a while. Found a little gem here - nobody else seems to have picked up on it yet, so here I am delivering the goods again.
@Fireship did a good video on the new firebase features, but there isn't any documentation on how to get this working in Flutter. So here you are. Just a quick one.
No filler all killer... Just the way you like it. Back when I find something else of value.
***
I'm on a roll, and you are too, beautiful person! The 1000 subscriber goal is coming along. Won't you join the party? We can't do this without you. Subscribe and be one of the cool kids! C'mon! It's free!
Music: UA-cam library
#flutter #firebase #databases
@Fireship did a good video on the new firebase features, but there isn't any documentation on how to get this working in Flutter. So here you are. Just a quick one.
No filler all killer... Just the way you like it. Back when I find something else of value.
***
I'm on a roll, and you are too, beautiful person! The 1000 subscriber goal is coming along. Won't you join the party? We can't do this without you. Subscribe and be one of the cool kids! C'mon! It's free!
Music: UA-cam library
#flutter #firebase #databases
Переглядів: 1 061
Відео
Keep 'em Separated: Organizing your Firebase Functions
Переглядів 4043 роки тому
So you're starting to build out your Firebase app, and you're adding functions as you go. Great - but isn't that index.js file starting to get a little bit long, ugly, and hard to parse? Of course it is! Don't worry though, F50 is here to save the day. In this video you'll learn how to quickly separate your functions into separate files, pull them in to your main index.js, and deploy. I'll show...
Storing Stripe Webhooks in Firebase Firestore and processing them using Firebase Functions.
Переглядів 2,4 тис.3 роки тому
So, you've got these webhooks coming out of Stripe or another provider, and you need somewhere to store them, and then act on them? Here's the solution. In this video we'll walk through how to set up a Firebase Functions https endpoint (or two) to receive them and store them as the original JSON inside Firebase Firestore. Then we'll create another Function that will do whatever crazy stuff you ...
Flutter RBAC (Role Based Access Control)
Переглядів 6 тис.3 роки тому
#flutter #mobile #firebase Ever wanted to show different screens to different classes of users in Flutter? Now you can. Watch my walkthrough of a simple code example. Don't forget to subscribe. Subscribing is good for you. Subscribing makes you strong and sexy! Source Code link: github.com/wilpar/flutter_rbac Cover Photo by Steve Harris from Unsplash
Stripe Payments with Flutter 2021 - fast and easy 3 step process using Payment Intents (SCA)
Переглядів 7 тис.3 роки тому
I couldn't find another video that used the current Stripe Payment Intents method to capture payments. So, I built it myself. Enjoy! Please consider subscribing. I really need those 1000 subs ;) Source Code link: github.com/wilpar/payment_intent
Need a video for Gen2 and Node 18 please :)
gen2 works fine within the same project side by side, and just change the node version to 18 in the package.json. Done. No video necessary.
Great tutorial, thank you!
HI, i understand moving exports into difrient files, but when You deploy functions all source code will upload to each individual functions. So functon 'a' will contain files for function 'b', 'c' .... and so on, while You actually not using theme.
Interesting. I separated the functions into files for organization purposes. Do you have another suggestion?
I have a question if im using this method instead of using snapshot.length am i saving cost of data or again getting all the docs to calculate the length as in snapshot.length
And if there is a method to do this in StreamBuilder how can i do that?
Thank you very much. You solved my problem with webhook
thank you so much , but the problem is whenever i add a document in firestore it didn't refresgh automatically in the app
Try a StreamBuilder instead of a FutureBuilder :)
Litreally your video is the only source that explains this for flutter. Great work !
That's the idea. Who wants the same ole solution to the same ole problem? Hope you subscribe.
hey 👋🏻 many thanks ❤ just one question , how to make subscription ? because this is a one time payment
Glad you enjoyed. Subscriptions are a completely different flow.
Thankyou so much for this basic yet very-useful video
Awesome, just what I needed. Thank you for the tutorial 👌 You've got a new subscriber
Hey thanks. This has helped with my killer app that I'm trying to make. Trying to use this and Flavours for 3 Apps in one codebase. And I'm still in nappies when it comes to coding. Talk about uphill struggles. This has definitely solved some of the problems, even while trying understand it still. Many thanks 🙏
This is great. Thanks! I already built a splash screen. Any idea where I'd add the SplashScreen() to ensure it's the background of both the Login and Register pieces of the app? I also have separate home screens depending on whether a vendor or a customer that I'd also want to take a user to when signed in. Where would I put those respective screens? Thanks for any thoughts.
Hey Ryan, glad you found it useful. Just think of it like layers of an onion. What do you need to know first? Logged in/Anon probably. Then if logged in, what's the role? Etc etc.
@@ExtraServingsBTS Thank you. Really enjoying Flutter/Dart as the first language that I've really stuck with over a signifiant period, but learning to program is hard! I will consider the onion analogy. Just not sure where to place my screen in the background of your login logic.
Hi i enjoyed the video a lot. But it never logins to admin, always member page. Great video.
Did you set the admin claim on the user?
Hello I need your help with stripe integration pls help me
Sorry, I generally don't do consulting work.
@@ExtraServingsBTS pls atleast can have a look at my problem?
Have a look atleast
Will this procedure (I mean the confirmpaymentintent) in a live setting open up the app bank account waiting for a pin or something like that? Will it work also without it, in that case?
You're talking about 3DSecure... Yes, Stripe handles that automatically. Check the stripe docs for more info.
Hi, it's me again.. This has been bothering me for a week. I have cloned your app and making it null safety compliant. But even when there is no user recorded in the firestore/firebase, the first thing going to load is the member page. I wonder what I have done wrong with my code. I haven't even able to make the users with "admin" roles accessing admin page. I want to show you the code, how should I do that?
hey there, Might be good just to have a page that replies with the role, for testing. One thing at a time. If all else fails, drop a link to a GitHub repo and I'll see what I can find. No guarantees - day job busy ;)
@@ExtraServingsBTS Thank you for the kind reply. will do just that <3
Hi, I want to know about the cloud functions deployment.. I am still on developing stage and wishing to test this RBAC out but get bummed when knowing that Google no longer let us use Cloud Function with Spark plan. Is there any alternative you may recommend sir? I found that not only your tutorial are on point and helpful, it is easy to understand.
Hey, thanks for watching. Honestly, just upgrade to the Blaze plan. In development, my project never spent more than 10c / mo. There's a good video on the Firebase channel on how to set up billing alerts - I was paranoid at first, too, but honestly, 10c. Crazy cheap for what you get.
@@ExtraServingsBTS Thank you for your kind reply.. I will do that. 10c sounds really cheap for headache free development. Will look for that billing alerts setup video and go from there. Keep up the great work! I'm subscribing, so I can follow your devs <3
Great Video 👌👌
Great ! Thx
Hey, Thank you for this video, I have one question about stripe , is any possible way stripe use on flutter web with random amount ?
money should not be random 😀
you use 3d secure ?
Per the docs: "Stripe triggers 3DS automatically if required by a regulatory mandate such as Strong Customer Authentication. " stripe.com/docs/payments/3d-secure
@@ExtraServingsBTS but we want to verify with 3d secure to accepte payement
Great!, I was looking for something like this for days.
Your code repo seems to have been updated to use a different plugin. Do you also have an updated video?
what you see is what you get ;). Hope to have more content soon. Lots of fun with Stripe. Package has updated to 2.0 etc.
Has anyone else come across that pay_platform will save the card for future use but that pay_connected does not?
In my production app I'm using flutter_stripe: ^1.3.0 and it has a checkmark in the payment sheet which allows the customer the option to save the payment method _for the merchant_. So the payment method gets cloned to the merchant (connected) account. Check there, tell me what you find!
@@ExtraServingsBTS Can i make custom ui of card and save for later and when tapped on a saved card in the database flutter ui it will do the oaymeny from that card
gr8 video, just one question... stripe_payment is migrating to flutter_stripe so what changes are we supposed to do?
check pubspec.yaml in source code, mate - the update has been done.
is this possible to do with a different webhook then only the strip webhook?
Sure, why not? It's just calling an https endpoint. You can reply with anything you want. Hope this video was helpful for you.
why would you use the firebse function? because I found a video that does all of this without using the firebase function
Thanks for visiting. Please watch those other videos again, and read the comments. If you do ANY actions on the client side, you are exposing yourself to huge security risks. Some things NEED to be done on the server. You can use functions, or you can host elsewhere, it doesn't matter. But you ABSOLUTELY SHOULD NOT connect directly to Stripe in your frontend code. You'll notice that I'm also pulling my stripe keys from functions (pretty sure I did it in this video). Keep as much sensitive information away from your app users as possible. Not all of them will have good intentions.
@@ExtraServingsBTS got it, Thank you so much
Hello, great video. I have a question, is the client secret that is retrieved the same as the stripe secret key. I'm curious as to where that key is a set constant or changes for every intent. If not is there not a large security risk sending the secret key around, it could easily be intercepted. Also is there a risk as the key will be in memory as it is used as a variable. Or am I wrong. If it is you could isolate quite quickly surely. I'm a total noob just trying not to get defrauded. Thank you for all your work this video was great
Yes, it changes. Thanks for dropping by. I had to spend a lot of time on the phone with Stripe to get this working. My mind is easily bent, but still... this one was twisted.
@@ExtraServingsBTS That's brilliant, well done you contribute something really worth while here. At least to my project. Seriously, thank you!
how does stripe-flutter handles 3D secure payments say OTP
AFAIK the 3DSecure is automatically triggered based on the card. Check the stripe demo card list, Im pretty sure one of the cards uses it.
@@ExtraServingsBTS thank you that is very helpful are you sure we dont have to redirect it manually to otp page or something
@@arjun5458 try!
@arjun I was just testing my production app, and yes, it redirects the app to a web page if 3dsecure is present on the card.
hi im his son :) nathan
That was great. Thanks.
appreciate it, man!
@bum bum sorry, I didn't get it. I've updated the contact info on the channel's About page. Hope I don't get spammed to death ;)
@bum bum customer service ;)
Saw Your comments at every stripe integration tutorial videos in UA-cam. There is no any clear tutorial in UA-cam and other platforms. I also never succeed and tried to implement every code of this videos. Yours is too complex for amatuer developers. I watch this video at least 10 times. But never succeded. Can You make new video for amatuer developer so that they also implement it easily. If You have free time in close future please! Thank You from name of amatuer developers. 🙏
Hi Batyr, thanks for stopping by. I consider myself an amateur too, by the way! Unfortunately 'it's too hard make it easier' is a bit too vague for me to help - where do you get stuck?
@@ExtraServingsBTS thanks for support too. I am at the begin yet. Bu I dcouldnt deploy functions to firebase yet. Then I have put my secret key to my app directly.
@@batyrashyrov9917 firebase.flutter.dev/docs/overview/ should be the first place to look.
@@ExtraServingsBTS Thanks.
code with ahsan is a channel I saw kind of easy 3 part video try that < for future amateurs >
Thank u
No problem
Hi sir. This project is so awesome... 👍🏼 Can you help me out with the admin signup?
To sign up as the admin, you just need to go to stripe.com. To sign up as a vendor.... I have a video coming on that.
@@ExtraServingsBTS Okay, thanks. I will do that now
What I meant is how do I login in as the admin in the flutter RBAC tutorial you uploaded on UA-cam?
@@samuelranger8952 Ah... thought I covered that. First things first, create an account BEFORE you lock down based on role. Then set yourself admin. Then lock it down. You can't set custom claims directly inside the firebase console. A pain, but that's how it works.
@@ExtraServingsBTS Sir if explain with Firebase it v very better ....Any How Thank you Sir ...
Stripe just released a new package for payments, could you take a look at it? it's called flutter_stripe. Great Video! :)
Hi, yes I saw that the package had stopped development, and that the developers had started from scratch. I might update my app at some point but for now I just need something that works. The Stripe package has always been a bit annoying to get/keep working on iOS so hopefully this new one is better.
So clear, so helpful . Thanks
Appreciate it! Please consider subscribing - much more is on the way.
There are a few typos that I caught during editing, but it's corrected in the github code. Thanks for watching, Subscribe Subscribe Subscribe!
F50 drinking game: take a shot every time I say 'the fun part'
I did and now I'm bloated (I drink water BTW) lol
thank you, I set the secretkey and pubkey by running the commands: firebase functions:config:set stripe.pubkey="<pubkey>" firebase functions:config:set stripe.secretkey="<secretkey>" I didn't see that in the video
are you obliged to have them pre-set from before, as i save them im a database urrently and want to read them from there is it possible?
I try to apply your code to my app but I have an error on snack bar line 55, I had this same error that you have I did this same what you did but still I have errors. Would you have look at my code if you don't mind and you have spare time I try to figure out this whole day and nothing?
ok I mange to fix Thanks man
Use this: final scaffoldMessenger = ScaffoldMessenger.of(context); scaffoldMessenger.showSnackBar( SnackBar( content: Text("done"), duration: Durations(seconds: 3), ) );