WxPayJsApiPay.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. namespace common\library\Pay\lib;
  3. /**
  4. *
  5. * 提交JSAPI输入对象
  6. * @author widyhu
  7. *
  8. */
  9. class WxPayJsApiPay extends WxPayDataBase
  10. {
  11. /**
  12. * 设置微信分配的公众账号ID
  13. * @param string $value
  14. **/
  15. public function SetAppid($value)
  16. {
  17. $this->values['appId'] = $value;
  18. }
  19. /**
  20. * 获取微信分配的公众账号ID的值
  21. * @return 值
  22. **/
  23. public function GetAppid()
  24. {
  25. return $this->values['appId'];
  26. }
  27. /**
  28. * 判断微信分配的公众账号ID是否存在
  29. * @return true 或 false
  30. **/
  31. public function IsAppidSet()
  32. {
  33. return array_key_exists('appId', $this->values);
  34. }
  35. /**
  36. * 设置支付时间戳
  37. * @param string $value
  38. **/
  39. public function SetTimeStamp($value)
  40. {
  41. $this->values['timeStamp'] = $value;
  42. }
  43. /**
  44. * 获取支付时间戳的值
  45. * @return 值
  46. **/
  47. public function GetTimeStamp()
  48. {
  49. return $this->values['timeStamp'];
  50. }
  51. /**
  52. * 判断支付时间戳是否存在
  53. * @return true 或 false
  54. **/
  55. public function IsTimeStampSet()
  56. {
  57. return array_key_exists('timeStamp', $this->values);
  58. }
  59. /**
  60. * 随机字符串
  61. * @param string $value
  62. **/
  63. public function SetNonceStr($value)
  64. {
  65. $this->values['nonceStr'] = $value;
  66. }
  67. /**
  68. * 获取notify随机字符串值
  69. * @return 值
  70. **/
  71. public function GetReturn_code()
  72. {
  73. return $this->values['nonceStr'];
  74. }
  75. /**
  76. * 判断随机字符串是否存在
  77. * @return true 或 false
  78. **/
  79. public function IsReturn_codeSet()
  80. {
  81. return array_key_exists('nonceStr', $this->values);
  82. }
  83. /**
  84. * 设置订单详情扩展字符串
  85. * @param string $value
  86. **/
  87. public function SetPackage($value)
  88. {
  89. $this->values['package'] = $value;
  90. }
  91. /**
  92. * 获取订单详情扩展字符串的值
  93. * @return 值
  94. **/
  95. public function GetPackage()
  96. {
  97. return $this->values['package'];
  98. }
  99. /**
  100. * 判断订单详情扩展字符串是否存在
  101. * @return true 或 false
  102. **/
  103. public function IsPackageSet()
  104. {
  105. return array_key_exists('package', $this->values);
  106. }
  107. /**
  108. * 设置签名方式
  109. * @param string $value
  110. **/
  111. public function SetSignType($value)
  112. {
  113. $this->values['signType'] = $value;
  114. }
  115. /**
  116. * 获取签名方式
  117. * @return 值
  118. **/
  119. public function GetSignType()
  120. {
  121. return $this->values['signType'];
  122. }
  123. /**
  124. * 判断签名方式是否存在
  125. * @return true 或 false
  126. **/
  127. public function IsSignTypeSet()
  128. {
  129. return array_key_exists('signType', $this->values);
  130. }
  131. /**
  132. * 设置签名方式
  133. * @param string $value
  134. **/
  135. public function SetPaySign($value)
  136. {
  137. $this->values['paySign'] = $value;
  138. }
  139. /**
  140. * 获取签名方式
  141. * @return 值
  142. **/
  143. public function GetPaySign()
  144. {
  145. return $this->values['paySign'];
  146. }
  147. /**
  148. * 判断签名方式是否存在
  149. * @return true 或 false
  150. **/
  151. public function IsPaySignSet()
  152. {
  153. return array_key_exists('paySign', $this->values);
  154. }
  155. }