関数
AmazonMiddleware::putGetCheckoutSessionResponseInSession()
Puts checkout session response in $_SESSION
戻り値 戻り値
ファイル: src/Routing/AmazonMiddleware.php
public function putGetCheckoutSessionResponseInSession() { return function () { $sessionId = $_REQUEST['amazonCheckoutSessionId']; $result = (new CheckoutSession\Get($this->module))->get($sessionId); $response = json_decode($result['response'], true); $_SESSION['amazonCheckoutSession'] = $response; $_SESSION['amazonCheckoutSessionId'] = $sessionId; }; }