Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. /api/direct-payment
  2.  
  3. Params:
  4. key:2e63fe10682040bdcba8e66c38f2318d
  5. amount:1.0
  6. currency:USD
  7. product_id:testitem1
  8. product_name:test item 1
  9. ps:mycardcard
  10. sign_version:2
  11. uid:testuser1
  12. sign:6d06c9b025bbc1540ea515f26dd6ad33
  13.  
  14. Response
  15. {
  16. "type": "transaction",
  17. "id": "d65546579",
  18. "status": "pending",
  19. "ps": "mycardcard",
  20. "flow_data": {
  21. "step": 1,
  22. "action": "display_form",
  23. "form_data": {
  24. "card_id": {
  25. "title": "Card id",
  26. "description": "",
  27. "type": "text",
  28. "rules": {
  29. "required": true,
  30. "alpha_numeric": true,
  31. "exact_length": 16
  32. }
  33. },
  34. "card_password": {
  35. "title": "Card password",
  36. "description": "",
  37. "type": "text",
  38. "rules": {
  39. "required": true,
  40. "alpha_numeric": true,
  41. "exact_length": 16
  42. }
  43. }
  44. }
  45. }
  46. }
  47.  
  48. api/direct-payment/w117485957
  49.  
  50. Params:
  51. key:f29e7441a54debd44f903a2b7c40b15d
  52. data[card_id]:MCARCA0000004170
  53. data[card_password]:DT3GAE5CREATCRRE
  54. sign_version:2
  55. sign:4ab94527c6cbab45e9eb9703a822c281
  56. step:1
  57.  
  58. Response:
  59. {"type":"transaction","id":"w117487850","status":"completed","ps":"mycardcard"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement