AlipayEbppPdeductSignCancelRequest.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.pdeduct.sign.cancel request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  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. * 需要用户首先处于登陆态,然后访问https://ebppprod.alipay.com/deduct/enterMobileicPayPassword.htm?cb=自己指定的回跳连接地址,访问页面后会进到独立密码校验页,用户输入密码校验成功后,会生成token回调到指定的回跳地址,如果设置cb=www.baidu.com则最后回调的内容是www.baidu.com?token=312314ADFDSFAS,然后签约时直接取得地址后token的值即可
  24. **/
  25. private $payPasswordToken;
  26. /**
  27. * 用户ID
  28. **/
  29. private $userId;
  30. private $apiParas = array();
  31. private $terminalType;
  32. private $terminalInfo;
  33. private $prodCode;
  34. private $apiVersion="1.0";
  35. private $notifyUrl;
  36. private $returnUrl;
  37. private $needEncrypt=false;
  38. public function setAgentChannel($agentChannel)
  39. {
  40. $this->agentChannel = $agentChannel;
  41. $this->apiParas["agent_channel"] = $agentChannel;
  42. }
  43. public function getAgentChannel()
  44. {
  45. return $this->agentChannel;
  46. }
  47. public function setAgentCode($agentCode)
  48. {
  49. $this->agentCode = $agentCode;
  50. $this->apiParas["agent_code"] = $agentCode;
  51. }
  52. public function getAgentCode()
  53. {
  54. return $this->agentCode;
  55. }
  56. public function setAgreementId($agreementId)
  57. {
  58. $this->agreementId = $agreementId;
  59. $this->apiParas["agreement_id"] = $agreementId;
  60. }
  61. public function getAgreementId()
  62. {
  63. return $this->agreementId;
  64. }
  65. public function setPayPasswordToken($payPasswordToken)
  66. {
  67. $this->payPasswordToken = $payPasswordToken;
  68. $this->apiParas["pay_password_token"] = $payPasswordToken;
  69. }
  70. public function getPayPasswordToken()
  71. {
  72. return $this->payPasswordToken;
  73. }
  74. public function setUserId($userId)
  75. {
  76. $this->userId = $userId;
  77. $this->apiParas["user_id"] = $userId;
  78. }
  79. public function getUserId()
  80. {
  81. return $this->userId;
  82. }
  83. public function getApiMethodName()
  84. {
  85. return "alipay.ebpp.pdeduct.sign.cancel";
  86. }
  87. public function setNotifyUrl($notifyUrl)
  88. {
  89. $this->notifyUrl=$notifyUrl;
  90. }
  91. public function getNotifyUrl()
  92. {
  93. return $this->notifyUrl;
  94. }
  95. public function setReturnUrl($returnUrl)
  96. {
  97. $this->returnUrl=$returnUrl;
  98. }
  99. public function getReturnUrl()
  100. {
  101. return $this->returnUrl;
  102. }
  103. public function getApiParas()
  104. {
  105. return $this->apiParas;
  106. }
  107. public function getTerminalType()
  108. {
  109. return $this->terminalType;
  110. }
  111. public function setTerminalType($terminalType)
  112. {
  113. $this->terminalType = $terminalType;
  114. }
  115. public function getTerminalInfo()
  116. {
  117. return $this->terminalInfo;
  118. }
  119. public function setTerminalInfo($terminalInfo)
  120. {
  121. $this->terminalInfo = $terminalInfo;
  122. }
  123. public function getProdCode()
  124. {
  125. return $this->prodCode;
  126. }
  127. public function setProdCode($prodCode)
  128. {
  129. $this->prodCode = $prodCode;
  130. }
  131. public function setApiVersion($apiVersion)
  132. {
  133. $this->apiVersion=$apiVersion;
  134. }
  135. public function getApiVersion()
  136. {
  137. return $this->apiVersion;
  138. }
  139. public function setNeedEncrypt($needEncrypt)
  140. {
  141. $this->needEncrypt=$needEncrypt;
  142. }
  143. public function getNeedEncrypt()
  144. {
  145. return $this->needEncrypt;
  146. }
  147. }