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