We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 996585c commit ca947ecCopy full SHA for ca947ec
examples/example6-payment-status-webhook.php
@@ -39,7 +39,7 @@ public function handleRequest()
39
}
40
41
// Decode the JSON payload into an associative array
42
- $data = json_decode($rawPayload, true);
+ $jsonBody = json_decode($rawPayload, true);
43
if (json_last_error() !== JSON_ERROR_NONE) {
44
http_response_code(400);
45
header('Content-Type: application/json');
@@ -48,7 +48,7 @@ public function handleRequest()
48
49
50
try {
51
- $payment = new Payment($data);
+ $payment = new Payment($jsonBody['data']);
52
} catch (Exception $e) {
53
54
0 commit comments