@useroutr/checkout-react is the same checkout as the hosted page, as a React component. It
opens as a modal or renders inline, shows your user what to send and follows the payment to
completion. Your API key never touches the browser: the component needs only the intent’s
funding token.

The checkout opened as a modal over an app's own page
1
Create the intent on your server
The amount is yours to decide, so decide it where your user cannot change it. Return only the
funding token, the last segment of
hosted_funding_url.app/actions.ts
2
Render the checkout
app/pay-button.tsx
https://api.useroutr.com/v1/public in production.3
Fulfil on the webhook
onSuccess is for your interface: close the modal, show a thank-you. Fulfil the order on
your server when the funding.credited webhook arrives. It is signed, and
it reaches you even if your user closes the page before the payment completes.Props
Where the checkout’s public endpoints live:
https://sandbox-api.useroutr.com/v1/public
or https://api.useroutr.com/v1/public. They answer any origin, so you do not need to proxy
them.Override your saved branding for this checkout:
brandColor, logoUrl, radius and
fontFamily. See Branding.Lets your user pay from a connected Stellar or EVM wallet instead of copying an address. Pass a
connector from
@useroutr/checkout-wallets, or wrap a wallet your app already connects. See
Pay from a wallet.Called once, when the funding intent is credited, with the payer’s view of the intent.
Called once, when the checkout cannot complete: the intent failed, expired or cannot be loaded.
Pay from a wallet
Your user can connect a wallet and approve the payment in it. It is the same transfer to the same deposit address as paying by hand, so detection, settlement and your webhook do not change.- Stellar wallets (MetaMask, Freighter, xBull, LOBSTR and others): Useroutr builds the payment for their account and sends it once their wallet has signed it.
- EVM wallets (MetaMask, Rabby, Coinbase Wallet and any other browser wallet): your user picks one of the EVM networks the payment options include, the one their wallet is already on first. The checkout asks the wallet to switch to that network, checks that it did, and the wallet sends the token transfer itself.
WalletConnector from @useroutr/checkout-core around it, so they pay without
connecting twice.