GatewayInterface.php 376 B

1234567891011121314151617181920
  1. <?php
  2. namespace Yansongda\Pay\Contracts;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Yansongda\Supports\Collection;
  5. interface GatewayInterface
  6. {
  7. /**
  8. * Pay an order.
  9. *
  10. * @author yansongda <me@yansongda.cn>
  11. *
  12. * @param string $endpoint
  13. *
  14. * @return Collection|Response
  15. */
  16. public function pay($endpoint, array $payload);
  17. }