Skip to content

Commit

Permalink
Merge pull request #202 from angelleye/PPL-165
Browse files Browse the repository at this point in the history
PPL-165
  • Loading branch information
Drew Angell authored Feb 2, 2020
2 parents d030416 + ab6f469 commit cff6386
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/angelleye/PayPal/rest/notifications/NotificationsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public function CreateWebhook($requestData){
$returnArray['RAWRESPONSE']=$output->toJSON();
return $returnArray;
}
catch (Exception $ex) {
return $this->createErrorResponse($ex);
}
catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
Expand All @@ -121,6 +124,8 @@ public function ListWebhooks($requestData){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -140,6 +145,8 @@ public function GetWebhook($webhook_id){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -161,6 +168,8 @@ public function DeleteWebhook($webhook_id){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand Down Expand Up @@ -212,6 +221,8 @@ public function UpdateWebhook($webhook_id,$requestData){
}
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -232,6 +243,8 @@ public function SearchWebhookEvents($params){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -251,6 +264,8 @@ public function EventNotificationDetails($event_id){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -272,6 +287,8 @@ public function ResendEventNotification($event_id){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -291,6 +308,8 @@ public function WebhooksEventTypes(){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -311,6 +330,8 @@ public function WebhooksEventTypesById($webhook_id){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand Down Expand Up @@ -342,6 +363,8 @@ public function VerifyWebhookSignature($headers,$webhook_id,$request_body){
}
catch (Exception $ex){
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand All @@ -363,6 +386,8 @@ public function SimulateEvent($params){
return $returnArray;
} catch (Exception $ex) {
return $this->createErrorResponse($ex);
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
return $this->createErrorResponse($ex);
}
}

Expand Down

0 comments on commit cff6386

Please sign in to comment.