146 lines
2.7 KiB
PHP
146 lines
2.7 KiB
PHP
<?php
|
|
|
|
namespace addon\cypay\sdk\request;
|
|
class TradeCreateRequest
|
|
{
|
|
/**
|
|
* 商户通过该接口进行交易的创建下单
|
|
**/
|
|
public $bizContent;
|
|
public $apiParas = array();
|
|
public $terminalType;
|
|
public $terminalInfo;
|
|
public $prodCode;
|
|
public $apiVersion = "1.0";
|
|
public $notifyUrl;
|
|
public $returnUrl;
|
|
private $needEncrypt = false;
|
|
private $SpId = '';
|
|
|
|
public $method = 'chanpay.merchanttrade.weixin.appletpay';
|
|
public $function_code = '';
|
|
|
|
|
|
public function __construct($trade_type = '')
|
|
{
|
|
if ($trade_type) {
|
|
switch ($trade_type) {
|
|
case '1000140001':
|
|
$this->function_code = '1000140001';
|
|
$this->method = 'chanpay.merchanttrade.weixin.appletpay';
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public function setBizContent($bizContent)
|
|
{
|
|
$this->bizContent = $bizContent;
|
|
$this->apiParas["biz_content"] = $bizContent;
|
|
}
|
|
|
|
public function getBizContent()
|
|
{
|
|
return $this->bizContent;
|
|
}
|
|
|
|
public function getApiMethodName()
|
|
{
|
|
return $this->method;
|
|
}
|
|
|
|
|
|
public function setMethodName($method)
|
|
{
|
|
$this->method = $method;
|
|
}
|
|
|
|
public function setNotifyUrl($notifyUrl)
|
|
{
|
|
$this->notifyUrl = $notifyUrl;
|
|
}
|
|
|
|
|
|
public function getNotifyUrl()
|
|
{
|
|
return $this->notifyUrl;
|
|
}
|
|
|
|
public function setReturnUrl($returnUrl)
|
|
{
|
|
$this->returnUrl = $returnUrl;
|
|
}
|
|
|
|
public function getReturnUrl()
|
|
{
|
|
return $this->returnUrl;
|
|
}
|
|
|
|
public function getApiParas()
|
|
{
|
|
return $this->apiParas;
|
|
}
|
|
|
|
public function getTerminalType()
|
|
{
|
|
return $this->terminalType;
|
|
}
|
|
|
|
public function setTerminalType($terminalType)
|
|
{
|
|
$this->terminalType = $terminalType;
|
|
}
|
|
|
|
public function getTerminalInfo()
|
|
{
|
|
return $this->terminalInfo;
|
|
}
|
|
|
|
public function setTerminalInfo($terminalInfo)
|
|
{
|
|
$this->terminalInfo = $terminalInfo;
|
|
}
|
|
|
|
public function getProdCode()
|
|
{
|
|
return $this->prodCode;
|
|
}
|
|
|
|
public function setProdCode($prodCode)
|
|
{
|
|
$this->prodCode = $prodCode;
|
|
}
|
|
|
|
public function setApiVersion($apiVersion)
|
|
{
|
|
$this->apiVersion = $apiVersion;
|
|
}
|
|
|
|
public function getApiVersion()
|
|
{
|
|
return $this->apiVersion;
|
|
}
|
|
|
|
|
|
public function setSpId($SpId)
|
|
{
|
|
$this->SpId = $SpId;
|
|
}
|
|
|
|
public function getSpId()
|
|
{
|
|
return $this->SpId;
|
|
}
|
|
|
|
|
|
public function getFunctionCode()
|
|
{
|
|
return $this->function_code;
|
|
}
|
|
|
|
public function setFunctionCode($function_code)
|
|
{
|
|
$this->function_code = $function_code;
|
|
}
|
|
}
|