3

In Magento 1, you can enable capture options for an invoice by adding

protected $_canCapture = true;

to app\code\core\Mage\Payment\Model\Method\METHODNAME.php

In Magento 2, how can this be done?

I'm trying to do this to the purchase order method so invoices can be created but not marked as paid.

2

It can be done the same way as Magento 1.

In the payment method class, you can change:

protected $_canCapture = false;

To:

protected $_canCapture = true;
  • @Ryan feel free to mark your question as answered so it'll benefit for others ;) – Raphael at Digital Pianism Sep 27 '16 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.