GatewayInterface.php 675 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Method\Online;
  7. use Magento\Framework\DataObject;
  8. use Magento\Payment\Model\Method\ConfigInterface;
  9. /**
  10. * Gateway interface for online payment methods
  11. *
  12. * @author Magento Core Team <core@magentocommerce.com>
  13. */
  14. interface GatewayInterface
  15. {
  16. /**
  17. * Post request to gateway and return response
  18. *
  19. * @param Object $request
  20. * @param ConfigInterface $config
  21. *
  22. * @return DataObject
  23. *
  24. * @throws \Exception
  25. */
  26. public function postRequest(DataObject $request, ConfigInterface $config);
  27. }