123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Paypal\Model\PayflowExpress;
- /**
- * Wrapper that performs Paypal Express and Checkout communication
- * Use current Paypal Express method instance
- */
- class Checkout extends \Magento\Paypal\Model\Express\Checkout
- {
- /**
- * Api Model Type
- *
- * @var string
- */
- protected $_apiType = \Magento\Paypal\Model\Api\PayflowNvp::class;
- /**
- * Payment method type
- *
- * @var string
- */
- protected $_methodType = \Magento\Paypal\Model\Config::METHOD_WPP_PE_EXPRESS;
- /**
- * Set shipping method to quote, if needed
- *
- * @param string $methodCode
- * @return void
- */
- public function updateShippingMethod($methodCode)
- {
- parent::updateShippingMethod($methodCode);
- $this->quoteRepository->save($this->_quote);
- }
- }
|