| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace common\interfaces;
- /**
- * Interface PayHandler
- * @package common\interfaces
- */
- interface PayHandler
- {
- /**
- * 支付说明
- *
- * @return string
- */
- public function getBody(): string;
- /**
- * 支付详情
- *
- * @return string
- */
- public function getDetails(): string;
- /**
- * 支付金额
- *
- * @return float
- */
- public function getTotalFee(): float;
- /**
- * 获取订单号
- *
- * @return float
- */
- public function getOrderSn(): string;
- /**
- * 交易流水号
- *
- * @return string
- */
- public function getOutTradeNo();
- /**
- * 获取商户id
- *
- * @return float
- */
- public function getMerchantId(): int;
- /**
- * 是否查询订单号(避免重复生成)
- *
- * @return bool
- */
- public function isQueryOrderSn(): bool;
- }
|