PaymentAction.php 776 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Braintree\Model\Adminhtml\Source;
  7. use Magento\Framework\Option\ArrayInterface;
  8. use Magento\Payment\Model\MethodInterface;
  9. /**
  10. * Class PaymentAction
  11. */
  12. class PaymentAction implements ArrayInterface
  13. {
  14. /**
  15. * Possible actions on order place
  16. *
  17. * @return array
  18. */
  19. public function toOptionArray()
  20. {
  21. return [
  22. [
  23. 'value' => MethodInterface::ACTION_AUTHORIZE,
  24. 'label' => __('Authorize'),
  25. ],
  26. [
  27. 'value' => MethodInterface::ACTION_AUTHORIZE_CAPTURE,
  28. 'label' => __('Authorize and Capture'),
  29. ]
  30. ];
  31. }
  32. }