Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Member Functions | |
_processPaypalApiError ($exception) | |
_redirectSameToken () | |
_redirectToCartAndShowError ($errorMessage) | |
isValidationRequired () | |
![]() | |
_initCheckout () | |
_initToken ($setToken=null) | |
_getSession () | |
_getCheckoutSession () | |
_getQuote () | |
![]() | |
_forward ($action, $controller=null, $module=null, array $params=null) | |
_redirect ($path, $arguments=[]) | |
Protected Attributes | |
$agreementsValidator | |
![]() | |
$_checkout | |
$_checkoutTypes = [] | |
$_config | |
$_quote = false | |
$_configType | |
$_configMethod | |
$_checkoutType | |
$_customerSession | |
$_checkoutSession | |
$_orderFactory | |
$_checkoutFactory | |
$_paypalSession | |
$_urlHelper | |
$_customerUrl | |
![]() | |
$_objectManager | |
$_sessionNamespace | |
$_eventManager | |
$_actionFlag | |
$_redirect | |
$_view | |
$_url | |
$messageManager | |
![]() | |
$_request | |
$_response | |
$resultRedirectFactory | |
$resultFactory | |
Additional Inherited Members | |
![]() | |
const | FLAG_NO_DISPATCH = 'no-dispatch' |
const | FLAG_NO_POST_DISPATCH = 'no-postDispatch' |
const | FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch' |
const | PARAM_NAME_BASE64_URL = 'r64' |
const | PARAM_NAME_URL_ENCODED = 'uenc' |
Class PlaceOrder @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 17 of file PlaceOrder.php.
__construct | ( | \Magento\Framework\App\Action\Context | $context, |
\Magento\Customer\Model\Session | $customerSession, | ||
\Magento\Checkout\Model\Session | $checkoutSession, | ||
\Magento\Sales\Model\OrderFactory | $orderFactory, | ||
\Magento\Paypal\Model\Express\Checkout\Factory | $checkoutFactory, | ||
\Magento\Framework\Session\Generic | $paypalSession, | ||
\Magento\Framework\Url\Helper\Data | $urlHelper, | ||
\Magento\Customer\Model\Url | $customerUrl, | ||
\Magento\Checkout\Api\AgreementsValidatorInterface | $agreementValidator, | ||
\Magento\Sales\Api\PaymentFailuresInterface | $paymentFailures = null |
||
) |
\Magento\Framework\App\Action\Context | $context | |
\Magento\Customer\Model\Session | $customerSession | |
\Magento\Checkout\Model\Session | $checkoutSession | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
\Magento\Paypal\Model\Express\Checkout\Factory | $checkoutFactory | |
\Magento\Framework\Session\Generic | $paypalSession | |
\Magento\Framework\Url\Helper\Data | $urlHelper | |
\Magento\Customer\Model\Url | $customerUrl | |
\Magento\Checkout\Api\AgreementsValidatorInterface | $agreementValidator | |
\Magento\Sales\Api\PaymentFailuresInterface | null | $paymentFailures | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 42 of file PlaceOrder.php.
|
protected |
Process PayPal API's processable errors
\Magento\Paypal\Model\Api\ProcessableException | $exception |
Definition at line 161 of file PlaceOrder.php.
|
protected |
Redirect customer back to PayPal with the same token
Definition at line 199 of file PlaceOrder.php.
|
protected |
Redirect customer to shopping cart and show error message
string | $errorMessage |
Definition at line 213 of file PlaceOrder.php.
execute | ( | ) |
Submit the order
Implements ActionInterface.
Definition at line 77 of file PlaceOrder.php.
|
protected |
Return true if agreements validation required
Definition at line 236 of file PlaceOrder.php.
|
protected |
Definition at line 22 of file PlaceOrder.php.