mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:54:30 -04:00
Fix for GoCardless
This commit is contained in:
parent
c0bad70c0d
commit
d443d3ac89
@ -110,7 +110,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver
|
|||||||
$calculatedSignature = hash_hmac('sha256', $rawPayload, $token);
|
$calculatedSignature = hash_hmac('sha256', $rawPayload, $token);
|
||||||
|
|
||||||
if (! hash_equals($providedSignature, $calculatedSignature)) {
|
if (! hash_equals($providedSignature, $calculatedSignature)) {
|
||||||
throw new Exception('Signature does not match');
|
throw new \Exception('Signature does not match');
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($input['events'] as $event) {
|
foreach ($input['events'] as $event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user