@@ -49,7 +49,7 @@ public static function retrieve_access_token_with_credentials($client, $username
4949 $ response = $ apiInstance ->token ($ username , $ password );
5050 $ response_obj = $ response ['object ' ];
5151 $ access_token = $ response_obj ->getIdToken ();
52- } catch (Exception $ e ) {
52+ } catch (\ Exception $ e ) {
5353 return null ;
5454 }
5555 return $ access_token ;
@@ -60,7 +60,7 @@ public static function get_order_transactions($client, string $access_token, str
6060 $ apiInstance = new Api \RaiAcceptAPIApi ($ client );
6161 try {
6262 $ result = $ apiInstance ->getOrderTransactions ($ access_token , $ order_id );
63- } catch (Exception $ e ) {
63+ } catch (\ Exception $ e ) {
6464 return null ;
6565 }
6666
@@ -72,7 +72,7 @@ public static function get_order_details($client, string $access_token, string $
7272 $ apiInstance = new Api \RaiAcceptAPIApi ($ client );
7373 try {
7474 $ result = $ apiInstance ->getOrderDetails ($ access_token , $ order_id );
75- } catch (Exception $ e ) {
75+ } catch (\ Exception $ e ) {
7676 return null ;
7777 }
7878
@@ -84,7 +84,7 @@ public static function get_transaction_details($client, string $access_token, st
8484 $ apiInstance = new Api \RaiAcceptAPIApi ($ client );
8585 try {
8686 $ result = $ apiInstance ->getTransactionDetails ($ access_token , $ order_id , $ transaction_id );
87- } catch (Exception $ e ) {
87+ } catch (\ Exception $ e ) {
8888 return null ;
8989 }
9090
@@ -96,7 +96,7 @@ public static function refund($client, string $access_token, string $order_id, s
9696 $ apiInstance = new Api \RaiAcceptAPIApi ($ client );
9797 try {
9898 $ result = $ apiInstance ->refund ($ access_token , $ order_id , $ transaction_id , $ request_obj );
99- } catch (Exception $ e ) {
99+ } catch (\ Exception $ e ) {
100100 return null ;
101101 }
102102
0 commit comments