diff --git a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php index c70a420571c2..9e233b986ea7 100644 --- a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php @@ -82,7 +82,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver $accountGateway = $this->accountGateway; $accountId = $accountGateway->account_id; - $token = env('GC_WEBHOOK_SECRET'); + $token = $accountGateway->getConfigField('webhookSecret'); $rawPayload = file_get_contents('php://input'); $providedSignature = $_SERVER['HTTP_WEBHOOK_SIGNATURE']; $calculatedSignature = hash_hmac('sha256', $rawPayload, $token); diff --git a/composer.lock b/composer.lock index f74341e12c94..f9e9a057f39b 100644 --- a/composer.lock +++ b/composer.lock @@ -1433,12 +1433,12 @@ "source": { "type": "git", "url": "https://github.com/hillelcoren/omnipay-gocardlessv2.git", - "reference": "a264ac71dcdb7c03f42f17cb52c650d87e42f8e0" + "reference": "4eb63d8591de9a3da610c74480a7344617791235" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hillelcoren/omnipay-gocardlessv2/zipball/a264ac71dcdb7c03f42f17cb52c650d87e42f8e0", - "reference": "a264ac71dcdb7c03f42f17cb52c650d87e42f8e0", + "url": "https://api.github.com/repos/hillelcoren/omnipay-gocardlessv2/zipball/4eb63d8591de9a3da610c74480a7344617791235", + "reference": "4eb63d8591de9a3da610c74480a7344617791235", "shasum": "" }, "require": { @@ -1509,9 +1509,9 @@ "purchase" ], "support": { - "source": "https://github.com/hillelcoren/omnipay-gocardlessv2/tree/master" + "source": "https://github.com/hillelcoren/omnipay-gocardlessv2/tree/payment-fix" }, - "time": "2017-08-21 18:05:05" + "time": "2017-09-07 10:13:36" }, { "name": "digitickets/omnipay-realex",