This repository contains the Stash Pay component package and a sample Next.js application demonstrating its usage.
The main React component package for integrating Stash Pay checkout published on npm.
See packages/stash-pay/README.md for package documentation.
A Next.js application demonstrating how to use the @stashgg/stash-pay package.
Sample App is also automatically published here.
Install all dependencies:
npm installRun the sample app in development mode:
npm run devThis will start the Next.js sample app at http://localhost:3000.
Build the package:
npm run build:packageBuild the sample app:
npm run build:sampleBuild everything:
npm run buildnpm run dev- Start the sample app in development modenpm run build- Build all workspacesnpm run build:package- Build only the @stashgg/stash-pay packagenpm run build:sample- Build only the sample app
For the sample app, create a .env.local file in the sample/ directory:
STASH_API_KEY=your_stash_api_key_here