関数
GetBuyer::get( string $token )
パラメータ パラメータ
- $token
(文字列) (必須)
ファイル: src/API/GetBuyer.php
public function get($token) {
try {
$client = $this->module->getAmazonClient();
$result = $client->getBuyer($token);
if ($this->module->errors->hasError($result)) {
return $this->module->errors->getAmzErrorResponse($result, $this);
}
} catch (\Exception $e) {
return $this->module->errors->getErrorResponse(
GenericErrorStore::AMAZON_PAY_SDK_CLIENT_EXCEPTION,
[$e->getMessage()]
);
}
return $result;
}