| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Api/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Api/PaymentFailuresInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Sales\Api;
/**
* Interface for managing payment gateway failures.
* @api
*/
interface PaymentFailuresInterface
{
/**
* Handles payment gateway failures.
*
* @param int $cartId
* @param string $errorMessage
* @param string $checkoutType
* @return PaymentFailuresInterface
*/
public function handle(
int $cartId,
string $errorMessage,
string $checkoutType = 'onepage'
): PaymentFailuresInterface;
}