Commerce Overview
@caffeinebounce/commerce covers the commerce surface, with a dedicated /server entrypoint for Stripe-backed flows that should stay out of client bundles.
Install
yarn add @caffeinebounce/commerceEntrypoints
Root
@caffeinebounce/commerce
Notable exports
getStripeCheckoutFormCheckoutFormProps
Build targets
- ./dist/index.d.ts
- ./dist/index.js
- ./dist/index.mjs
Server
@caffeinebounce/commerce/server
Notable exports
CENTS_PER_DOLLARcalculateNetAmountcalculatePlatformFeecentsToDollarsdollarsToCentsPLATFORM_FEE_PERCENTcreateRefundRefundReasongetStripe
Build targets
- ./dist/server.d.ts
- ./dist/server.js
- ./dist/server.mjs