Masala chai blend
Assam leaf, cardamom and clove. 250 g tin.
1.50 USDT
Small-batch tea and clay cups from Mumbai. There's no wallet to install and nothing to set up.
Assam leaf, cardamom and clove. 250 g tin.
Hand-thrown in Khurja. Set of 6.
Whole-leaf and caffeine free. 50 tea bags.
Chai Point is a separate website that installed @akhr2405/settle-pay. These 22 lines take a payment, and 6 more get it told by webhook. They are read from its own source files when the site is built. Every order lands in the merchant's Settle dashboard, where it can be refunded and exported.
AI agents shop here too. The last 7 lines let an agent buy with no account and no API key, paying over x402. It can read the catalog at /api/agent/catalog.
lib/settle.tsimport Settle from "@akhr2405/settle-pay";
export const settle = () =>
new Settle({
keyId: process.env.SETTLE_KEY_ID as string,
keySecret: process.env.SETTLE_KEY_SECRET as string,
businessName: "Chai Point",
});app/api/orders/route.tsconst order = await settle().orders.create({
amount: item.price,
description: item.name,
receipt: `chai-${Date.now()}`,
callbackUrl: new URL("/thanks", request.url).href,
});
return Response.json({ id: order.id });app/layout.tsx<Script src={`${process.env.SETTLE_BASE_URL}/checkout.js`} />components/buy-button.tsxnew window.Settle.Checkout({
orderId: () => createOrder(product),
handler: (response: Record<string, string>) =>
router.push(`/thanks?${new URLSearchParams(response)}`),
onError: () => setProblem("We couldn't start your order. Try again."),
}).open();app/thanks/page.tsxconst payment = await settle().payments.verify(response).catch(() => null);app/api/webhooks/settle/route.tsconst event = settle().webhooks.verify(
await request.text(),
request.headers.get("x-settle-signature"),
process.env.SETTLE_WEBHOOK_SECRET,
);
if (event.type === "order.paid") console.log("Ship order", event.data.receipt);app/api/agent/buy/route.tsconst sale = await settle().agents.charge(request, {
amount: (Number(item.price) * quantity).toFixed(2),
description: `${quantity} x ${item.name}`,
receipt: `chai-${requestId}`,
});
if (!sale.paid) return sale.response;
return sale.respond({ order: sale.receipt, proof: sale.proofUrl });