123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace Yansongda\Pay\Contracts;
- interface GatewayInterface
- {
- /**
- * pay a order.
- *
- * @author yansongda <me@yansongda.cn>
- *
- * @param array $config_biz
- *
- * @return mixed
- */
- public function pay(array $config_biz);
- /**
- * refund a order.
- *
- * @author yansongda <me@yansongda.cn>
- *
- * @param array|string $config_biz
- *
- * @return array|bool
- */
- public function refund($config_biz);
- /**
- * close a order.
- *
- * @author yansongda <me@yansongda.cn>
- *
- * @param array|string $config_biz
- *
- * @return array|bool
- */
- public function close($config_biz);
- /**
- * find a order.
- *
- * @author yansongda <me@yansongda.cn>
- *
- * @param string $out_trade_no
- *
- * @return array|bool
- */
- public function find($out_trade_no);
- /**
- * verify notify.
- *
- * @author yansongda <me@yansongda.cn>
- *
- * @param mixed $data
- * @param string $sign
- * @param bool $sync
- *
- * @return array|bool
- */
- public function verify($data, $sign = null, $sync = false);
- }
|