Stripe presentWithSetupIntent does not show the PaymentSheet for SetupIntents

Viewed 395

I've tested the Stripe's PaymentSheet for PaymentIntents, passing the payment intent client secret, the customer id and the ephemeral key. I succeeded on closing a payment, both with and without the bank verification step.

I'm trying to use the SetupIntent because I need to authorize now a payment but to bill users in the future. So I've generated a scheduled subscription for a customer and obtained a setup intent client secret.

My problem is, when I call

paymentSheet.presentWithSetupIntent(
    setupIntentClientSecret,
    PaymentSheet.Configuration(
        merchantDisplayName = Constants.MERCHANT,
        customer = PaymentSheet.CustomerConfiguration(
            customerId,
            ephemeralKeySecret
        )
    )
)

I see the payment sheet coming out from the bottom with only an infinite progress bar, as if the setup intent was invalid.

0 Answers
Related