123456789101112131415161718192021222324252627 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\InstantPurchase\Model\PaymentMethodChoose;
- use Magento\Customer\Model\Customer;
- use Magento\Store\Model\Store;
- use Magento\Vault\Api\Data\PaymentTokenInterface;
- /**
- * Interface to choose one of the stored payment methods for a customer if available.
- *
- * @api
- * @since 100.2.0
- */
- interface PaymentTokenChooserInterface
- {
- /**
- * @param Store $store
- * @param Customer $customer
- * @return PaymentTokenInterface|null
- * @since 100.2.0
- */
- public function choose(Store $store, Customer $customer);
- }
|