AlipayEbppPdeductSignCancelRequest.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.sign.cancel request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 13:55:58
  7. */
  8. class AlipayEbppPdeductSignCancelRequest
  9. {
  10. /**
  11. * 此值只是供代扣中心做最后的渠道统计用,并不做值是什么的强校验,只要不为空就可以
  12. **/
  13. private $agentChannel;
  14. /**
  15. * 标识发起方的ID,从服务窗发起则为appId的值,appId即开放平台分配给接入ISV的id,此处也可以随便真其它值,只要能标识唯一即可
  16. **/
  17. private $agentCode;
  18. /**
  19. * 支付宝代扣协议ID
  20. **/
  21. private $agreementId;
  22. /**
  23. * 用户UserId在应用AppId下的唯一用户标识
  24. **/
  25. private $openId;
  26. /**
  27. * 需要用户首先处于登陆态,然后访问https://ebppprod.alipay.com/deduct/enterMobileicPayPassword.htm?cb=自己指定的回跳连接地址,访问页面后会进到独立密码校验页,用户输入密码校验成功后,会生成token回调到指定的回跳地址,如果设置cb=www.baidu.com则最后回调的内容是www.baidu.com?token=312314ADFDSFAS,然后签约时直接取得地址后token的值即可
  28. **/
  29. private $payPasswordToken;
  30. /**
  31. * 用户ID
  32. **/
  33. private $userId;
  34. private $apiParas = array();
  35. private $terminalType;
  36. private $terminalInfo;
  37. private $prodCode;
  38. private $apiVersion="1.0";
  39. private $notifyUrl;
  40. private $returnUrl;
  41. private $needEncrypt=false;
  42. public function setAgentChannel($agentChannel)
  43. {
  44. $this->agentChannel = $agentChannel;
  45. $this->apiParas["agent_channel"] = $agentChannel;
  46. }
  47. public function getAgentChannel()
  48. {
  49. return $this->agentChannel;
  50. }
  51. public function setAgentCode($agentCode)
  52. {
  53. $this->agentCode = $agentCode;
  54. $this->apiParas["agent_code"] = $agentCode;
  55. }
  56. public function getAgentCode()
  57. {
  58. return $this->agentCode;
  59. }
  60. public function setAgreementId($agreementId)
  61. {
  62. $this->agreementId = $agreementId;
  63. $this->apiParas["agreement_id"] = $agreementId;
  64. }
  65. public function getAgreementId()
  66. {
  67. return $this->agreementId;
  68. }
  69. public function setOpenId($openId)
  70. {
  71. $this->openId = $openId;
  72. $this->apiParas["open_id"] = $openId;
  73. }
  74. public function getOpenId()
  75. {
  76. return $this->openId;
  77. }
  78. public function setPayPasswordToken($payPasswordToken)
  79. {
  80. $this->payPasswordToken = $payPasswordToken;
  81. $this->apiParas["pay_password_token"] = $payPasswordToken;
  82. }
  83. public function getPayPasswordToken()
  84. {
  85. return $this->payPasswordToken;
  86. }
  87. public function setUserId($userId)
  88. {
  89. $this->userId = $userId;
  90. $this->apiParas["user_id"] = $userId;
  91. }
  92. public function getUserId()
  93. {
  94. return $this->userId;
  95. }
  96. public function getApiMethodName()
  97. {
  98. return "alipay.ebpp.pdeduct.sign.cancel";
  99. }
  100. public function setNotifyUrl($notifyUrl)
  101. {
  102. $this->notifyUrl=$notifyUrl;
  103. }
  104. public function getNotifyUrl()
  105. {
  106. return $this->notifyUrl;
  107. }
  108. public function setReturnUrl($returnUrl)
  109. {
  110. $this->returnUrl=$returnUrl;
  111. }
  112. public function getReturnUrl()
  113. {
  114. return $this->returnUrl;
  115. }
  116. public function getApiParas()
  117. {
  118. return $this->apiParas;
  119. }
  120. public function getTerminalType()
  121. {
  122. return $this->terminalType;
  123. }
  124. public function setTerminalType($terminalType)
  125. {
  126. $this->terminalType = $terminalType;
  127. }
  128. public function getTerminalInfo()
  129. {
  130. return $this->terminalInfo;
  131. }
  132. public function setTerminalInfo($terminalInfo)
  133. {
  134. $this->terminalInfo = $terminalInfo;
  135. }
  136. public function getProdCode()
  137. {
  138. return $this->prodCode;
  139. }
  140. public function setProdCode($prodCode)
  141. {
  142. $this->prodCode = $prodCode;
  143. }
  144. public function setApiVersion($apiVersion)
  145. {
  146. $this->apiVersion=$apiVersion;
  147. }
  148. public function getApiVersion()
  149. {
  150. return $this->apiVersion;
  151. }
  152. public function setNeedEncrypt($needEncrypt)
  153. {
  154. $this->needEncrypt=$needEncrypt;
  155. }
  156. public function getNeedEncrypt()
  157. {
  158. return $this->needEncrypt;
  159. }
  160. }