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.

1 Answer 1


It can be done the same way as Magento 1.

In the payment method class, you can change:

protected $_canCapture = false;


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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