Fix paymongo handler not checking for the correct payload parameter on validation #761

This commit is contained in:
Ramon Gutierrez 2023-10-09 16:35:06 +08:00
parent 516fbcfcba
commit c332757a53

View file

@ -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,