@mr.dj2u/mercury
v0.1.0
Published
Standalone Mercury API SDK extracted from Time2Pay
Readme
@mr.dj2u/mercury
Incubating Mercury SDK for the Time2Pay workspace.
This package is intentionally server-first. The Expo app consumes it behind /api/mercury while the API surface stabilizes for extraction into a standalone repository later.
Contract Tests (Mercury test environment)
Run contract tests against Mercury's test environment with:
npm run test:mercury:contractRequired variables:
MERCURY_CONTRACT_RUN=trueMERCURY_SANDBOX_API_KEY=...
Optional variables:
MERCURY_SANDBOX_BASE_URL(defaults to Mercury test URL)MERCURY_CONTRACT_AR_ENABLED=trueto enable customer/invoice create checksMERCURY_CONTRACT_DESTINATION_ACCOUNT_IDif account auto-selection is not desiredMERCURY_CONTRACT_TRANSFER_PAYLOAD_JSONfor transfer create validationMERCURY_CONTRACT_SEND_MONEY_ACCOUNT_IDandMERCURY_CONTRACT_SEND_MONEY_PAYLOAD_JSONfor send-money validation
