@demystify/pay-react
v0.1.1
Published
React wrapper for Demystify checkout.
Readme
@demystify/pay-react
React components for Demystify checkout. A thin wrapper over
@demystify/pay-embed — same events, same security model.
Full guide: docs/48-UI-INTEGRATION.md.
npm install @demystify/pay-react reactNote on re-renders
Callbacks are held in a ref, so passing new inline handlers on a parent re-render does not tear
down and remount the iframe. Remounting mid-ceremony would restart a signature or a checkout the
user is halfway through — the component only remounts when the session's embedUrl or
embedOrigin actually changes.
The rule that outranks everything else
The onSuccess / onCompleted props move your UI. They are not proof. Settle ledgers and
file executed contracts on the webhook, which is signed, retried and idempotent.
Server rendering is safe: importing this package touches no DOM.
