Skip to main content
SDKAPI
Wallet payments in the embedded checkout

New sandbox addresses

The sandbox moved to https://sandbox-api.useroutr.com, with its dashboard at sandbox-dashboard.useroutr.com and its hosted checkout at https://sandbox-pay.useroutr.com. The old api.sandbox.useroutr.com names no longer answer. @useroutr/sdk 0.3.0 calls the new address for a ur_test_ key. With an earlier version, set baseUrl: "https://sandbox-api.useroutr.com" or USEROUTR_BASE_URL, and do the same for the embedded checkout’s baseUrl (https://sandbox-api.useroutr.com/v1/public). Sandbox accounts are separate from production ones: create test keys in the sandbox dashboard and live keys at dashboard.useroutr.com.

How a network writes addresses

Every asset in GET /v1/assets now has address_format: stellar when a destination on its network is a Stellar account, evm when it is an EVM address. Check a destination’s address against it before you create an intent, instead of deciding per network yourself; see Address formats. Formats are added as Useroutr reaches networks that write addresses another way. @useroutr/types and @useroutr/sdk type the field from the release after 0.2.0.

Which assets can be a destination

Every asset in GET /v1/assets now has destination: true when a funding intent can ask for it, false when your users can only pay with it. Every Stellar asset is a destination; an asset on another network is one when a cross-chain rail the deployment runs delivers it there. Filter on it instead of deciding which networks you can be paid on; see Assets and networks. @useroutr/types and @useroutr/sdk type the field from the release after 0.2.0.

Pay from a wallet

@useroutr/checkout-wallets is new. Pass its connectors to the embedded checkout’s wallets prop, and your user can pay from a Stellar wallet, a browser EVM wallet such as MetaMask or Rabby, or a wallet app on their phone over WalletConnect, instead of copying an address and an amount; see Pay from a wallet. Once a wallet connects, an option it cannot cover, the network fee included, is marked before your user chooses it.

Payment requests in the QR code

When your user pays by hand, the checkout’s QR code carries a payment request a wallet can read: SEP-7 on Stellar, EIP-681 on EVM networks, with the exact amount. The address is still written out beneath it.

0.2.0

@useroutr/sdk, @useroutr/checkout-react, @useroutr/checkout-core, @useroutr/types and @useroutr/checkout-wallets are published at 0.2.0. Upgrade them together: they depend on each other at exact versions.
API
Amounts outside a route's range

AMOUNT_OUT_OF_RANGE

Creating a quote now answers 422 AMOUNT_OUT_OF_RANGE when the only routes from the source asset cannot carry an amount of this size: a swap smaller than the liquidity provider can execute, or one larger than its pools can take without moving the price too far. Before, the same request answered NO_ROUTE_AVAILABLE. Offer another asset; see Errors.
SDKAPIDashboard
Official SDKs

Refunds on EVM networks

Payments made to a deposit address on Base, Arbitrum or Ethereum are now refunded on that network when they cannot fund the intent, or when something is left over; see Refunds. A refund’s destination.network names the network it is paid on. A payment recorded for such a refund can have a null transaction_hash and payer_address when no single transaction or sender can be named.

Official SDKs

@useroutr/sdk for Node.js and @useroutr/checkout-react for React are the recommended way to integrate. The SDK covers every endpoint in this reference.

Request logs

Every request made with an API key is now logged for 30 days, including requests rejected by validation. Find them under Developers → Logs in the dashboard, or with useroutr.requestLogs.list(). Bodies, headers and query strings are never recorded.

Branding

Upload a logo and set a brand colour, in the dashboard or with the SDK, and every checkout wears them. The embedded checkout can override them per page with appearance.

A new dashboard

Home now shows a setup guide, what was credited and how far your funding intents get. Funding intents open beside the list, the create page previews the checkout as you type, and assets are shown by their logo and network.