#Manju
1 messages · Page 1 of 1 (latest)
👋 happy to help
you can use the Insufficient Funds decline card 4000000000009995.
please note that this card you cannot attach to a customer though
Yeah that's the problem. I want card which need to attach to customer. It should fail in preauth.
Can you help me on that we need that scenario.
there's the Decline after attaching card
It didn't fail in preauth.
pre auth get success. When I try capture that amount thenonly it get fail.
code snippet :
paymentIntent = await stripe.paymentIntents.create({
amount: 2500,
currency: "usd",
payment_method_types: ["card"],
capture_method: "manual",
payment_method: paymentMethodId,
customer: customerId,
metadata: {
userId: userId,
},
})