Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Catch exception in gateway instead of client.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Mar 2, 2020
1 parent 5349b7f commit 3d6f278
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Client.php
Expand Up @@ -202,11 +202,7 @@ public function get_merchant( MerchantRequest $merchant_request ) {
}

// Parse.
try {
$message = $this->parse_document( $response );
} catch ( \Exception $e ) {
return false;
}
$message = $this->parse_document( $response );

if ( $message instanceof Merchant ) {
return $message;
Expand Down

0 comments on commit 3d6f278

Please sign in to comment.