From 63259981030d2cda4e430318de30d5f9d3036d85 Mon Sep 17 00:00:00 2001 From: nafezly Date: Thu, 13 Oct 2022 18:48:15 +0200 Subject: [PATCH] updates --- src/Classes/PayPalPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/PayPalPayment.php b/src/Classes/PayPalPayment.php index 9d0c805..a24f928 100644 --- a/src/Classes/PayPalPayment.php +++ b/src/Classes/PayPalPayment.php @@ -106,7 +106,7 @@ public function verify(Request $request): array $client = new PayPalHttpClient($environment); try { - $response = $client->execute(new PayPalCheckoutSdk\Orders\OrdersCaptureRequest($request['token']) ); + $response = $client->execute(new OrdersCaptureRequest($request['token']) ); $result = json_decode(json_encode($response), true); if ($result['result']['intent'] == "CAPTURE" && $result['result']['status'] == "APPROVED") { return [