Flutter 3.0 & Stripe Payment integration with Firebase

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

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

  • @baAbou-w3p
    @baAbou-w3p Год назад

    Thank you Hadi for this tutorial. It was fantastic

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

    Thanks Hadi for this great tutorial. I have learnt a lot from you.

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

    Thank you for time and effort. I have been searching for this nice tutorial for days. Very clear and precise, exactly what I needed for my current Flutter project.💪☺

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

    Best one untill now!! great job!

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

    thanks for sharing this tutorial

  • @jamesr2408
    @jamesr2408 2 года назад +1

    Thank you very much. At long last the full the flutter-stripe code along. One question: the "successful payment" in the snack bar display, is it positively verified by Stripe response? or just local code guess work?

    • @codingwithhadi
      @codingwithhadi  2 года назад +1

      Hi James,
      It should be verified by the Stripe, because we are waiting the above functions, and if there is something wrong. The successful payment snackbar will not be shown. So once the payment is placed successfully we will show the snackbar, but if not we don't.
      And also I added more explanation in my course, you can handle it from the Json response and get the success value if it's false or true...

  • @vividwebtechs5058
    @vividwebtechs5058 2 года назад +2

    Hi Hadi, very nice video.
    Thanks for it..
    Can you please teach me how to charge a card from a different device, like Uber.
    So I need to add card to stripe from client app and charge it when the merchant complete transaction from merchant app.

  • @edwardotoo5828
    @edwardotoo5828 2 года назад +1

    I had an error with mine , "An Error occurred format exception: unexpected character at line 2, character 1
    "
    whenever I press the pay button.
    The stripe payment sheet doesn't show

    • @TungNguyen-lt5ej
      @TungNguyen-lt5ej 2 года назад +2

      Do you have solution yet?

    • @oraimo3728
      @oraimo3728 10 месяцев назад

      no really what was the solution

  • @Afrojack278
    @Afrojack278 2 года назад +2

    Hi Hadi, I follow all your steps but then i received this error [log] {success: false, error: o is not defined}. Can you please explain what this mean? I've been trying to debug all day long but could not figure it out, it would really help if anyone can help me with this

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

      Please i really need some help :((((

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

    Thank you for this video
    I'm using Stripe for Web Application and I'm using create Checkout Session then redirect To Checkout.
    First is it correct.
    Now I passed the success url and cancel url.
    After finish payment, it come back to my web/success how I can get the metadata or the payment details.
    How to re-initialize my web

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

    I have a question, Is there a way to remove Billing address from Stripe payment card? Or another country will appear by default, for example Germany, and users will have the opportunity to select other countries by clicking on it.

  • @PawanSingh-ql5cd
    @PawanSingh-ql5cd Год назад

    hye sir integarte stripe in my frontend but i can not get save card for future option. What the role of backend in the stripe

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

    Hello good afternoon. Can anyone tell me if, in order to implement the subscription billing system in an application, it is required to implement the NATIVE payment method (Google and Apple).

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

    Hi Hadi,
    I am getting the error {success: false, error: Received unknown parameter: name}
    Can you tell me where could i am doing something wrong ?

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

    How do you handle asynchronous payment like for example Sepa debit or ACH debit?

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

    How can i get the sheet detail so i can store it and give to ky backend api.

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

    hello, how do I change the type of currency to 'mxn' since flutter doesn't let me, if I edit the index.js file and
    const paymentIntent = await stripe.paymentIntents.create({
    amount: parseInt(req.body.amount),
    currency: 'mxn',
    customer: customerId,
    automatic_payment_methods: {
    enabled: true,
    },
    It doesn't do it for me, where can I modify it, thanks.

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

    How to solve this error:
    Unhandled error: Instance of 'StripeConfigException'

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

    Bro i have a question that if need to integrate stripe payment with the ui screen i have which takes card number expiry date and cvv and i want to pay on the click of a button but i dont want that stripe payment page i want that when i click on pay button it should do the payment please if u can help

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

    This is not working .In test mode I'm getting incomplete payment in stripe dashboard. Pls tell me the solution.

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

      You can find the code I used here. You can use it or compare it to your code.
      github.com/hadikachmar3/grocery_app_course/blob/master/lib/main.dart

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

      how did you solved? I am getting same problem, code is same as described in video. Hadi if you could help?

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

    hlo sir is this method secure?

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

    sir make two step verification on

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

    please give coupon code

  • @NAJEEBKHAN-fc6ib
    @NAJEEBKHAN-fc6ib 2 года назад

    how can we send it to the seller account?

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

      @Najeeb, you need to switch from test mode.

    • @NAJEEBKHAN-fc6ib
      @NAJEEBKHAN-fc6ib 2 года назад +1

      @@codingwithhadi but still the payment will be in stripe not transfeerred to seller bank .please make tutorial on it

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

    There is a problem. Whenever I enter an email for the first time, the response that I get is:
    {success: false, error: Cannot read properties of undefined (reading 'id')}
    I am your student on Udemy, so please do respond to this as I would like to make this work properly.

    • @hetthummar9582
      @hetthummar9582 2 года назад +1

      use customerId = customer.id; instead of customerId = customer.data.id; when creating new customer
      Here is the code snippet
      if (customerList.data.length != 0) {
      customerId = customerList.data[0].id;
      }
      else {
      const customer = await stripe.customers.create({
      email: req.body.email
      });
      customerId = customer.id;
      }

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

      @@hetthummar9582 Thank you so much. I wonder why the teacher didn't tell me that, even though I bought their Udemy course.

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

      This is because, Apple pay button is enabled. If you wish to enable apple pay, you need to add it at the settings section on your stripe dashboard, go to your apple developer account, upload to setup up apple pay, else you can disable it as shown below:
      await Stripe.instance.initPaymentSheet(
      paymentSheetParameters: SetupPaymentSheetParameters(
      paymentIntentClientSecret: jsonResponse['paymentIntent'],
      merchantDisplayName: 'Gambler Tips',
      customerId: jsonResponse['customer'],
      customerEphemeralKeySecret: jsonResponse['ephemeralKey'],
      googlePay: const PaymentSheetGooglePay(
      merchantCountryCode: 'US',
      testEnv: true,
      ),

      // applePay: const PaymentSheetApplePay(merchantCountryCode: 'US'),
      ),
      );

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

    for flutter web work?

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

      Yes,
      Usually you can check the package what platforms it support

  • @DjBillman
    @DjBillman 2 года назад +1

    Your code has errors. It will not run.