Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Hướng dẫn tích hợp trang Thanh toán cho Sohagame
  2. . Yêu cầu: giao diện Mobile
  3.  
  4. Bước 1:
  5. Cấu hình trên form kịch bản với đường dẫn của trang thanh toán.
  6.  
  7. Bước 2:
  8. ChatBot sẽ gửi 1 params dạng JSON qua method GET
  9. data_callback={
  10. "callback_url":"https://webhook.zamba.vn/api/callback",
  11. "attribute":{"phone":"","email":""},
  12. "data":{"sender_id":"__SENDER_ID__","project":"__PROJECT_TOKEN","fanpage_id":"__FANPAGE__ID__","list_payload":["NEXTPAYLOAD"]}
  13. }
  14.  
  15.  
  16. Bước 3: Xứ lý trên Sohagame
  17. Sau khi thực thi thành công thanh toán bên Sohagame.
  18. Sohagame sẽ thay thế dữ liệu vào attribute tương ứng trong data_callback
  19.  
  20. Bước 4: Gửi dữ liệu sang chatbot
  21. 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)
  22. Gọi sang dạng POST, data là json data_callback.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement