#FrancescaM
1 messages · Page 1 of 1 (latest)
Are you following a specific guide from our docs? What is a 'customer payment sheet'?
When you say 'can't use', what does that mean exactly? Is there any error you're encountering? Does the class/method not exist?
yes, exactly. The method doesn't exist
Which version of stripe-android are you using? Can you share the code you're struggling with?
I'm using this version "com.stripe:stripe-android:20.17.0"
Can you share the code you're using where you can't call the configure method?
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
}
}
);
And the error from your IDE/compiler?
No candidates found for method call flowController.configure
Maybe I have to use the function configureWithPaymentIntent
Let me check with a colleague on this!
ok thank you
possibly! does that work if you try it? I'm having a look into the issue but I only use Kotlin my apps, so maybe it's different in Java and our docs are slightly wrong
yeah ok it is definitely flowController.configureWithPaymentIntent(
the docs are just wrong unfortunately
ok perfect, thank you for the helo