Skip to main content
You will ask for 10 XLM, pay it on the Stellar testnet and watch your app get credited. Everything runs in the sandbox, so no real money moves.
You need: Node.js 20 or later, or anything that can send an HTTP request. No crypto experience is needed. If Stellar is new to you, Stellar basics is a five minute read.
1

Create an account and an application

Sign up at the sandbox dashboard, sandbox-dashboard.useroutr.com, verify your email and create your first application. An application is the product that receives the money: your store, your game, your SaaS. Home then shows a setup guide that ticks itself off as you go.
The sandbox has its own dashboard and its own accounts. dashboard.useroutr.com is production: its keys start with ur_live_ and move real money on Stellar mainnet.
2

Create a test API key

In the sandbox dashboard, open Developers → API keys and create a key. It starts with ur_test_, which points the SDK at the sandbox. The secret is shown once, so copy it now.
The dashboard's API keys page with a new key's secret shown once, starting ur_test_, and a Copy button

Developers → API keys → Create API key

.env
An API key belongs on your server. Never ship it to a browser or a mobile app.
3

Install the SDK

Not using Node.js? Skip this step and follow the cURL tabs below.
4

Choose where the money goes

Settled money goes to a Stellar account you control, called your destination. For this test, make a free testnet account:
  1. Open Stellar Lab and switch the network to Testnet.
  2. Generate a keypair and fund it with Friendbot, which gives new testnet accounts free test XLM.
  3. Copy the public key, the one starting with G. Keep the secret key, starting with S, to yourself.
  4. In the dashboard, open Settings. Under Default destination, paste the public key, choose XLM as the asset and save.
Settings, Default destination: a Stellar destination account and the asset it receives

Settings → Default destination. This one receives USDC; pick XLM for the quickstart.

This quickstart asks for XLM because every Stellar account can hold it. To receive USDC, the account needs a trustline first.
5

Ask for 10 XLM

A funding intent asks for an exact amount of an exact asset. The makes the call safe to retry.
Output
The intent starts CREATED and becomes AWAITING_PAYMENT within seconds, once it is registered on the Useroutr protocol.
6

Pay it

Open the hosted_funding_url from the output. The page shows exactly what to send and where.
The checkout showing: send exactly 10 XLM to a Stellar address, with the time left to payThe checkout showing: send exactly 10 XLM to a Stellar address, with the time left to pay

The hosted checkout, waiting for the payment

Send 10 testnet XLM to that address from a second testnet account: make one in Stellar Lab and fund it with Friendbot, as before. Any wallet switched to testnet works, or build a payment in Stellar Lab, sign it with that account’s secret key and submit it. No memo is needed: the address belongs to this intent alone.
7

Watch it get credited

Useroutr detects the payment, verifies it, settles it to your destination and credits your ledger. The page updates on its own, and on testnet this usually takes under a minute.
The checkout showing: payment successful, 10 XLM paid on Stellar

Paid and credited

The payment, the settlement and the credit are in the dashboard too: open Funding intents and click the intent. In a real integration, you would receive a webhook instead of asking.
A credited funding intent in the dashboard, with its progress from Created to Credited, its confirmed settlement and its checkout link

Funding intents → click an intent

What just happened

Five steps: you ask, they pay, verified, settled, credited.Five steps: you ask, they pay, verified, settled, credited.
You asked for value, a payment arrived on chain, Useroutr verified and settled it, and your ledger was credited. Every integration is this same path with a nicer front end. How it works walks through each step.

If something goes wrong

The key is for the other environment: a ur_live_ key on the sandbox, or a ur_test_ key on production. The SDK picks the environment from the key, so check that USEROUTR_BASE_URL is not set to something else.
Useroutr checks your destination before taking any payment. Its asset must be the asset you asked for, so for this quickstart the default destination’s asset must be XLM. The account must exist on testnet, so fund it with Friendbot, and to receive an issued asset such as USDC it needs a trustline for it. The error message says which.
You changed the request but kept the key. A key belongs to one request: use a new one, such as quickstart-2.
Check that you sent XLM, on testnet, to the deposit address on the page, before it expired (30 minutes by default). If you sent less than 10, the intent is PARTIALLY_FUNDED and waits for the rest. Your request logs show every call you made.

Next

Embed the checkout

Take the payment inside your app with the React component.

Handle webhooks

Fulfil orders the moment a payment is credited.

Go live

Four steps from the sandbox to real money.