Bitcoin payments, in a few lines
Accept M-Pesa or Airtel Money and settle your users in Bitcoin over the Lightning Network, starting at KES 10. One API key, no custody.
Build the entire thing for free first. The sandbox is instant, needs no approval, and moves no money — you only talk to us when you want to go live.
// One call. No OTP — your API key already identifies you.
const res = await fetch("https://bitikaserver.up.railway.app/api/v1/xwift/collect", {
method: "POST",
headers: {
Authorization: `Bearer ${KEY}`, // bk_test_9f2c4a71e05b83d6
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
amount: "100", // KES
phone: "254712345678", // no +, no leading 0
lightningAddress: "name@blink.sv", // where the sats land
}),
});
// → { transaction_code: "SBX-1A2B3C4D", status: "processing" }
// Your webhook receives the result — signed, no polling:
// transaction.updated → payment.completed