Ssentezo Developers
Sandbox and production use the same API host. The organization status, SANDBOX or LIVE, is the environment. This portal does not simulate a successful payment when a call fails.

Framework ยท React

React Beta

Hook and form that talk only to your server. The API key never reaches the browser.

Version0.1.0
CompatibilityReact 17+. Plain ES modules, no build step.
Installnpm install from integrations/react-ssentezo together with integrations/node-sdk on the server. Not published on npm.
Sourceintegrations/react-ssentezo
LicenseMIT
SandboxSandbox is the organization status on the wallet. In sandbox mode the client refuses the production host, requires sandboxHostVerified, and accepts only 256770000001 to 256770000004. Live mode requires allowLivePayments.

Supported in this version

  • useSsentezoPayment hook
  • Unstyled SsentezoPayForm
  • Polling with timeout and cleanup
  • Browser sends only the phone number
  • Example node:http server
  • End-to-end test against a fake API

Install

  1. Install integrations/node-sdk on your server and integrations/react-ssentezo in your React app.
  2. Add a pay route and a status route on your server. example/app.mjs is a working reference.
  3. Render <SsentezoPayForm startUrl statusUrl onPaid />, or build your own UI with useSsentezoPayment.

Checkout

The browser posts only the phone number. Your server loads the amount from the stored order and calls the API. The form polls your status route, which calls the status API. A browser state of paid only reflects what your server confirmed.