Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 676 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 676 Revision 1663
Zeile 209... Zeile 209...
209
            // Perform PayPal HTTP API request.
209
            // Perform PayPal HTTP API request.
210
            $response = $this->makeHttpRequest();
210
            $response = $this->makeHttpRequest();
Zeile 211... Zeile 211...
211
 
211
 
212
            return ($decode === false) ? $response->getContents() : Utils::jsonDecode($response, true);
212
            return ($decode === false) ? $response->getContents() : Utils::jsonDecode($response, true);
213
        } catch (RuntimeException $t) {
213
        } catch (RuntimeException $t) {
-
 
214
            $error = ($decode === false) ? $t->getMessage() : Utils::jsonDecode($t->getMessage(), true);
-
 
215
 
214
            return ($decode === false) ? $t->getMessage() : Utils::jsonDecode('{"error":'.$t->getMessage().'}', true);
216
            return ['error' => $error];
215
        }
217
        }
216
    }
218
    }