#BRData
1 messages ยท Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
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.
Yes exactly, so how do I check if the hold was placed successfully using the Payment intent ID?
Without using a webhook
In .NET
Without successful hold, the payment method would still be in requires_payment_method status
Is there a way to check a payment intent ID status?
That's what synthrider meant by look at the confirmation call response.
You get PaymentIntent object returned once the confirmPayment function succeeds
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.
Gotta run -- but you might just be looking for status=requires_capture in this case: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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?
Oh, with the retrieve API: https://stripe.com/docs/api/payment_intents/retrieve?lang=dotnet