You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/app/Controller/Payment/PayController.php

64 lines
1.8 KiB
PHTML

2 years ago
<?php
declare(strict_types=1);
namespace App\Controller\Payment;
use Hyperf\HttpServer\Contract\RequestInterface;
use App\Service\PaymentService;
class PayController extends AbstractController
{
private PaymentService $paymentService;
public function __construct(PaymentService $paymentService)
{
$this->paymentService = $paymentService;
}
2 years ago
public function bindCard(RequestInterface $request)
{
1 year ago
$data = $this->paymentService->bindCard($request->all());
return $this->success($data);
2 years ago
}
public function bindCardConfirm(RequestInterface $request)
{
1 year ago
$data = $this->paymentService->bindCardConfirm($request->all());
return $this->success($data);
2 years ago
}
public function unBindCard(RequestInterface $request)
{
1 year ago
$data = $this->paymentService->unBindCard($request->all());
return $this->success($data);
2 years ago
}
public function protocolPayPreRequest(RequestInterface $request)
{
1 year ago
$data = $this->paymentService->protocolPayPreRequest($request->all());
return $this->success($data);
2 years ago
}
public function protocolPayConfirm(RequestInterface $request)
{
1 year ago
$data = $this->paymentService->protocolPayConfirm($request->all());
return $this->success($data);
1 year ago
}
public function refund(RequestInterface $request) {
1 year ago
$data = $this->paymentService->refund($request->all());
return $this->success($data);
2 years ago
}
1 year ago
public function refundQuery(RequestInterface $request) {
1 year ago
$data = $this->paymentService->refundQuery($request->all());
return $this->success($data);
1 year ago
}
1 year ago
public function paymentQuery(RequestInterface $request) {
1 year ago
$data = $this->paymentService->paymentQuery($request->all());
return $this->success($data);
1 year ago
}
2 years ago
}