subtain-laravel-payments v5.2.1
PHP secret variable compared to literalCalls a URL query serializer
SHA-256522d99c8c0e824c862ebac62abdb235be5a6f36590d1819b791b0e787fb24d91
MaleculeH₂(CrPo)
Evidence
⋯5 lines
98In the listener:
99```php
100public function handle(PaymentSucceeded $event): void
101{
102 $orderId = $event->result->invoiceId; // from your metadata or invoiceId
103 $payment = …
65:48… ad)) {
66 continue;
67 }
68
69 if ($key === 'amount') {
70 $concatenated .= self::formatAmount($payload[$key]);
71 } elseif ($key === 'customer') {
72 $concatenated .= self::formatCustomer($payload[$key]);
73 } else {
74 $concatenated .= …
76 }
77
78 $concatenated .= $apiSecret;
79
80 return hash('sha384', $concatenated);
81 }
82
⋯4 lines
109:72… onCurrency . $status . $apiToken . $apiSecret);
110
111 return hash_equals($expected, strtolower($receivedSignature));
112 }
113
⋯4 lines
71:51… g $rawBody, string $postbackKey): bool
72 {
73 $payload = json_decode($rawBody, true);
74
75 if (! is_array($payload)) {
⋯4 lines
No evidence locations were recorded for this file. Raw result