24 lines
533 B
PHP
24 lines
533 B
PHP
<?php
|
|
|
|
namespace App\Endpoint\Callback\Http\Controllers;
|
|
|
|
use App\Services\WeChatPayService;
|
|
|
|
class WeChatPayController extends Controller
|
|
{
|
|
/**
|
|
* 直接结果通知
|
|
*
|
|
* @param \App\Services\WeChatPayService $request
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function paidNotify(WeChatPayService $weChatPayService)
|
|
{
|
|
$weChatPayService->handlePaidNotify(function ($message, $fail) {
|
|
logger()->debug('wechat notify', $message);
|
|
|
|
return true;
|
|
});
|
|
}
|
|
}
|