Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hướng dẫn tích hợp trang Thanh toán cho Sohagame
- . Yêu cầu: giao diện Mobile
- Bước 1:
- Cấu hình trên form kịch bản với đường dẫn của trang thanh toán.
- Bước 2:
- ChatBot sẽ gửi 1 params dạng JSON qua method GET
- data_callback={
- "callback_url":"https://webhook.zamba.vn/api/callback",
- "attribute":{"phone":"","email":""},
- "data":{"sender_id":"__SENDER_ID__","project":"__PROJECT_TOKEN","fanpage_id":"__FANPAGE__ID__","list_payload":["NEXTPAYLOAD"]}
- }
- Bước 3: Xứ lý trên Sohagame
- Sau khi thực thi thành công thanh toán bên Sohagame.
- Sohagame sẽ thay thế dữ liệu vào attribute tương ứng trong data_callback
- Bước 4: Gửi dữ liệu sang chatbot
- Sau khi đã thay thế xong dữ liệu attribute, sohagame sẽ đẩy dữ liệu data_callback vào api được cung cấp (callback_url)
- Gọi sang dạng POST, data là json data_callback.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement