#Mr NJIFANDA
1 messages · Page 1 of 1 (latest)
Hello 👋
It depends on what API you're using. If you're using PaymentIntents API then you can use the retrieve endpoint
https://stripe.com/docs/api/payment_intents/retrieve
I implemented the rest api
The problem is that the callback comes with a status and the callback route can be called by anyone in GET
So I wanted to use the transaction id to directly check the payment status at the stipe level and not in the calback data
Sorry, not sure I follow.
Can you share an example of what you're sending and what you're receiving?
{
"payment_intent": "pi_3LvknjBE7pDCu6G71jtDQJC1",
"payment_intent_client_secret": "pi_3LvknjBE7pDCu6G71jtDQJC1_secret_XLhb0ce6rMRgCH1Q4JSXrCSJa",
"redirect_status": "succeeded",
"id_transaction":"1-OOCF-3551949723200197510368695"
}
Is that what you're sending?
Also, I don't think this property is coming from Stripe
"id_transaction":"1-OOCF-3551949723200197510368695"
is my internal transaction id
{
"payment_intent": "pi_3LvknjBE7pDCu6G71jtDQJC1",
"payment_intent_client_secret": "pi_3LvknjBE7pDCu6G71jtDQJC1_secret_XLhb0ce6rMRgCH1Q4JSXrCSJa",
"redirect_status": "succeeded",
}
Stripe has an endpoint I can call with pi_3LvknjBE7pDCu6G71jtDQJC1 to check the status of this transaction?
Okay thank.