Fix paymongo handler not checking for the correct payload parameter on validation #761
This commit is contained in:
parent
516fbcfcba
commit
c332757a53
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class PayMongoController extends Controller
|
|||
// END DEBUG
|
||||
|
||||
// if no event type given, silently fail
|
||||
if (empty($attr['type'])) {
|
||||
if (empty($payload['data'])) {
|
||||
error_log("Invalid paymongo callback received: " . print_r($payload, true));
|
||||
return $this->json([
|
||||
'success' => true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue