#vaibhav_unexpected

1 messages ยท Page 1 of 1 (latest)

icy blazeBOT
wild zodiacBOT
#

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.

icy blazeBOT
#

๐Ÿ‘‹ 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.

slow bobcat
#

๐Ÿ‘‹ happy to help

#

would you mind sharing the more information please?

#

how are you integrating with Stripe? any IDs that I could look at ?

modest prairie
#

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.

slow bobcat
#

can you please share a PaymentIntent ID please?

modest prairie
#

I am creating a setupIntent. Not a payment intent

slow bobcat
#

ok would you mind sharing that ID?

modest prairie
#

I do not have access to stripe dashboard. Is there any other way I can get it?

slow bobcat
#

you can find the request ID from the backend when you call the create SetupIntent

#

or even the SetupIntent ID

modest prairie
#

sure. give me few mins

slow bobcat
#

take your time

modest prairie
#

here is the id - seti_1PM5bFFTe71TnU79HvB3Qfvt

#

@slow bobcat

slow bobcat
#

ok and would you mind sharing your code/view on the mobile app?

modest prairie
#

do you want a screenshot of the payment screen?

slow bobcat
#

yes please

modest prairie
#

here you go

slow bobcat
#

and the code for your payment sheet

#

on the front-end

modest prairie
#

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

slow bobcat
wild zodiacBOT
modest prairie
#

i have a subscription to sell in my app

slow bobcat
#

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

mild crest
#

the problem is you're not providing a returnURL , that is required on iOS for most payment methods to appear.

modest prairie
modest prairie
#

I can enter test card details and subscription goes through.

icy blazeBOT
mild crest
#

do you have iDEAL turned on in your Invoice settings?

modest prairie
#

I have iDEAL turned on in my payment methods on the stripe dashboard

modest prairie
#

Is this something that you could check from your end?

mild crest
#

I could but ultimately you'd need to fix is so you should get access

modest prairie
#

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

  1. first, create setupIntent. Get customer id & client secret
  2. call initPaymentSheet and pass this client secret & customer id.
  3. then call presentPaymentSheet
mild crest
#

does the version of this third party flutter library you're using support iDEAL for SetupIntents?

modest prairie
#

I am using flutter_stripe. Is this not an official package?

#

Is there an official flutter package available from stripe which supports iDEAL

mild crest
#

no, we don't officially support flutter, only iOS/Android/ReactNative

modest prairie
#

The package I am using supports iDEAL payments

mild crest
#

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

icy blazeBOT
fleet helm
#

Can't see it in the code you shared, and unclear if the Flutter SDK has support for that

modest prairie
#

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.

fleet helm
#

Great!

modest prairie
#

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

fleet helm
#

Are there any errors or logs?

modest prairie
#

Ok. I have it working now.

#

Guys, thanks a lot for all your help n support. Means a lot. ๐Ÿ™