Add square webhook tests

This commit is contained in:
David Bomba 2023-08-20 21:52:51 +10:00
parent 1cdd3ac8bc
commit a3433a7efc

View File

@ -363,13 +363,11 @@ class SquarePaymentDriver extends BaseDriver
public function processWebhookRequest(PaymentWebhookRequest $request)
{
nlog("square webhook");
nlog($request->all());
$signature_key = $this->company_gateway->getConfigField('signatureKey');
$notification_url = $this->company_gateway->webhookUrl();
// header('Content-Type: text/plain');
// $webhook_payload = file_get_contents('php://input');
nlog($signature_key);
nlog($notification_url);
$body = '';
$handle = fopen('php://input', 'r');