|
@@ -11,41 +11,8 @@ use Request, Config, DB;
|
|
|
|
|
|
class PayController extends Controller
|
|
class PayController extends Controller
|
|
{
|
|
{
|
|
- use PayHelper, LogHelper,JpushHelper;
|
|
|
|
|
|
+ use PayHelper;
|
|
|
|
|
|
- /**
|
|
|
|
- * p++ webhooks通知
|
|
|
|
- */
|
|
|
|
-// public function pppNotify() {
|
|
|
|
-// $sig = Request::header('x-pingplusplus-signature');
|
|
|
|
-// $request = Request::instance();
|
|
|
|
-// $data = $request->getContent();
|
|
|
|
-//
|
|
|
|
-// if (!$this->checkPppSignature($data, $sig)) {//验签失败
|
|
|
|
-// header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
|
|
|
|
-// exit("fail");
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-// $event = json_decode($data);
|
|
|
|
-// if (!isset($event->type)) {
|
|
|
|
-//// return Response::make('fail', 400);
|
|
|
|
-// header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
|
|
|
|
-// exit("fail");
|
|
|
|
-// }
|
|
|
|
-// switch ($event->type) {
|
|
|
|
-// case "charge.succeeded":
|
|
|
|
-// // 开发者在此处加入对支付异步通知的处理代码
|
|
|
|
-// header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');
|
|
|
|
-// break;
|
|
|
|
-// case "refund.succeeded":
|
|
|
|
-// // 开发者在此处加入对退款异步通知的处理代码
|
|
|
|
-// header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');
|
|
|
|
-// break;
|
|
|
|
-// default:
|
|
|
|
-// header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
|
|
|
|
-// break;
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
|
|
public function alipayNotify() {
|
|
public function alipayNotify() {
|
|
$rawInfo = Request::all();
|
|
$rawInfo = Request::all();
|