#rushikeshRL
1 messages ยท Page 1 of 1 (latest)
this statuses are present in the payments on the stripe dashboard, but they are not there if I get payment intent details using API.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the values are not matching that what I am trying to say. For the failed payment as well the API is returing as payment_method_required but on the stripe dashboard it is showing failed status. How to get failed status using API?
which Stripe API version are you using?
apiVersion: "2022-11-15",
If you check status feild of the payment Intent in the typescript , there also failed status is not present
the status failed won't be really on the PaymentIntent itself but rather on the latest_charge
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you would also need to see the charge object
if this https://stripe.com/docs/api/charges/object#charge_object-refunded is true than it is refunded
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but you'd also need to look at the https://stripe.com/docs/api/charges/object#charge_object-amount_refunded to see whether it was a partial refund
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@pallid mountain thank you very much for the help
sure let me know if you need any more help