PaymentTokenChooserInterface.php 654 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\Model\PaymentMethodChoose;
  7. use Magento\Customer\Model\Customer;
  8. use Magento\Store\Model\Store;
  9. use Magento\Vault\Api\Data\PaymentTokenInterface;
  10. /**
  11. * Interface to choose one of the stored payment methods for a customer if available.
  12. *
  13. * @api
  14. * @since 100.2.0
  15. */
  16. interface PaymentTokenChooserInterface
  17. {
  18. /**
  19. * @param Store $store
  20. * @param Customer $customer
  21. * @return PaymentTokenInterface|null
  22. * @since 100.2.0
  23. */
  24. public function choose(Store $store, Customer $customer);
  25. }