diff --git a/app/PaymentDrivers/PayPal/PayPalWebhook.php b/app/PaymentDrivers/PayPal/PayPalWebhook.php index d0911f1b1ffb..8d991981a3c5 100644 --- a/app/PaymentDrivers/PayPal/PayPalWebhook.php +++ b/app/PaymentDrivers/PayPal/PayPalWebhook.php @@ -50,7 +50,7 @@ class PayPalWebhook implements ShouldQueue public function handle() { //testing - $this->endpoint = $this->test_endpoint; + // $this->endpoint = $this->test_endpoint; //this can cause problems verifying the webhook, so unset it if it exists if(isset($this->webhook_request['q'])) @@ -230,6 +230,7 @@ class PayPalWebhook implements ShouldQueue 'merchant_id' => $merchant_id, ]); } + } } diff --git a/app/PaymentDrivers/PayPalPPCPPaymentDriver.php b/app/PaymentDrivers/PayPalPPCPPaymentDriver.php index f0b644f7c9a9..267a944f16c6 100644 --- a/app/PaymentDrivers/PayPalPPCPPaymentDriver.php +++ b/app/PaymentDrivers/PayPalPPCPPaymentDriver.php @@ -1,5 +1,4 @@ api_endpoint_url = 'https://api-m.paypal.com'; - $this->api_endpoint_url = 'https://api-m.sandbox.paypal.com'; + $this->api_endpoint_url = 'https://api-m.paypal.com'; + // $this->api_endpoint_url = 'https://api-m.sandbox.paypal.com'; $secret = config('ninja.paypal.secret'); $client_id = config('ninja.paypal.client_id'); @@ -539,7 +538,7 @@ class PayPalPPCPPaymentDriver extends BaseDriver public function processWebhookRequest(Request $request) { - nlog(json_encode($request->all())); + // nlog(json_encode($request->all())); $this->init(); PayPalWebhook::dispatch($request->all(), $request->headers->all(), $this->access_token);