AvailabilityCheckerInterface.php 666 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\PaymentMethodIntegration;
  7. /**
  8. * Provides mechanism to configure availability of vault integration with instant purchase.
  9. *
  10. * May implement any logic specific for a payment method and configured with
  11. * instant_purchase/available configuration option in vault payment config.
  12. *
  13. * @api
  14. * @since 100.2.0
  15. */
  16. interface AvailabilityCheckerInterface
  17. {
  18. /**
  19. * Checks if payment method may be used for instant purchase.
  20. *
  21. * @return bool
  22. * @since 100.2.0
  23. */
  24. public function isAvailable(): bool;
  25. }