This commit is contained in:
tokumeikoi
2021-05-07 01:17:55 +09:00
parent b3b0988730
commit dc6317db97
6 changed files with 15 additions and 7 deletions

View File

@ -11,10 +11,10 @@ use App\Http\Controllers\Controller;
class PaymentController extends Controller
{
public function notify($method, $id, Request $request)
public function notify($method, $uuid, Request $request)
{
try {
$paymentService = new PaymentService($method, $id);
$paymentService = new PaymentService($method, null, $uuid);
$verify = $paymentService->notify($request->input());
if (!$verify) abort(500, 'verify error');
if (!$this->handle($verify['trade_no'], $verify['callback_no'])) {