|
|
@@ -119,9 +119,9 @@ class Airwallex extends Payment
|
|
|
'verify' => false
|
|
|
]);
|
|
|
$resultObject = json_decode($response->getBody()->getContents());
|
|
|
-// if ($resultObject->status != 'SUCCESS') {
|
|
|
-// throw new \Exception('airwallex api is error');
|
|
|
-// }
|
|
|
+ if (empty($resultObject->id)) {
|
|
|
+ throw new \Exception('airwallex api is error');
|
|
|
+ }
|
|
|
$id = $resultObject->id;
|
|
|
$client_secret = $resultObject->client_secret;
|
|
|
return $id . ':' . $client_secret;
|