#FrancescaM

1 messages · Page 1 of 1 (latest)

autumn quartzBOT
reef plaza
#

Are you following a specific guide from our docs? What is a 'customer payment sheet'?

opal abyss
#

Hello, I'm using this guide

reef plaza
#

When you say 'can't use', what does that mean exactly? Is there any error you're encountering? Does the class/method not exist?

opal abyss
#

yes, exactly. The method doesn't exist

reef plaza
#

Which version of stripe-android are you using? Can you share the code you're struggling with?

opal abyss
#

I'm using this version "com.stripe:stripe-android:20.17.0"

reef plaza
#

Can you share the code you're using where you can't call the configure method?

opal abyss
#

PaymentSheet.FlowController flowController;

    final PaymentSheetResultCallback paymentSheetResultCallback = paymentSheetResult -> {
        onPaymentSheetResult(paymentSheetResult);
    };

    flowController = PaymentSheet.FlowController.create(
            this,
            paymentOptionCallback,
            paymentSheetResultCallback
    );

    flowController.configure(
            paymentIntentClientSecret,
            new PaymentSheet.Configuration(
                    "Example, Inc.",
                    new PaymentSheet.CustomerConfiguration(
                            customerId,
                            ephemeralKeySecret
                    )
            ),
            (success, error) -> {
                if (success) {
                    flowController.getPaymentOption();
                } else {
                    // handle FlowController configuration failure
                }
            }
    );
reef plaza
#

And the error from your IDE/compiler?

opal abyss
#

No candidates found for method call flowController.configure

#

Maybe I have to use the function configureWithPaymentIntent

reef plaza
#

Let me check with a colleague on this!

opal abyss
#

ok thank you

glad birch
opal abyss
#

I have to try this function; I found it in PaymentSheet.kt class

#

thank you

glad birch
#

yeah ok it is definitely flowController.configureWithPaymentIntent(

#

the docs are just wrong unfortunately

opal abyss
#

ok perfect, thank you for the helo