This directory is the repo-local merchant integration example for OpenCashier.
It covers:
- create order through the official Node SDK
- redirect the browser to
cashierUrl - verify merchant notifications from OpenCashier
- query the order again on the result page
- optionally bootstrap one app-scoped provider config before the HTTP server starts
Use public docs as the main onboarding path:
Those pages are the source of truth for:
- required
.envfields - how to fill
quickstart.config.jsonc - provider-specific startup requirements
- first-run troubleshooting
cp examples/merchant-quickstart/quickstart.config.example.jsonc examples/merchant-quickstart/quickstart.config.jsonc
pnpm check:merchant-quickstart
pnpm dev:api
pnpm dev:merchant-quickstartOpen http://127.0.0.1:4100.
pnpm dev:merchant-quickstartruns a provider-aware preflight before the server starts.bootstrapProviderConfig=truemakes quickstart sync the active provider config into the target merchant app scope through:PUT /api/v1/admin/merchants/:appId/platform-configsPOST /api/v1/admin/merchants/:appId/platform-configs/:configKey/validatePOST /api/v1/admin/merchants/:appId/platform-configs/:configKey/activate
- The default
alipay_pagepath does not requireapps/web. apps/webis still useful when you switch to QR-based channels such asalipay_qr, or when you want to manage provider config manually in the UI instead of letting quickstart write it.- If you want the UI path, run
pnpm dev:weband set"bootstrapProviderConfig": falseinquickstart.config.jsonc.
Recommended reading order:
src/main.tssrc/config.tssrc/server.tssrc/client.ts
Supporting files:
quickstart.config.example.jsonc.gitignoresrc/store.ts