|
|
|
@ -87,24 +87,31 @@ class PaymentController extends AbstractController
|
|
|
|
|
return $this->success(['acsNo' => $acsNo]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function confirmPay(RequestInterface $request)
|
|
|
|
|
{
|
|
|
|
|
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
|
|
|
|
|
$data = $this->paymentService->confirmPay($data, $app, $token);
|
|
|
|
|
return $this->success($data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function refundApply(RequestInterface $request)
|
|
|
|
|
{
|
|
|
|
|
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
|
|
|
|
|
$data = $this->paymentService->refundApply($app, $data);
|
|
|
|
|
$data = $this->paymentService->refundApply($data, $app);
|
|
|
|
|
return $this->success($data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function refundConfirm(RequestInterface $request)
|
|
|
|
|
{
|
|
|
|
|
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
|
|
|
|
|
$this->paymentService->refundConfirm($app, $data, $token);
|
|
|
|
|
$this->paymentService->refundConfirm($data, $app, $token);
|
|
|
|
|
return $this->success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function refundCancel(RequestInterface $request)
|
|
|
|
|
{
|
|
|
|
|
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
|
|
|
|
|
$data = $this->paymentService->refundApply($app, $data);
|
|
|
|
|
$data = $this->paymentService->refundApply($data, $app);
|
|
|
|
|
return $this->success($data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|