関数
Middleware::isOrderAssociated()
GenericError if the orderId is not associated with an Amazon Pay purchase戻り値 戻り値
ファイル: src/Admin/API/Middleware.php
public function isOrderAssociated() {
return function ($args) {
$orderId = (int)$args['orderId'];
if (!$this->module->isOrderAssociated($orderId)) {
return $this->module->errors->getErrorResponse(
GenericErrorStore::AMAZON_PAY_ORDER_NOT_FOUND,
[$orderId]
);
}
};
}