chore: 新增epay和cos插件相关类库及配置文件
- 新增epay v2、v3、v3new版本的支付类库及证书文件 - 新增cos云存储类库文件 - 调整文件上传保存格式为按分类存储 - 修复会员、规则、类目等语言翻译键名 - 新增小程序图标等静态资源文件
这个提交包含在:
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
namespace Yansongda\Pay\Contracts;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Yansongda\Supports\Collection;
|
||||
|
||||
interface GatewayApplicationInterface
|
||||
{
|
||||
/**
|
||||
* To pay.
|
||||
*
|
||||
* @author yansongda <me@yansonga.cn>
|
||||
*
|
||||
* @param string $gateway
|
||||
* @param array $params
|
||||
*
|
||||
* @return Collection|Response
|
||||
*/
|
||||
public function pay($gateway, $params);
|
||||
|
||||
/**
|
||||
* Query an order.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @param string|array $order
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function find($order, string $type);
|
||||
|
||||
/**
|
||||
* Refund an order.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function refund(array $order);
|
||||
|
||||
/**
|
||||
* Cancel an order.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @param string|array $order
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function cancel($order);
|
||||
|
||||
/**
|
||||
* Close an order.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @param string|array $order
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function close($order);
|
||||
|
||||
/**
|
||||
* Verify a request.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @param string|array|null $content
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function verify($content, bool $refund);
|
||||
|
||||
/**
|
||||
* Echo success to server.
|
||||
*
|
||||
* @author yansongda <me@yansongda.cn>
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function success();
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户