関数
AmazonRedirectRouteGuards::sessionIdExistsOrExit()
amazonCheckoutSessionId isn’t in $_REQUEST戻り値 戻り値
ファイル: src/Routing/AmazonRedirectRouteGuards.php
public function sessionIdExistsOrExit() {
return function () {
if (!isset($_REQUEST['amazonCheckoutSessionId'])) {
header('location: ' . get_option('home'));
exit;
} else {
$sessionId = $_REQUEST['amazonCheckoutSessionId'];
$result = (new CheckoutSession\Get($this->module))->get($sessionId);
if ($result instanceof GenericError) {
header('location: ' . get_option('home'));
exit;
}
}
};
}