AlipayTradePayRequest.php 1.8 KB

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