#votsircp-subscriptions
1 messages · Page 1 of 1 (latest)
@noble cape are you looking at it on the frontend(like the response of confirmCardPayment?) charges is not returned on the frontend, you have to look at the PaymentIntent on a backend with a secret key instead.
yes, frontend, as the result of calling confirmCardPayment
ah, i see
hmmm, how do i get such key?
well you already have one(since you used it to create the Subscription object on your backend server).
I'm not sure what specific information you want from the charges array, but generally your frontend would e.g. send the pi_xxx PaymentIntent ID to your backend, which can call https://stripe.com/docs/api/payment_intents/retrieve and then return back whatever information your frontend is looking for.