วิธีสร้าง API Key สำหรับเชื่อมต่อกับ Zortout
How to Create an API Key for Website Integration
- เข้าสู่ระบบ Beam Lighthouse บนเดสก์ท็อป
Log in to Beam Lighthouse on desktop.
- ไปที่เมนู </> นักพัฒนา และเลือก API Keys ร้านค้าจะเห็นรายการ API Keys ทั้งหมดที่ถูกสร้างไว้
Go to the </> Developers menu and select API Keys. You will see a list of all created API Keys.
- คลิก สร้าง API Key
Click Create API Key.
- ใส่ชื่อ Key และคลิก Create
Enter a name for the key and click Create.
- คลิก Show และคัดลอก Key เพื่อนำไปใช้เชื่อมต่อกับเว็บไซต์
Click Show and copy the key to use for your website integration.
วิธีตั้งค่า Webhook
How to setup webhook
- ไปที่แท็บ Webhook
Go to the Webhook tab.
- คลิก สร้างการตั้งค่า Webhook กรอกข้อมูล Endpoint URL (https://) สำหรับรับ Webhook จากระบบ
Click Create Webhook Settings Fill in Endpoint URL (https://) to receive Webhooks from the system-
สำหรับ Zortout
https://{website_url}/wc-api/beamcheckout_order_webhook
-
-
คำอธิบาย เพื่อช่วยจดจำ
Description for easier reference
- ในส่วน Events ที่ต้องการใช้งาน ให้เลือก Event ตามด้านล่างนี้
Under Events, select the event as follow.- เลือก (Select): Purchase (V0) > purchase.succeeded (V0)
- จากนั้นคลิก สร้าง เพื่อบันทึกการตั้งค่า
Then click Create to save the configuration.
หมายเหตุ: บทบาทของผู้ใช้งานที่มีสิทธิ์ตั้งค่า API Key และ Webhook
คือบทบาทเจ้าของบัญชี (Account Owner), นักพัฒนา (Developer)
และบทบาทที่กำหนดเอง (Custom Roles)