Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NafezlyDotCom committed Oct 15, 2022
1 parent 6325998 commit 23a7df1
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 @@ -108,7 +108,7 @@ public function verify(Request $request): array
try {
$response = $client->execute(new OrdersCaptureRequest($request['token']) );
$result = json_decode(json_encode($response), true);
if ($result['result']['intent'] == "CAPTURE" && $result['result']['status'] == "APPROVED") {
if ($result['result']['status'] == "COMPLETED" && $result['statusCode']==201) {
return [
'success' => true,
'payment_id'=>$request['token'],
Expand Down

0 comments on commit 23a7df1

Please sign in to comment.