PaymentTokenFactoryInterface.php 592 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Vault\Api\Data;
  7. /**
  8. * Interface PaymentTokenFactoryInterface
  9. * @api
  10. * @since 101.0.0
  11. */
  12. interface PaymentTokenFactoryInterface
  13. {
  14. /**
  15. * Payment Token types
  16. * @var string
  17. */
  18. const TOKEN_TYPE_ACCOUNT = 'account';
  19. const TOKEN_TYPE_CREDIT_CARD = 'card';
  20. /**
  21. * Create payment token entity
  22. * @param $type string|null
  23. * @return PaymentTokenInterface
  24. * @since 101.0.0
  25. */
  26. public function create($type = null);
  27. }