関数
Get::get( string $chargePermissionId )
説明 説明
- $chargePermissionId
(文字列) (必須) Charge Permission ID
ファイル: src/API/ChargePermission/Get.php
public function get($chargePermissionId) {
try {
$client = $this->module->getAmazonClient();
$result = $client->getChargePermission($chargePermissionId);
if ($this->module->errors->hasError($result)) {
return $this->module->errors->getAmzErrorResponse($result);
}
} catch (\Exception $e) {
return $this->module->errors->getErrorResponse(
GenericErrorStore::AMAZON_PAY_SDK_CLIENT_EXCEPTION,
[$e->getMessage()]
);
}
return $result;
}