PaymentFailuresInterface.php 613 B

12345678910111213141516171819202122232425262728
  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\Sales\Api;
  8. /**
  9. * Interface for managing payment gateway failures.
  10. */
  11. interface PaymentFailuresInterface
  12. {
  13. /**
  14. * Handles payment gateway failures.
  15. *
  16. * @param int $cartId
  17. * @param string $errorMessage
  18. * @param string $checkoutType
  19. * @return PaymentFailuresInterface
  20. */
  21. public function handle(
  22. int $cartId,
  23. string $errorMessage,
  24. string $checkoutType = 'onepage'
  25. ): PaymentFailuresInterface;
  26. }