PaymentAction.php 868 B

12345678910111213141516171819202122232425262728293031323334
  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\Authorizenet\Model\Source;
  8. use Magento\Framework\Option\ArrayInterface;
  9. /**
  10. * Authorize.net Payment Action Dropdown source
  11. * @deprecated 100.3.1 Authorize.net is removing all support for this payment method
  12. */
  13. class PaymentAction implements ArrayInterface
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public function toOptionArray()
  19. {
  20. return [
  21. [
  22. 'value' => \Magento\Authorizenet\Model\Authorizenet::ACTION_AUTHORIZE,
  23. 'label' => __('Authorize Only'),
  24. ],
  25. [
  26. 'value' => \Magento\Authorizenet\Model\Authorizenet::ACTION_AUTHORIZE_CAPTURE,
  27. 'label' => __('Authorize and Capture')
  28. ]
  29. ];
  30. }
  31. }