#thekents
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you point me to where you're seeing that the Price ID shouldn't be exposed publicly? Those aren't sensitive values and should be fine to use in your frontend code.
"Always keep sensitive information about your product inventory, such as price and availability, on your server to prevent customer manipulation from the client."
I think that is referring to price as in the amount rather than a Price object. You definitely don't want client-side code directly controlling the amount, as someone with javascript knowledge could impact that flow.
wouldnt amount reference PaymentIntent then, not CheckoutSession
but basically you're saying that having price ids saved in Firestore is fine?
PaymentIntents do use the amount parameter, Checkout Sessions can do so as well via the price_data hash. But yes, it should be fine to use Price IDs, they can't be adjusted or altered without access to your secret API key or your Stripe dashboard, so customers can't interfere with those.