This is a Small Transfers Next.js starter project. (See also the Small Transfers AI Starter.)
It was bootstrapped with create-next-app, and uses shadcn/ui for UI, iron-session for session management, and Zustand for client state management.
Create a merchant account at Small Transfers to obtain your publishable and secret keys.
Set the environment variables. For running locally, cp .env.example .env.local, then edit .env.local.
NEXT_PUBLIC_SMALL_TRANSFERS_BASE_URL: The base URL for your Small Transfers API calls. Defaults tohttps://test.smalltransfers.com. If deploying live, set tohttps://smalltransfers.com.NEXT_PUBLIC_SMALL_TRANSFERS_PUBLISHABLE_KEY: The publishable key for your Small Transfers account.SMALL_TRANSFERS_SECRET_KEY: The secret key for your Small Transfers account.IRON_SESSION_PASSWORD: The password to encrypt the session cookie. You can generate it with:node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"
Run the development server:
pnpm install && pnpm dev
# or
npm install && npm run dev
# or
yarn install && yarn dev
# or
bun install && bun devOpen http://localhost:3000 with your browser to see the result.
See the following Small Transfers resources:
Contributions are welcome! Feel free to submit a pull request.