PaymentDataObjectFactoryInterface.php 533 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Data;
  7. use Magento\Payment\Model\InfoInterface;
  8. /**
  9. * Service for creation transferable payment object from model
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface PaymentDataObjectFactoryInterface
  15. {
  16. /**
  17. * Creates Payment Data Object
  18. *
  19. * @param InfoInterface $paymentInfo
  20. * @return PaymentDataObjectInterface
  21. */
  22. public function create(InfoInterface $paymentInfo);
  23. }