JSON ข้อความ · Message objectflexlay-payment-request.json
{
"type": "flex",
"altText": "แจ้งชำระค่าบริการ ฿1,250.00 กำหนดชำระ 20 ธ.ค. 2569",
"contents": {
"type": "bubble",
"size": "kilo",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "xl",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "md",
"text": "แจ้งชำระเงิน",
"flex": 1,
"color": "#111827",
"weight": "bold"
},
{
"type": "box",
"layout": "vertical",
"flex": 0,
"paddingEnd": "8px",
"paddingTop": "2px",
"cornerRadius": "xl",
"paddingStart": "8px",
"paddingBottom": "2px",
"backgroundColor": "#F59E0B",
"contents": [
{
"type": "text",
"size": "xxs",
"text": "รอชำระ",
"align": "center",
"color": "#1F2937",
"weight": "bold"
}
]
}
]
},
{
"type": "text",
"size": "xs",
"text": "FitLab Studio · ค่าสมาชิกรายเดือน",
"color": "#5F6673",
"margin": "xs"
},
{
"type": "text",
"size": "xs",
"text": "ยอดที่ต้องชำระ",
"color": "#5F6673",
"margin": "xl"
},
{
"type": "text",
"size": "4xl",
"text": "฿1,250.00",
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "sm",
"text": "กำหนดชำระภายใน 20 ธ.ค. 2569",
"color": "#DC2626",
"margin": "xs",
"weight": "bold"
},
{
"type": "separator",
"color": "#EEF0F3",
"margin": "lg"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "เลขที่เอกสาร",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "PR-256912-0087",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "รอบบริการ",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "1–31 ธ.ค. 2569",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ชื่อลูกค้า",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "คุณศิริพร",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"spacing": "sm",
"paddingAll": "lg",
"paddingTop": "none",
"contents": [
{
"type": "button",
"color": "#2563EB",
"style": "primary",
"height": "md",
"action": {
"type": "uri",
"uri": "https://example.com/pay/PR-256912-0087",
"label": "ชำระเงิน"
}
},
{
"type": "button",
"style": "secondary",
"height": "sm",
"action": {
"type": "postback",
"data": "action=send_slip&doc=PR-256912-0087",
"label": "โอนแล้ว แจ้งสลิป",
"displayText": "โอนแล้ว ขอแจ้งสลิป"
}
}
]
}
}
}