AvailabilityCheckerInterface.php 666 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\InstantPurchase\PaymentMethodIntegration;

/**
 * Provides mechanism to configure availability of vault integration with instant purchase.
 *
 * May implement any logic specific for a payment method and configured with
 * instant_purchase/available configuration option in vault payment config.
 *
 * @api
 * @since 100.2.0
 */
interface AvailabilityCheckerInterface
{
    /**
     * Checks if payment method may be used for instant purchase.
     *
     * @return bool
     * @since 100.2.0
     */
    public function isAvailable(): bool;
}