#Mr NJIFANDA

1 messages · Page 1 of 1 (latest)

jade moonBOT
dreamy tree
tough harbor
#

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

dreamy tree
#

Sorry, not sure I follow.
Can you share an example of what you're sending and what you're receiving?

tough harbor
#

{
"payment_intent": "pi_3LvknjBE7pDCu6G71jtDQJC1",
"payment_intent_client_secret": "pi_3LvknjBE7pDCu6G71jtDQJC1_secret_XLhb0ce6rMRgCH1Q4JSXrCSJa",
"redirect_status": "succeeded",
"id_transaction":"1-OOCF-3551949723200197510368695"
}

dreamy tree
#

Is that what you're sending?

#

Also, I don't think this property is coming from Stripe
"id_transaction":"1-OOCF-3551949723200197510368695"

tough harbor
#

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?

dreamy tree
#

yup

#

its the one that I shared above

tough harbor
#

Okay thank.