Implement a backend for frontend
1
Read the catalog
Use a backend key with
digital_catalog:read.2
Apply an allowlist
Return only the required name, description, visible price, media, and
availability.
3
Add caching
Use ETag and a bounded expiration. Purge the cache after product changes.
4
Create charges in the backend
Resolve the SimplePay line item before creating Checkout.