#vaibhav_unexpected
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- vaibhav_unexpected, 17 hours ago, 16 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245668912226373666
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
would you mind sharing the more information please?
how are you integrating with Stripe? any IDs that I could look at ?
This is in continuation with my earlier discussion
I was asked to check if create setupIntent returned "iDEAL" in payment_method_types. I checked and it is returned.
can you please share a PaymentIntent ID please?
I am creating a setupIntent. Not a payment intent
ok would you mind sharing that ID?
I do not have access to stripe dashboard. Is there any other way I can get it?
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.
you can find the request ID from the backend when you call the create SetupIntent
or even the SetupIntent ID
sure. give me few mins
take your time
ok and would you mind sharing your code/view on the mobile app?
do you want a screenshot of the payment screen?
yes please
here you go
and the code for your payment sheet
btw are you following this https://docs.stripe.com/payments/ideal/set-up-payment?platform=ios#ios-collect-payment-method-details
on the front-end
Its a dart/flutter code
try {
final result = await _apiService.subscribe(
uid,
email,
priceId,
subscriptionType,
) as Map;
final map = Map<String, String>.from(result);
final setupIntent = map['clientSecret'];
final customerId = map['customerId'];
await Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
setupIntentClientSecret: setupIntent,
merchantDisplayName: 'Le Wine Club',
customerId: customerId,
customFlow: false,
applePay: const PaymentSheetApplePay(
merchantCountryCode: 'NL',
),
googlePay: const PaymentSheetGooglePay(
merchantCountryCode: 'NL',
testEnv: true,
),
style: ThemeMode.light,
appearance: PaymentSheetAppearance(
colors: PaymentSheetAppearanceColors(
primary: theme.colorScheme.primary,
componentBorder: theme.colorScheme.primary,
componentDivider: theme.colorScheme.primary,
// secondaryText: theme.colorScheme.primary,
secondaryText: Colors.black,
),
shapes: const PaymentSheetShape(
borderRadius: 16,
),
),
billingDetails: BillingDetails(
email: email,
),
),
);
await Stripe.instance.presentPaymentSheet();
} on StripeException catch (e) {
throw StripeFailure.fromException(e);
} catch (_) {
rethrow;
}
this is on android that I am testing first
https://docs.stripe.com/billing/subscriptions/ideal
is this different? I am trying to follow this.
i have a subscription to sell in my app
the only difference is that the doc you shared uses Checkout Sessions
Whereas what I shared uses PaymentIntent/SetupIntent
for a custom flow
but if you're integrating subscriptions
I would suggest starting with this guide https://docs.stripe.com/billing/subscriptions/build-subscriptions
the problem is you're not providing a returnURL , that is required on iOS for most payment methods to appear.
I am trying on android for now. On android also I am not getting iDEAL payment option.
I have subscriptions already setup & configured on the dashboard. Also, when I show payment sheet in my app, I get "card" option which works just fine.
I can enter test card details and subscription goes through.
do you have iDEAL turned on in your Invoice settings?
https://dashboard.stripe.com/test/settings/billing/invoice Default payment terms
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have iDEAL turned on in my payment methods on the stripe dashboard
Sorry. I do not have access to the dashboard.
Is this something that you could check from your end?
I could but ultimately you'd need to fix is so you should get access
When I call "createIntent", the response I receive has "iDEAL" as one of the payment_method_types.
this is what I get
payment_method_types: [ 'card', 'bancontact', 'ideal', 'link' ],
This are the steps that I follow in my app
- first, create setupIntent. Get customer id & client secret
- call initPaymentSheet and pass this client secret & customer id.
- then call presentPaymentSheet
does the version of this third party flutter library you're using support iDEAL for SetupIntents?
I am using flutter_stripe. Is this not an official package?
Is there an official flutter package available from stripe which supports iDEAL
no, we don't officially support flutter, only iOS/Android/ReactNative
The package I am using supports iDEAL payments
werd, not sure then.
my best guess is you're mistaken and it doesn't support this, I know we had some versions of our mobile SDKs(which that Flutter library 'wraps') where support didn't work and maybe you're using a version of that library that's using an old version of our SDK.
You might also need a allowDelayedPaymentMethods=true option, is that in the docs for your flutter library?
and also as I said, you need a returnURL for this to work on iOS, in any case
@modest prairie checking in here, are you passing allowDelayedPaymentMethods param when initialising the Payment Sheet? Reference in our docs here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&mobile-ui=payment-element#react-native-collect-payment-details
Can't see it in the code you shared, and unclear if the Flutter SDK has support for that
Ok. So, I have made small progress.
I have added this now. And also updated customFlow to true. After making these changes on the Frontend, I can see iDEAL option on the payment sheet now.
Great!
However, I am not able to proceed further. In the sense that when I enter full name and email and select bank and click on continue, nothing seems to be happening
Are there any errors or logs?