#elliot_66740
1 messages · Page 1 of 1 (latest)
Hi there!
You need to retrieve the PaymentIntent from the backend for this to work.
On the frontend, only limited information is available for security purposes.
What is required when retrieving the PaymentIntent that will make latest_charge appear? I see the api documentation says using client_secret as the parameter will return a subset of properties, but it doesn't say what to use to retrieve all the properties.
There's not requirements. Just make sure you call stripe.paymentIntents.retrieve from your backend using a secret API key. https://stripe.com/docs/api/payment_intents/retrieve
If you look at this link: https://stripe.com/docs/api/payment_intents/object you can see for each property if it's available with a PUBLISHABLE KEY or not.
and latest_charge requires a secret key.
Ok. I'll go try this and ask again if I need more help. Thanks!