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) 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');