Skip to content

Commit

Permalink
fix paypal
Browse files Browse the repository at this point in the history
  • Loading branch information
NafezlyDotCom committed Oct 2, 2022
1 parent c04afdb commit bf1766a
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 OrdersGetRequest($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 bf1766a

Please sign in to comment.