#BRData

1 messages ยท Page 1 of 1 (latest)

frozen rainBOT
bitter musk
#

Hey ther,e either works, but if you're confirming using manual capture, you can:
1/ look at the confirmation call response
2/ handle the amount_capturable_updated event: https://stripe.com/docs/api/events/types#event_types-payment_intent.amount_capturable_updated
3/ retrieve the PI as you mention

gusty kraken
#

In .NET what would be the best way to check if a payment intent ID was a successful "payment" before it is captured?

#

Also a follow up question is what do you mean by Look at the confirmation call response?

livid maple
#

Hello ๐Ÿ‘‹

#

with capture_method set to manual we only authorize the card.
The authorisation succeeding means that a hold was placed on the payment method for that authorization amount.

gusty kraken
#

Yes exactly, so how do I check if the hold was placed successfully using the Payment intent ID?

#

Without using a webhook

#

In .NET

livid maple
#

Without successful hold, the payment method would still be in requires_payment_method status

gusty kraken
#

Is there a way to check a payment intent ID status?

livid maple
#

That's what synthrider meant by look at the confirmation call response.

You get PaymentIntent object returned once the confirmPayment function succeeds

gusty kraken
#

But that is on the frontend right?

#

I want to check the paymentintent status on the backend

#

Right now I have this:

#

ITs the create function but it is only called once when it loads not when the "pay now" button is hit.

bitter musk
#

That's how a payment intent would appear after the confirm successfully auth'd and it was awaiting capture

#

Hanzo can continue helping if that doesn't address what you're asking

gusty kraken
#

I'm just asking how to check a payment intent ID in .NET

#

If I have a payment intent ID stored in a string - how would I go about checking its status?

bitter musk
gusty kraken
#

Now just to be sure - if I want to capture this payment later the only thing I need is the payment intent ID right?

#

Do I also need the charge ID or just the payment intent ID?