Callback.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. namespace common\components\payment\joinpay\entity;
  3. class Callback
  4. {
  5. private $biz_code;
  6. private $biz_msg;
  7. private $data;
  8. private $rand_str;
  9. private $sign_type;
  10. private $mch_no;
  11. private $sign;
  12. private $sec_key;
  13. /**
  14. * @return mixed
  15. */
  16. public function getBizCode()
  17. {
  18. return $this->biz_code;
  19. }
  20. /**
  21. * @param mixed $biz_code
  22. */
  23. public function setBizCode($biz_code): void
  24. {
  25. $this->biz_code = $biz_code;
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function getBizMsg()
  31. {
  32. return $this->biz_msg;
  33. }
  34. /**
  35. * @param mixed $biz_msg
  36. */
  37. public function setBizMsg($biz_msg): void
  38. {
  39. $this->biz_msg = $biz_msg;
  40. }
  41. /**
  42. * @return mixed
  43. */
  44. public function getData()
  45. {
  46. return $this->data;
  47. }
  48. /**
  49. * @param mixed $data
  50. */
  51. public function setData($data): void
  52. {
  53. $this->data = $data;
  54. }
  55. /**
  56. * @return mixed
  57. */
  58. public function getRandStr()
  59. {
  60. return $this->rand_str;
  61. }
  62. /**
  63. * @param mixed $rand_str
  64. */
  65. public function setRandStr($rand_str): void
  66. {
  67. $this->rand_str = $rand_str;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getSignType()
  73. {
  74. return $this->sign_type;
  75. }
  76. /**
  77. * @param mixed $sign_type
  78. */
  79. public function setSignType($sign_type): void
  80. {
  81. $this->sign_type = $sign_type;
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function getMchNo()
  87. {
  88. return $this->mch_no;
  89. }
  90. /**
  91. * @param mixed $mch_no
  92. */
  93. public function setMchNo($mch_no): void
  94. {
  95. $this->mch_no = $mch_no;
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getSign()
  101. {
  102. return $this->sign;
  103. }
  104. /**
  105. * @param mixed $sign
  106. */
  107. public function setSign($sign): void
  108. {
  109. $this->sign = $sign;
  110. }
  111. /**
  112. * @return mixed
  113. */
  114. public function getSecKey()
  115. {
  116. return $this->sec_key;
  117. }
  118. /**
  119. * @param mixed $sec_key
  120. */
  121. public function setSecKey($sec_key): void
  122. {
  123. $this->sec_key = $sec_key;
  124. }
  125. public function successResp(): string
  126. {
  127. return "success";
  128. }
  129. public function retryResp(): string
  130. {
  131. return "retry";
  132. }
  133. }