Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-sales/Api/
Upload File :
Current File : //home/rtorresani/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;
}