catch when paypal fails
This commit is contained in:
parent
8e30fd7305
commit
dd48544dfc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue