PaymentAction.php 700 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\AuthorizenetAcceptjs\Model\Adminhtml\Source;
  8. /**
  9. * Authorize.net Payment Action Dropdown source
  10. */
  11. class PaymentAction implements \Magento\Framework\Data\OptionSourceInterface
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public function toOptionArray(): array
  17. {
  18. return [
  19. [
  20. 'value' => 'authorize',
  21. 'label' => __('Authorize Only'),
  22. ],
  23. [
  24. 'value' => 'authorize_capture',
  25. 'label' => __('Authorize and Capture')
  26. ]
  27. ];
  28. }
  29. }