#Deekshant-cards
1 messages · Page 1 of 1 (latest)
@hearty yacht not really no, that's not how payments work
any payment attempt can be declined at any time, there's no way to guarantee anything. You'd just follow our guides for processing the payment and robustly handle any declines that happen!
then please help in that error when I hit confirmCardSetup Method why it gives me more permission error
can you paste the seti_xxx ID of that SetupIntent here so I can check logs?
Okay
can you share the full code you're using?
Client side REACT
const CardElement = elements.getElement(CardNumberElement)
const res = await stripe.confirmCardSetup('seti_1JhtgvSGF3AgxZ79Sjc3kaf7_secret_KMcwu6k789lx9Q04FJS7xPG2Q05f4Gj', {
payment_method: {
card: CardElement,
billing_details: {
name: 'Jenny Rosen',
},
},
})
can you share the full code?
especially how you use StripeProvider
the error really is just that you're using the wrong API keys , or do you pass stripeAccount for example? (you shouldn't pass it, since you don't seem to be using Connect)
No i did not pass any account id till now