<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Braintree\Model\Adminhtml\Source; use Magento\Framework\Option\ArrayInterface; use Magento\Payment\Model\MethodInterface; /** * Class PaymentAction */ class PaymentAction implements ArrayInterface { /** * Possible actions on order place * * @return array */ public function toOptionArray() { return [ [ 'value' => MethodInterface::ACTION_AUTHORIZE, 'label' => __('Authorize'), ], [ 'value' => MethodInterface::ACTION_AUTHORIZE_CAPTURE, 'label' => __('Authorize and Capture'), ] ]; } }