catch when paypal fails

This commit is contained in:
David Bomba 2025-05-25 12:02:43 +10:00
parent 8e30fd7305
commit dd48544dfc
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class PayPalPPCPPaymentDriver extends PayPalBasePaymentDriver
nlog($response);
}
if (isset($response['status']) && $response['status'] == 'COMPLETED' && isset($response['purchase_units'])) {
if (is_array($response) && isset($response['status']) && $response['status'] == 'COMPLETED' && isset($response['purchase_units'])) {
return $this->createNinjaPayment($request, $response);