for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Zed\Heidelpay\Communication\Plugin\Checkout;
use Generated\Shared\Transfer\QuoteTransfer;
use Generated\Shared\Transfer\SaveOrderTransfer;
use Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutDoSaveOrderInterface;
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
* @method \SprykerEco\Zed\Heidelpay\Business\HeidelpayFacadeInterface getFacade()
* @method \SprykerEco\Zed\Heidelpay\Communication\HeidelpayCommunicationFactory getFactory()
* @method \SprykerEco\Zed\Heidelpay\HeidelpayConfig getConfig()
* @method \SprykerEco\Zed\Heidelpay\Persistence\HeidelpayQueryContainerInterface getQueryContainer()
class HeidelpaySaveOrderPlugin extends AbstractPlugin implements CheckoutDoSaveOrderInterface
{
* Specification:
* - Retrieves (its) data from the quote object and saves it to the database.
* - These plugins are already enveloped into a transaction.
*
* @api
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
* @param \Generated\Shared\Transfer\SaveOrderTransfer $saveOrderTransfer
* @return void
public function saveOrder(QuoteTransfer $quoteTransfer, SaveOrderTransfer $saveOrderTransfer)
$this->getFacade()->saveOrderPayment($quoteTransfer, $saveOrderTransfer);
}