#bhavi-evrig

1 messages · Page 1 of 1 (latest)

crude horizonBOT
tiny torrent
#

stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: cardElement,
billing_details: {
name: name
}
}
}).then(function(result) {}
Sometimes its giving response in taht sometiems not

elder canyon
#

Incomplete is the default status for a payment. Seeing those in your dashboard just means that you created a payment intent but it wasn't confirmed for one reason or another. For example if you create the payment intent but the user leaves your site without paying that payment will stay incomplete in your dashboard

#

You can delete those payment intents after a certain amount of time if you don't want them to show up in your dashboard. Otherwise they are pretty harmless

tiny torrent
#

I am just testing sibscriptions

#

How to confirm the payments?

elder canyon
#

That code should work, just need to call it on the client secret of your subscription's first invoice's payment intent

#

Is that what you are already doing for those successful payments?

tiny torrent
#

yes

#

Same for both

#

In doc its showng like we needt o put spinner becs its taking time to response

#

But sometimes its never complete?

elder canyon
#

Not necessarily

#

That is a separate thing

tiny torrent
#

Is there any alt way to confirm the payment?

elder canyon
#

That seems like that isn't the issue here

#

One sec, finding a doc to clear this up

#

So your payment intents are likely in a requires_payment_method state

#

So that means that either:
a) you have not attempted payment on these intents
b) you attempted payment but it did not succeed, so the payment returned to its default state

#

So in both of those scenarios there is nothing to wait on, the dashboard is just showing you that you created some payment intents and one way or another they aren't confirmed right now.

tiny torrent
#

Here I have passed card and it took the card and show the payment status as succeed when i attempt to call the confirm payment method

#

in another payment card did not taken and then its showing ion complete

#

Why this happen?

elder canyon
#

Can you send me the ID of that second payment? (pi_123)

#

Also is it clear what I am saying? That sometime "Incomplete" means the payment wasn't attempted, and sometimes it means that previous attempts failed?

tiny torrent
#

yes got it

#

pi_3MKQAPSAAimMgft91ddupbmr - incomplete

#

pi_3MKQaLSAAimMgft91RFYYb2e - succeed

elder canyon
#

So pi_3MKQAPSAAimMgft91ddupbmr is incomplete because there are no attempts to pay it

#

This is the first scenario I was talking about

#

So under the "events and logs" section, you can see that the payment intent was created but there aren't any attempts to confirm it

#

Unfortunately I can't tell why from here, that is more a thing on your side. Like maybe the person never clicked through the page to make the payment

tiny torrent
#

ok

#

Got it