สร้าง QR Code สำหรับรับชำระเงินผ่าน PromptPay ได้ทันที ไม่ต้องติดตั้งแอพ ไม่ต้องลงทะเบียน สร้างฟรี ไม่มีค่าใช้จ่าย
<img src='https://www.pp-qr.com/api/image/0868776053/10' alt="QR Code" width={200} height={200} />
//
// CODE ตัวอย่าง สร้าง QR Code ผ่าน API (React)
//
export default function Home() {
const [qrCode, setQrCode] = useState("");
const promptpay = '0889977665';
const amount = 0;
const handleCreateQR = async () => {
const response = await axios.get(`www.pp-qr.com/api/${promptpay}/${amount}`);
if (response.status === 200) {
setQrCode(response.data.qrImage);
} else {
alert(response.data.error);
}
}
render (
<img src='qrCode' />
)
}
สร้าง QR Code ได้ทันที ไม่ต้องรอ
โอนตรงจากบัญชีต้นทาง ไปปลายทางทันที
ไม่ต้องติดตั้งแอพ ไม่ต้องลงทะเบียน