#mudassir.dev
1 messages · Page 1 of 1 (latest)
The value could just be wrong. Have you check what value it has?
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
Okie, how are you passing in iOS?
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
It should be compatitible. I think there is issue with iOS code. Can you share the iOS code here?
@pale delta
'
paymentIntentClientSecret: paymentIntentClientSecret
This part
It should use setupIntentClientSecret parameter instead
Hey @pale delta that worked. Thanks alot