1. Install the SDK
npm install @tineon/t9n
# or
pnpm add @tineon/t9nEverything you need to accept crypto from customers and settle in Naira directly into your recipient accounts with a single integration.
Install the SDK, initialize checkout in your UI, then open the injected checkout modal. All keys, recipients, and settlements are managed in the merchant dashboard.
npm install @tineon/t9n
# or
pnpm add @tineon/t9nimport { initializeT9n } from "@tineon/t9n";
const checkout = initializeT9n({
publicKey: "pk_live_xxx",
amountNgn: 35000,
currencies: ["BTC", "ETH", "TRX"],
customer: { email: "buyer@example.com", name: "Ada", reference: "order-123" },
metadata: { orderId: "order-123" },
onSuccess: (payload) => {
console.log("paid", payload.reference);
},
onClose: () => {
console.log("checkout dismissed");
}
});
checkout.open();When you call checkout.open(), the SDK creates the session automatically
using your public key and payload. You don't need to create a session manually
unless you want server-side control.After checkout opens, the customer completes the transfer on-chain and Slimepay verifies the deposit before releasing settlement to the merchant recipient.