diff --git a/app/Http/Controllers/Gateway/PayPal.php b/app/Http/Controllers/Gateway/PayPal.php index 9dcc35fa..813cc6c1 100644 --- a/app/Http/Controllers/Gateway/PayPal.php +++ b/app/Http/Controllers/Gateway/PayPal.php @@ -125,9 +125,9 @@ class PayPal extends AbstractPayment { $response = (string) $this->provider->verifyIPN($post); - if($response === 'VERIFIED' && $request['mp_desc']){ - if(Payment::whereSn($request['mp_desc'])->first()->status == 0){ - self::postPayment($request['mp_desc'], 'PayPal'); + if($response === 'VERIFIED' && $request['invoice']){ + if(Payment::whereSn($request['invoice'])->first()->status == 0){ + self::postPayment($request['invoice'], 'PayPal'); } exit("success"); } diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index ff87d277..167b5cbb 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -42,7 +42,7 @@ class Kernel extends HttpKernel { CheckForMaintenanceMode::class, ValidatePostSize::class, TrimStrings::class, - ConvertEmptyStringsToNull::class, + //ConvertEmptyStringsToNull::class, TrustProxies::class, ];