Automate the Checkout process
Creating Checkout Sessions
npm install @orbitalpay/backendconst client = new OrbitalPayBackendClient(process.env.privateKey!, process.env.publicKey!);
const amount = 3.14;
const description = "Trying out the Backend SDK";
// Create a new checkout session
const checkout = await client.createCheckoutSession(amount, description);{
success: true,
data: {
// Note that the amount is the value you entered times 10^6
// This is a standard precision conversion we do to deal with USDC amounts
// Divide the amount by 1e6 for the dollar value
amount: 3140000,
details: 'Trying out the sdk',
token: 'USDC',
// this is the transactionId you will use in the frontend SDK
transactionId: 'mrc_2025-xxxx_xxxx_xxxx',
timestamp: 1744107706053,
requesterWallet: '0x<your wallet address>',
status: 'pending',
type: 'merchant',
emailLinked: false,
expirationTimestamp: null,
txhash: null,
callbackUrl: '<your callback url>'
}
}Fetching Checkout Sessions
Integrating Orbital Gateway on your Frontend

Last updated