PaymentAdapterInterface.php 659 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order;
  7. use Magento\Sales\Api\Data\InvoiceInterface;
  8. use Magento\Sales\Api\Data\OrderInterface;
  9. /**
  10. * Encapsulates payment operation behind unified interface.
  11. * Can be used as extension point.
  12. *
  13. * @api
  14. * @since 100.1.2
  15. */
  16. interface PaymentAdapterInterface
  17. {
  18. /**
  19. * @param OrderInterface $order
  20. * @param InvoiceInterface $invoice
  21. * @param bool $capture
  22. * @return OrderInterface
  23. * @since 100.1.2
  24. */
  25. public function pay(OrderInterface $order, InvoiceInterface $invoice, $capture);
  26. }