|
@@ -12,6 +12,7 @@ class OrderPayService{
|
|
|
protected $payment;
|
|
|
/** @var string */
|
|
|
protected $body;
|
|
|
+ protected $expire=null;
|
|
|
public static $methods=[
|
|
|
Orders::PT_QYWY=>'companyBank',
|
|
|
Orders::PT_WX=>'wechat',
|
|
@@ -22,6 +23,13 @@ class OrderPayService{
|
|
|
];
|
|
|
|
|
|
/**
|
|
|
+ * @param null $expire
|
|
|
+ */
|
|
|
+ public function setExpire($expire): void
|
|
|
+ {
|
|
|
+ $this->expire = $expire;
|
|
|
+ }
|
|
|
+ /**
|
|
|
* @param Payment $payment
|
|
|
*/
|
|
|
public function setPayment(Payment $payment): void
|
|
@@ -62,6 +70,8 @@ class OrderPayService{
|
|
|
$this->notifyUrl(),
|
|
|
$this->returnUrl(),
|
|
|
'scan',
|
|
|
+ '',
|
|
|
+ $this->expire,
|
|
|
);
|
|
|
|
|
|
$str=$payData['code_url'];
|
|
@@ -84,6 +94,8 @@ class OrderPayService{
|
|
|
$this->notifyUrl(),
|
|
|
$this->returnUrl(),
|
|
|
'scan',
|
|
|
+ '',
|
|
|
+ $this->expire,
|
|
|
);
|
|
|
|
|
|
$str=$payData['qr_code'];
|