#mr_stinky_pants
1 messages · Page 1 of 1 (latest)
hi there!
by listening to the payment_intent.succeeded webhook event
you can learn more about webhooks here: https://stripe.com/docs/webhooks
i mean this is calling the api which i have done
i just realised i am geting the date created not paid
so need to update it
I don't understand your question, sorry
can you give a concrete example of the issue?
you could check the created property, which tells you when the PaymentIntent was created: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-created
yes i did that already
what i need is when it was paid not created
people sometimes pay late
Hey! Taking over for my colleague. I'm not sure I udnerstand what you mean here exactly ?
Could you please share more details ? with a concrete example ?
i have a payment intent and i need to get the date it was paid?
You can refer to the latest_charge object:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
Then you check its created field
cool cheers
getting like this?
var paymentIntentSearchOptions = new PaymentIntentSearchOptions
{
Query = "status:'succeeded' AND created>'" + fromdateTicks + "'",
};
paymentIntentSearchOptions.AddExpand("data.customer");
paymentIntentSearchOptions.AddExpand("data.latest_charge");
yes that should work
👍