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.

118 lines
1.8 KiB

7 years ago
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.trade.app.pay request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-06-19 11:12:46
  7. */
  8. class AlipayTradeAppPayRequest
  9. {
  10. /**
  11. * app支付接口2.0
  12. **/
  13. private $bizContent;
  14. private $apiParas = array();
  15. private $terminalType;
  16. private $terminalInfo;
  17. private $prodCode;
  18. private $apiVersion="1.0";
  19. private $notifyUrl;
  20. private $returnUrl;
  21. private $needEncrypt=false;
  22. public function setBizContent($bizContent)
  23. {
  24. $this->bizContent = $bizContent;
  25. $this->apiParas["biz_content"] = $bizContent;
  26. }
  27. public function getBizContent()
  28. {
  29. return $this->bizContent;
  30. }
  31. public function getApiMethodName()
  32. {
  33. return "alipay.trade.app.pay";
  34. }
  35. public function setNotifyUrl($notifyUrl)
  36. {
  37. $this->notifyUrl=$notifyUrl;
  38. }
  39. public function getNotifyUrl()
  40. {
  41. return $this->notifyUrl;
  42. }
  43. public function setReturnUrl($returnUrl)
  44. {
  45. $this->returnUrl=$returnUrl;
  46. }
  47. public function getReturnUrl()
  48. {
  49. return $this->returnUrl;
  50. }
  51. public function getApiParas()
  52. {
  53. return $this->apiParas;
  54. }
  55. public function getTerminalType()
  56. {
  57. return $this->terminalType;
  58. }
  59. public function setTerminalType($terminalType)
  60. {
  61. $this->terminalType = $terminalType;
  62. }
  63. public function getTerminalInfo()
  64. {
  65. return $this->terminalInfo;
  66. }
  67. public function setTerminalInfo($terminalInfo)
  68. {
  69. $this->terminalInfo = $terminalInfo;
  70. }
  71. public function getProdCode()
  72. {
  73. return $this->prodCode;
  74. }
  75. public function setProdCode($prodCode)
  76. {
  77. $this->prodCode = $prodCode;
  78. }
  79. public function setApiVersion($apiVersion)
  80. {
  81. $this->apiVersion=$apiVersion;
  82. }
  83. public function getApiVersion()
  84. {
  85. return $this->apiVersion;
  86. }
  87. public function setNeedEncrypt($needEncrypt)
  88. {
  89. $this->needEncrypt=$needEncrypt;
  90. }
  91. public function getNeedEncrypt()
  92. {
  93. return $this->needEncrypt;
  94. }
  95. }