ClientInterface.php 727 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Http;
  7. use Magento\Payment\Gateway\Response;
  8. /**
  9. * Interface ClientInterface
  10. * @package Magento\Payment\Gateway\Http
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface ClientInterface
  15. {
  16. /**
  17. * Places request to gateway. Returns result as ENV array
  18. *
  19. * @param \Magento\Payment\Gateway\Http\TransferInterface $transferObject
  20. * @return array
  21. * @throws \Magento\Payment\Gateway\Http\ClientException
  22. * @throws \Magento\Payment\Gateway\Http\ConverterException
  23. */
  24. public function placeRequest(\Magento\Payment\Gateway\Http\TransferInterface $transferObject);
  25. }