クラス
PayOnly
data and service division itemsソース ソース
ファイル: src/Views/CheckoutReview/PayOnly/PayOnly.php
class PayOnly extends Container
{
/**
* Unloads `deliveryForm` component
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @param bool $load
* @return bool
*/
protected function filterLoadDeliveryForm($load) {
$load = false;
return $load;
}
/**
* Unloads `giftForm` component
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @param bool $load
* @return bool
*/
protected function filterLoadGiftForm($load) {
$load = false;
return $load;
}
/**
* Unloads `customCustomerFields` component
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @param bool $load
* @return bool
*/
protected function filterLoadCustomCustomerFields($load) {
$load = false;
return $load;
}
/**
* Unloads `customDeliveryFields` component
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @param bool $load
* @return bool
*/
protected function filterLoadCustomDeliveryFields($load) {
$load = false;
return $load;
}
/**
* Returns `AmazonCheckoutDetails` component with appropriate checkout session ID
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @return AmazonCheckoutDetails
*/
protected function getAmazonCheckoutDetailsComponent() {
return new AmazonCheckoutDetails($this->module, $_REQUEST['amazonCheckoutSessionId']);
}
/**
* Returns `PurchaseButton` component
*
* @author Evan D Shaw <evandanielshaw@gmail.com>
* @return PurchaseButton
*/
protected function getPurchaseButtonComponent() {
return new PurchaseButton('payonly', $this->module->getChargeType(), 'quickpay');
}
}
- filterLoadCustomCustomerFields — Unloads `customCustomerFields` component
- filterLoadCustomDeliveryFields — Unloads `customDeliveryFields` component
- filterLoadDeliveryForm — Unloads `deliveryForm` component
- filterLoadGiftForm — Unloads `giftForm` component
- getAmazonCheckoutDetailsComponent — Returns `AmazonCheckoutDetails` component with appropriate checkout session ID
- getPurchaseButtonComponent — Returns `PurchaseButton` component