diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index 7a0c7f3b83ab..d7e2757f0794 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -552,11 +552,11 @@ class BaseDriver extends AbstractPaymentDriver { return route('payment_notification_webhook', [ 'company_key' => $this->client->company->company_key, - 'company_gateway_id' => $this->company_gateway->id, - 'client' => $this->client->id, + 'company_gateway_id' => $this->encodePrimaryKey($this->company_gateway->id), + 'client' => $this->encodePrimaryKey($this->client->id), ]); } - + /* Performs an extra iterate on the gatewayTypes() array and passes back only the enabled gateways*/ public function gatewayTypeEnabled($type) {