Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NafezlyDotCom committed Oct 13, 2022
1 parent 6af0ca8 commit 6325998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/PayPalPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 6325998

Please sign in to comment.