feat : refund
This commit is contained in:
@@ -184,7 +184,7 @@ class RefundService
|
||||
]);
|
||||
}
|
||||
|
||||
protected function refund()
|
||||
protected function refund(): void
|
||||
{
|
||||
$rechargeService = match ($this->refundInfo->refund_type)
|
||||
{
|
||||
@@ -193,13 +193,13 @@ class RefundService
|
||||
};
|
||||
|
||||
$rechargeService->setConfig();
|
||||
$rechargeService->setNotify();
|
||||
$rechargeService->setRefundNotify();
|
||||
|
||||
$payData = $rechargeService->pay(
|
||||
$rechargeService->refund(
|
||||
$this->refundAmount,
|
||||
(float)$this->orderInfo->actual_price,
|
||||
$this->request->input('body','订单支付'),
|
||||
$this->orderInfo->order_no,
|
||||
$this->userId
|
||||
$this->refundInfo->refund_no,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user