22 lines
418 B
PHP
22 lines
418 B
PHP
w
|
|
<?php
|
|
|
|
namespace addons\epay\library\Yansongda\Pay\Contracts;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use addons\epay\library\Yansongda\Supports\Collection;
|
|
|
|
interface GatewayInterface
|
|
{
|
|
/**
|
|
* Pay an order.
|
|
*
|
|
* @author yansongda <me@yansongda.cn>
|
|
*
|
|
* @param string $endpoint
|
|
*
|
|
* @return Collection|Response
|
|
*/
|
|
public function pay($endpoint, array $payload);
|
|
}
|