mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on gocardless
This commit is contained in:
parent
43e33f5928
commit
8fae734490
@ -82,7 +82,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver
|
|||||||
$accountGateway = $this->accountGateway;
|
$accountGateway = $this->accountGateway;
|
||||||
$accountId = $accountGateway->account_id;
|
$accountId = $accountGateway->account_id;
|
||||||
|
|
||||||
$token = env('GC_WEBHOOK_SECRET');
|
$token = $accountGateway->getConfigField('webhookSecret');
|
||||||
$rawPayload = file_get_contents('php://input');
|
$rawPayload = file_get_contents('php://input');
|
||||||
$providedSignature = $_SERVER['HTTP_WEBHOOK_SIGNATURE'];
|
$providedSignature = $_SERVER['HTTP_WEBHOOK_SIGNATURE'];
|
||||||
$calculatedSignature = hash_hmac('sha256', $rawPayload, $token);
|
$calculatedSignature = hash_hmac('sha256', $rawPayload, $token);
|
||||||
|
10
composer.lock
generated
10
composer.lock
generated
@ -1433,12 +1433,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hillelcoren/omnipay-gocardlessv2.git",
|
"url": "https://github.com/hillelcoren/omnipay-gocardlessv2.git",
|
||||||
"reference": "a264ac71dcdb7c03f42f17cb52c650d87e42f8e0"
|
"reference": "4eb63d8591de9a3da610c74480a7344617791235"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/hillelcoren/omnipay-gocardlessv2/zipball/a264ac71dcdb7c03f42f17cb52c650d87e42f8e0",
|
"url": "https://api.github.com/repos/hillelcoren/omnipay-gocardlessv2/zipball/4eb63d8591de9a3da610c74480a7344617791235",
|
||||||
"reference": "a264ac71dcdb7c03f42f17cb52c650d87e42f8e0",
|
"reference": "4eb63d8591de9a3da610c74480a7344617791235",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1509,9 +1509,9 @@
|
|||||||
"purchase"
|
"purchase"
|
||||||
],
|
],
|
||||||
"support": {
|
"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",
|
"name": "digitickets/omnipay-realex",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user