#mudassir.dev

1 messages · Page 1 of 1 (latest)

turbid cometBOT
pale delta
#

The value could just be wrong. Have you check what value it has?

oak stratus
#
          customer: user["stripeCustomerId"],
          payment_method_types: ["card"],
        });
        const clientSecret = setupIntent.client_secret;
        // create ephermal key
        const ephemeralKey = await stripe.ephemeralKeys.create(
          { customer: user["stripeCustomerId"] },
          { apiVersion: "2020-03-02" }
        );```
#

This is the code for generation

#

"clientSecret": seti_1NTfifJDsF3FhY2a1GzGIv7Q_secret_OGC6xKURqTcG2oIhcOBXhWLR6NQefll

#

This is the returned value

#

@pale delta

pale delta
#

Okie, how are you passing in iOS?

oak stratus
#

this is an API that returns these data, and this API is then used by an IOS dev to initialize PaymentSheet which is causing the error

#

Is a paymentSheet compatible with setup intents like this?

#

@pale delta

pale delta
#

It should be compatitible. I think there is issue with iOS code. Can you share the iOS code here?

balmy dust
oak stratus
#

@pale delta

balmy dust
pale delta
#

paymentIntentClientSecret: paymentIntentClientSecret

#

This part

#

It should use setupIntentClientSecret parameter instead

oak stratus
#

Hey @pale delta that worked. Thanks alot