Doug Docs

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/commerce

Entrypoints

Root

@caffeinebounce/commerce

View source

Notable exports

getStripeCheckoutFormCheckoutFormProps

Build targets

  • ./dist/index.d.ts
  • ./dist/index.js
  • ./dist/index.mjs

Server

@caffeinebounce/commerce/server

View source

Notable exports

CENTS_PER_DOLLARcalculateNetAmountcalculatePlatformFeecentsToDollarsdollarsToCentsPLATFORM_FEE_PERCENTcreateRefundRefundReasongetStripe

Build targets

  • ./dist/server.d.ts
  • ./dist/server.js
  • ./dist/server.mjs

On this page