Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
invoice_payflowpro.php
Go to the documentation of this file.
1 <?php
9 require 'order_paid_with_payflowpro.php';
13  \Magento\Sales\Api\InvoiceManagementInterface::class
14 );
15 $invoice = $orderService->prepareInvoice($order);
17 $invoice->setRequestedCaptureCase(\Magento\Sales\Model\Order\Invoice::NOT_CAPTURE)->register();
18 $order = $invoice->getOrder();
19 $order->setIsInProcess(true);
21  ->create(\Magento\Framework\DB\Transaction::class);
22 $transactionSave->addObject($invoice)->addObject($order)->save();
$transactionSave