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.💪☺
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?
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...
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.
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
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
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
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.
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).
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.
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
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.
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, ),
Thank you Hadi for this tutorial. It was fantastic
Thanks Hadi for this great tutorial. I have learnt a lot from you.
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.💪☺
Glad to hear that!
Best one untill now!! great job!
thanks for sharing this tutorial
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?
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...
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.
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
Do you have solution yet?
no really what was the solution
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
Please i really need some help :((((
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
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.
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
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).
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 ?
How do you handle asynchronous payment like for example Sepa debit or ACH debit?
How can i get the sheet detail so i can store it and give to ky backend api.
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.
How to solve this error:
Unhandled error: Instance of 'StripeConfigException'
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
This is not working .In test mode I'm getting incomplete payment in stripe dashboard. Pls tell me the solution.
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
how did you solved? I am getting same problem, code is same as described in video. Hadi if you could help?
hlo sir is this method secure?
sir make two step verification on
please give coupon code
how can we send it to the seller account?
@Najeeb, you need to switch from test mode.
@@codingwithhadi but still the payment will be in stripe not transfeerred to seller bank .please make tutorial on it
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.
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;
}
@@hetthummar9582 Thank you so much. I wonder why the teacher didn't tell me that, even though I bought their Udemy course.
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'),
),
);
for flutter web work?
Yes,
Usually you can check the package what platforms it support
Your code has errors. It will not run.