A simple guide to integrate Web3 micropayments using Microflux API on Solana.
Microflux is a Web3 micropayment platform built on Solana, enabling developers and users to send and receive payments instantly with ultra-low fees. It supports Solana Pay, QR payments, and on-chain transparency — designed to make Web3 transactions fast and effortless.
Visit Microflux.fun and connect your Solana wallet (Phantom or Solflare). Once connected, you can start sending or receiving payments using our API or QR interface.
POST https://api.Microflux.fun/create-payment
{
"amount": 0.5,
"currency": "SOL",
"receiver": "YourWalletAddressHere",
"description": "Test payment from Microflux API"
}Response:
{
"status": "success",
"payment_id": "rp_83ndsk123",
"qr_url": "https://Microflux.fun/pay/rp_83ndsk123"
}GET https://api.Microflux.fun/verify-payment?payment_id=rp_83ndsk123
Response:
{
"status": "confirmed",
"signature": "5CtfJZ1yP...XYZ",
"timestamp": "2025-10-29T04:12:00Z"
}async function sendPayment() {
const response = await fetch("https://api.Microflux.fun/create-payment", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
amount: 0.1,
currency: "SOL",
receiver: "9rY4XcZtN1QvDf...",
description: "Web3 micropayment test"
})
});
const data = await response.json();
console.log("QR URL:", data.qr_url);
}import QRCode from "qrcode";
const paymentURL = "https://Microflux.fun/pay/rp_83ndsk123";
QRCode.toCanvas(document.getElementById("canvas"), paymentURL, function (error) {
if (error) console.error(error);
console.log("QR code generated!");
});@Microflux/sdk)