関数
AmazonCheckoutDetails::__construct( Aivec\Welcart\SettlementModules\AmazonPay\AmazonPay $module, string $checkoutSessionId, bool $controlledComponent = true )
Sets $module
member var. Sets $checkoutSessionId
with parameter value
パラメータ パラメータ
- $module
(AmazonPay) (必須)
- $checkoutSessionId
(文字列) (必須)
- $controlledComponent
(bool) (任意)
ファイル: src/Components/AmazonCheckoutDetails/AmazonCheckoutDetails.php
public function __construct(AmazonPay $module, $checkoutSessionId, $controlledComponent = true) { parent::__construct($controlledComponent); $this->module = $module; $this->checkoutSessionId = $checkoutSessionId; $this->checkoutSessionDetails = $_SESSION['amazonCheckoutSession']; $details = $this->checkoutSessionDetails; $this->addressError = !empty($details['addressError']) ? $details['addressError'] : ''; }