import { 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();