UseroutrCheckout playgroundtestnetDocs

Compose a funding request, then pay it through the real checkout with any asset this deployment carries. Nothing here is mocked.

Your request

XLM

Funding is received on Stellar today. Other networks this deployment carries are listed and will become destinations when the platform accepts them.

Creating the request registers it on the Useroutr protocol and provisions a deposit account. That takes about ten seconds.

Integration

two files
import { Useroutr } from "@useroutr/sdk";

const useroutr = new Useroutr({ apiKey: process.env.USEROUTR_API_KEY });

export async function createRequest(orderId: string) {
  const intent = await useroutr.fundingIntents.create(
    {
      amount: "20",
      asset: "asset_xlm_stellar",
      destination: {
        network: "stellar",
        asset: "asset_xlm_stellar",
        address: "GDUFUU2ZCOMQLLDAVGI2MELWJC2Y3MPMBIBYG6NEUHKS4S2BFDASGVVY",
      },
      reference: orderId,
    },
    { idempotencyKey: orderId },
  );

  // The token is the only thing the browser needs, and the only thing it gets.
  const url = intent.hosted_funding_url ?? "";
  return url.slice(url.lastIndexOf("/") + 1);
}

Progress

Progress appears once a request exists.

Ways to pay it

6 rails on this deployment
AssetPayer sendsFeeTimeStatus
XLMStellar———Not priced yet
USDCStellar———Not priced yet
URTStellar———Not priced yet
USDCBase———Not priced yet
WETHBase———Not priced yet
URTBase———Not priced yet