mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add square webhook tests
This commit is contained in:
parent
1cdd3ac8bc
commit
a3433a7efc
@ -363,13 +363,11 @@ class SquarePaymentDriver extends BaseDriver
|
|||||||
public function processWebhookRequest(PaymentWebhookRequest $request)
|
public function processWebhookRequest(PaymentWebhookRequest $request)
|
||||||
{
|
{
|
||||||
nlog("square webhook");
|
nlog("square webhook");
|
||||||
nlog($request->all());
|
|
||||||
|
|
||||||
$signature_key = $this->company_gateway->getConfigField('signatureKey');
|
$signature_key = $this->company_gateway->getConfigField('signatureKey');
|
||||||
$notification_url = $this->company_gateway->webhookUrl();
|
$notification_url = $this->company_gateway->webhookUrl();
|
||||||
|
nlog($signature_key);
|
||||||
// header('Content-Type: text/plain');
|
nlog($notification_url);
|
||||||
// $webhook_payload = file_get_contents('php://input');
|
|
||||||
|
|
||||||
$body = '';
|
$body = '';
|
||||||
$handle = fopen('php://input', 'r');
|
$handle = fopen('php://input', 'r');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user