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/NotifyController.php

30 lines
685 B
PHTML

2 years ago
<?php
declare(strict_types=1);
namespace App\Controller\Payment;
use App\Service\PaymentService;
2 years ago
use Hyperf\HttpServer\Contract\RequestInterface;
2 years ago
class NotifyController extends AbstractController
{
private PaymentService $paymentService;
2 years ago
2 years ago
public function __construct(PaymentService $paymentService)
{
$this->paymentService = $paymentService;
}
public function index(RequestInterface $request)
{
$params = $request->all();
return $this->paymentService->notify($params);
}
2 years ago
public function efps(RequestInterface $request) {
$params = $request->all();
return $this->paymentService->efpsNotify($params);
}
2 years ago
}