|
@@ -12,7 +12,6 @@ interface PaymentProviderInterface
|
|
|
* @param array $order 订单信息(如订单号、金额、用户、商品等)
|
|
* @param array $order 订单信息(如订单号、金额、用户、商品等)
|
|
|
* @param PaymentBizEnum $bizType 业务类型
|
|
* @param PaymentBizEnum $bizType 业务类型
|
|
|
* @return PaymentResponse 下单结果(含支付跳转/二维码/表单/参数等)
|
|
* @return PaymentResponse 下单结果(含支付跳转/二维码/表单/参数等)
|
|
|
- * @throws PaymentException
|
|
|
|
|
*/
|
|
*/
|
|
|
public function create(array $order, PaymentBizEnum $bizType): PaymentResponse;
|
|
public function create(array $order, PaymentBizEnum $bizType): PaymentResponse;
|
|
|
|
|
|
|
@@ -20,13 +19,11 @@ interface PaymentProviderInterface
|
|
|
* 处理支付回调(异步/同步通知)
|
|
* 处理支付回调(异步/同步通知)
|
|
|
* @param array $request 回调请求参数
|
|
* @param array $request 回调请求参数
|
|
|
* @return PaymentNotifyResult 处理结果(如订单号、金额、状态等)
|
|
* @return PaymentNotifyResult 处理结果(如订单号、金额、状态等)
|
|
|
- * @throws PaymentException
|
|
|
|
|
*/
|
|
*/
|
|
|
public function notify(array $request): PaymentNotifyResult;
|
|
public function notify(array $request): PaymentNotifyResult;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询支付订单状态
|
|
* 查询支付订单状态
|
|
|
- * @throws PaymentException
|
|
|
|
|
*/
|
|
*/
|
|
|
public function query(int $recordID): PaymentQueryResult;
|
|
public function query(int $recordID): PaymentQueryResult;
|
|
|
|
|
|
|
@@ -35,15 +32,13 @@ interface PaymentProviderInterface
|
|
|
* @param int $recordID 支付记录ID
|
|
* @param int $recordID 支付记录ID
|
|
|
* @param PaymentRefundRequest $param 退款参数
|
|
* @param PaymentRefundRequest $param 退款参数
|
|
|
* @return PaymentRefundResult
|
|
* @return PaymentRefundResult
|
|
|
- * @throws PaymentException
|
|
|
|
|
*/
|
|
*/
|
|
|
public function refund(int $recordID, PaymentRefundRequest $param): PaymentRefundResult;
|
|
public function refund(int $recordID, PaymentRefundRequest $param): PaymentRefundResult;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询退款状态
|
|
* 查询退款状态
|
|
|
- * @param string $refundNo 退款单号
|
|
|
|
|
- * @return PaymentRefundQueryResult
|
|
|
|
|
- * @throws PaymentException
|
|
|
|
|
|
|
+ * @param int $refundID 退款单号ID
|
|
|
|
|
+ * @return PaymentRefundResult
|
|
|
*/
|
|
*/
|
|
|
- public function refundQuery(string $refundNo): PaymentRefundQueryResult;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ public function refundQuery(int $refundID): PaymentRefundResult;
|
|
|
|
|
+}
|