you
parent
e704371b1d
commit
c53bf7df08
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helper\Efps\Request;
|
||||
|
||||
use App\Helper\Efps\Config;
|
||||
|
||||
class AbstractRequest
|
||||
{
|
||||
protected $uri;
|
||||
|
||||
protected $method;
|
||||
|
||||
protected $_params = [];
|
||||
|
||||
public function getUrl() {
|
||||
return Config::get('base_url') . $this->uri;
|
||||
}
|
||||
|
||||
public function getParams() {
|
||||
return $this->_params;
|
||||
}
|
||||
|
||||
public function __get($name)
|
||||
{
|
||||
return $this->_params[$name];
|
||||
}
|
||||
|
||||
public function __set($name, $value)
|
||||
{
|
||||
$this->_params[$name] = $value;
|
||||
}
|
||||
}
|
@ -1,216 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helper\Efps\Request;
|
||||
|
||||
class UnifiedPaymentRequest extends AbstractRequest
|
||||
{
|
||||
protected $uri = '/api/txs/pay/UnifiedPayment';
|
||||
|
||||
/**
|
||||
* @param mixed $version
|
||||
*/
|
||||
public function setVersion($version): void
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $outTradeNo
|
||||
*/
|
||||
public function setOutTradeNo($outTradeNo): void
|
||||
{
|
||||
$this->outTradeNo = $outTradeNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $customerCode
|
||||
*/
|
||||
public function setCustomerCode($customerCode): void
|
||||
{
|
||||
$this->customerCode = $customerCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $clientIp
|
||||
*/
|
||||
public function setClientIp($clientIp): void
|
||||
{
|
||||
$this->clientIp = $clientIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $orderInfo
|
||||
*/
|
||||
public function setOrderInfo($orderInfo): void
|
||||
{
|
||||
$this->orderInfo = $orderInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $payAmount
|
||||
*/
|
||||
public function setPayAmount($payAmount): void
|
||||
{
|
||||
$this->payAmount = $payAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $payCurrency
|
||||
*/
|
||||
public function setPayCurrency($payCurrency): void
|
||||
{
|
||||
$this->payCurrency = $payCurrency;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $noCreditCards
|
||||
*/
|
||||
public function setNoCreditCards($noCreditCards): void
|
||||
{
|
||||
$this->noCreditCards = $noCreditCards;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $notifyUrl
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl): void
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $redirectUrl
|
||||
*/
|
||||
public function setRedirectUrl($redirectUrl): void
|
||||
{
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $attachData
|
||||
*/
|
||||
public function setAttachData($attachData): void
|
||||
{
|
||||
$this->attachData = $attachData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $transactionStartTime
|
||||
*/
|
||||
public function setTransactionStartTime($transactionStartTime): void
|
||||
{
|
||||
$this->transactionStartTime = $transactionStartTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $transactionEndTime
|
||||
*/
|
||||
public function setTransactionEndTime($transactionEndTime): void
|
||||
{
|
||||
$this->transactionEndTime = $transactionEndTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $payMethod
|
||||
*/
|
||||
public function setPayMethod($payMethod): void
|
||||
{
|
||||
$this->payMethod = $payMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $subAppId
|
||||
*/
|
||||
public function setSubAppId($subAppId): void
|
||||
{
|
||||
$this->subAppId = $subAppId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $channelMchtNo
|
||||
*/
|
||||
public function setChannelMchtNo($channelMchtNo): void
|
||||
{
|
||||
$this->channelMchtNo = $channelMchtNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $enablePayChannels
|
||||
*/
|
||||
public function setEnablePayChannels($enablePayChannels): void
|
||||
{
|
||||
$this->enablePayChannels = $enablePayChannels;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $instalmentsNum
|
||||
*/
|
||||
public function setInstalmentsNum($instalmentsNum): void
|
||||
{
|
||||
$this->instalmentsNum = $instalmentsNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $storeId
|
||||
*/
|
||||
public function setStoreId($storeId): void
|
||||
{
|
||||
$this->storeId = $storeId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $alipayStoreId
|
||||
*/
|
||||
public function setAlipayStoreId($alipayStoreId): void
|
||||
{
|
||||
$this->alipayStoreId = $alipayStoreId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $extUserInfo
|
||||
*/
|
||||
public function setExtUserInfo($extUserInfo): void
|
||||
{
|
||||
$this->extUserInfo = $extUserInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $terminalInfo
|
||||
*/
|
||||
public function setTerminalInfo($terminalInfo): void
|
||||
{
|
||||
$this->terminalInfo = $terminalInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $areaInfo
|
||||
*/
|
||||
public function setAreaInfo($areaInfo): void
|
||||
{
|
||||
$this->areaInfo = $areaInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $extendParams
|
||||
*/
|
||||
public function setExtendParams($extendParams): void
|
||||
{
|
||||
$this->extendParams = $extendParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $coupons
|
||||
*/
|
||||
public function setCoupons($coupons): void
|
||||
{
|
||||
$this->coupons = $coupons;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $nonceStr
|
||||
*/
|
||||
public function setNonceStr($nonceStr): void
|
||||
{
|
||||
$this->nonceStr = $nonceStr;
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class BindCardConfirmRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class BindCardRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class ProtocolPayConfirmRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class ProtocolPayPreRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class RegisterRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Request;
|
||||
|
||||
class UnBindCardRequest extends ApiRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIID0jCCArqgAwIBAgIJAP7Hut/02gF6MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNV
|
||||
BAYTAkdaMQswCQYDVQQIDAJHRDELMAkGA1UEBwwCR1oxDTALBgNVBAoMBEVQQVkx
|
||||
EjAQBgNVBAsMCWVwYXlsaW5rczENMAsGA1UEAwwEeWlscjEjMCEGCSqGSIb3DQEJ
|
||||
ARYUeWlsaXJlbkBlcGF5bGlua3MuY24wHhcNMjMwNDEz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keMoYAJbs
|
||||
WSdkZGNB5KGDUORRPjabpEs2+0+uGHgVr3Llxc3rEVgLSX0wFe1ytLbIW0ibmQV+
|
||||
tpiZYSSfN6lzzX9NnQk3zGLv+UfIag==
|
||||
-----END CERTIFICATE-----
|
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIID0jCCArqgAwIBAgIJAP7Hut/02gF6MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNV
|
||||
BAYTAkdaMQswCQYDVQQIDAJHRDELMAkGA1UEBwwCR1oxDTALBgNVBAoMBEVQQVkx
|
||||
EjAQBgNVBAsMCWVwYXlsaW5rczENMAsGA1UEAwwEeWlscjEjMCEGCSqGSIb3DQEJ
|
||||
ARYUeWlsaXJlbkBlcGF5bGlua3MuY24wHhcNMjMwNDEzMDE1MDM5WhcNMzMwNDEw
|
||||
MDE1MDM5WjB+MQswCQYDVQQGEwJHWjELMAkGA1UECAwCR0QxCzAJBgNVBAcMAkda
|
||||
MQ0wCwYDVQQKDARFUEFZMRIwEAYDVQQLDAllcGF5bGlua3MxDTALBgNVBAMMBHlp
|
||||
bHIxIzAhBgkqhkiG9w0BCQEWFHlpbGlyZW5AZXBheWxpbmtzLmNuMIIBIjANBgkq
|
||||
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1SL1lt41Phow3aZKQhB0zXNCX4DNqMkr
|
||||
88/auTe/Lq7llBNYWtPJeABg6K+8JHAs6L90yzQN3mUU3k4gKFLCJPQEIlK9sPKA
|
||||
AJQnDAs+3PUucgl1QCJnmeSRQKQCGfFjmsGOn+deyV/Lx4gHd3ytpErUDM1iEfen
|
||||
YHQACuGlRK9G7w90V0UnF7YJca5FCB/wzL3QjqcQC6Z9e/bYXQES7fQH8vX+ajBr
|
||||
gvi9nMVjFugsZk5sLkwGeYuY4/HMuUWQ8wW+Fvu8cJKtb48sqTl1eTPMhKPwgrgY
|
||||
EB+RIBA4Ls/gF4/7/dQJA18xFS60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||
ggEPADCCAQoCggEBALuJs8dIBzaCVblkcqFIlHxIdPCQCU30fQqGJf43PG5mKtR3
|
||||
xWHI8oVw55K9/6VGjw/sQd3Yex+XLf1K5Nm/gtSqxTQ4PDRte4LvKzU/qRy1Rzw+
|
||||
LlmDuXYWlVBkjDGSzN6+5iaNJDs1MDsYBL/illfoLjLIM5tAFXmeZKeEZfMqT/Pd
|
||||
zo7zb2OBWVsUwAooX/9DhMGKig55mliuCQa1plI3nSm4z5YOftL8RPBkQsGLaNEO
|
||||
qDpskpiwJU8db/I92cxLQExBwOEmwjzcHA28GIlCjjJnRGYvDdKYiNxOGJ6jvh9w
|
||||
cfQt7RMVlEPV2XY46A87iUIXEVXoEzTABGx6p10CAwEAAaNTMFEwHQYDVR0OBBYE
|
||||
FF9zWOWuZ8LYknEJf5MfrFIP/HGqMB8GA1UdIwQYMBaAFF9zWOWuZ8LYknEJf5Mf
|
||||
rFIP/HGqMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAEC4LnW7
|
||||
J69MLiUt2ypYjSmhyauJixINdG6r53JUaKw2d0Dd73PmYmU1lyTFJEOOFhK3w9hU
|
||||
5cgExxcn1AZdb2vtzwETv7dgRJHbxVVhl6JsPvFw82b9ALGgFbq5d2Kyewa5eLBh
|
||||
2IiThu19BBbvs0H6MjP7Kim1fx0z/aIK9F5b9zJxFw35t35Jz1cziXbpS2ha2HDS
|
||||
0EKrqESbX37iZ8jzO4sMb5hPDZ+BuugFOmZbbPoHqqKZw1l9EWO4Lm36PezMTpwP
|
||||
1dGRRjcxRWcZ9k4zbdmxzNGL+yxSjl4kvTDjr8ygQmTGBrH7f2z/5LaU48IeNZtl
|
||||
eEM6UAUyVJDtLl4=
|
||||
-----END CERTIFICATE-----
|
Binary file not shown.
Loading…
Reference in New Issue