You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.6 KiB

  1. # card on file
  2. * 保存卡号, recurring
  3. * creditType = cit
  4. ### Request
  5. ```json
  6. {
  7. "amount": "50",
  8. "callbackUrl": "https://exmaple.com/notify?transactionNo={transactionNo}&status={status}&amount={amount}&time={time}&reference={reference}&note={note}",
  9. "creditType": "cit",
  10. "currency": "USD",
  11. "description": "ae8d38bb057396f5e42882db0f176904",
  12. "ipnUrl": "https://exmaple.com/notify",
  13. "merchantNo": "202553",
  14. "note": "ae8d38bb057396f5e42882db0f176904",
  15. "reference": "ae8d38bb057396f5e42882db0f176904",
  16. "settleCurrency": "USD",
  17. "storeNo": "300014",
  18. "terminal": "ONLINE",
  19. "timeout": "120",
  20. "vendor": "creditcard",
  21. "verifySign": "add5dfcc303514dac1c9427524ca2a31"
  22. }
  23. ```
  24. ### Response
  25. ```json
  26. {
  27. "result":
  28. {
  29. "amount": "50.00",
  30. "cashierUrl": "http://ldd-tys.yunkeguan.com/app-redirect-record/yuansfer-redirect-record/297554233633599712",
  31. "currency": "USD",
  32. "reference": "ae8d38bb057396f5e42882db0f176904",
  33. "settleCurrency": "USD",
  34. "transactionNo": "297554233633599712"
  35. },
  36. "ret_code": "000100",
  37. "ret_msg": "prepay success "
  38. }
  39. ```
  40. ### IPN交易结果通知
  41. * `cardNumber`参数为卡号对应的token,请妥善保存,使用cardNumber可直接扣款。与merchantNo绑定。
  42. ###### cardType 枚举
  43. |Code|描述|
  44. |---|---|
  45. |V|VISA|
  46. |M|MASTERCARD|
  47. |X|AMERICAN EXPRESS|
  48. |J|JCB|
  49. |R|DISCOVER|
  50. ```json
  51. {
  52. "amount": "50.00",
  53. "cardNumber": "8aigMwX85Mj81111",
  54. "cardType": "V",
  55. "note": "ae8d38bb057396f5e42882db0f176904",
  56. "reference": "ae8d38bb057396f5e42882db0f176904",
  57. "status": "success",
  58. "time": "20221103170757",
  59. "transactionNo": "297554233633599712",
  60. "verifySign": "c2c50ff2c5411922d1b5c790d3518cee"
  61. }
  62. ```
  63. # Recurring示例
  64. * creditType = cit
  65. ### Request
  66. ```json
  67. {
  68. "amount": "321.66",
  69. "cardNumber": "8aigMwX85Mj81111",
  70. "creditType": "cit",
  71. "currency": "USD",
  72. "description": "0badeefee75229756011b3cb5f5e507e",
  73. "merchantNo": "202553",
  74. "note": "0badeefee75229756011b3cb5f5e507e",
  75. "reference": "0badeefee75229756011b3cb5f5e507e",
  76. "settleCurrency": "USD",
  77. "storeNo": "300014",
  78. "terminal": "ONLINE",
  79. "timeout": "120",
  80. "vendor": "creditcard",
  81. "verifySign": "e124296fcf97566792d5c757c04bb913"
  82. }
  83. ```
  84. ### Response
  85. ```json
  86. {
  87. "result":
  88. {
  89. "amount": "321.66",
  90. "cardNumber": "8aigMwX85Mj81111",
  91. "cardType": "V",
  92. "reference": "0badeefee75229756011b3cb5f5e507e",
  93. "time": "20221103172454",
  94. "yuansferId": "297552263622460720"
  95. },
  96. "ret_code": "000100",
  97. "ret_msg": "Success"
  98. }
  99. ```