関数
ConfirmPageLogin::getCheckoutParams()
戻り値 戻り値
ファイル: src/Views/ConfirmPageLogin/ConfirmPageLogin.php
public function getCheckoutParams() {
$chargetype = 'once';
$amzproducttype = 'PayAndShip';
if (defined('WCEX_DLSELLER')) {
if (!dlseller_have_shipped()) {
$amzproducttype = 'PayOnly';
}
}
// override Amazon address if Welcart address is preferred in settings
$whichAddress = $this->module->getActingOpts()['address_priority'];
if ($whichAddress === 'welcart') {
$amzproducttype = 'PayOnly';
}
$urlpt = strtolower($amzproducttype);
return [
'url' => "/checkout/welcart/{$urlpt}/{$chargetype}/createSession",
'productType' => $amzproducttype,
];
}