#CapsAdmin
1 messages · Page 1 of 1 (latest)
Not with your secret key, no. You'd use Stripe.js (https://stripe.com/docs/js/payment_intents/retrieve_payment_intent), which would return the pi_xxx ID
the clientSecret id from creating a payment intent. But this looks like what I want, however I'm not sure where that function is in the api (can't find it when searching through the typescript definitions)
is this on the client api?
Yes, this is via Stripe.js. It's a convenience wrapper function, the underlying action (to lookup a PI via client_secret) is not exposed elsewhere in API
i was under the impression that a paymentid should not be exposed on client, only client secret, but i'm probably wrong
Nope, the pi_xxx ID is safe to share
alright, thanks for the help!