#surprisedpika9217
1 messages · Page 1 of 1 (latest)
What UI are you using for accepting payments?
Hi, could you help me elaborate with what you mean with UI?
User interface
Let me make a screenshot of how it currently is
Im testing on another phone, so sorry for the quality
Though credit card also should be a choice, it is not deviating away from this option
Do you have those other payment methods enabled in the Dashboard?
Here's where you can check: https://dashboard.stripe.com/test/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Do you have an example Payment Intent ID I can look at that was used to display the UI?
For sure, I can show u the code that we use to make the payment
Just the ID of the Payment Intent is fine
You should be creating it in order to display the UI in your screenshot above
So I initialize the payment, await Stripe.instance
.initPaymentSheet(), then I display the UI here:
Stripe.instance.presentPaymentSheet()
You don't pass a client secret to display it?
Oh yes I do, which is here:
await Stripe.instance
.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
paymentIntentClientSecret: paymentIntent![
'client_secret'], //Gotten from payment intent
style: ThemeMode.dark,
googlePay: gpay,
// applePay: applePay,
merchantDisplayName: widget.restaurant.franchise))
.then((value) {});
the paymentIntent one
okay, so I need to see an example Payment Intent that you create in this manner. Can you add a log line console.log(); and go through the flow then send me the ID?
the ID of paymentIntent!['client_secret']?
No, the ID of paymentIntent[id]
gotcha, one moment
Sorry for the delay, I think theres somehow good news suddenly
they all suddenly appear but I dont know why
Glad to hear it's working
Ye youre a lucky charm
I do have 2 followed up questions about this
- If user pays once, will the behaviour be recorded? (Like name, selected bank etc)
- If we have connected accounts, how can we pass the account such that they can decide which payment to show?
I think those are better questions for our support folks. We handle mostly just developer integration questions: https://support.stripe.com/contact
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I actually went to them, but they couldnt help me with flutter
hence why I went to discord
Sure, but none of these questions are about Flutter.
the first one not, but second one I need to integrate into the code
the parameters are not to be found
How are you choosing which payment methods types to show right now?
its showing everything, I cant decide to select a specific one, which was my initial question actually
When you create the Payment Intent you can pass payment_method_types, which is a list of all the Payment Methods you want to enable for that Payment Intent: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alternatively, you can let it default to the Payment Method types you have enabled in the Dashboard
Which is what it's doing right now