fix(payment): harden payment and refund chains

This commit is contained in:
kate522 committed 2026-07-26 02:29:46 +08:00
1 parent c70fbe9835
commit 53ff99f343
24 files changed
+993 -251

No files matched your search

+3 -2
View File
@@ -40,9 +40,10 @@ interface GatewayInterface {
*
* @param string $order_number 订单号
* @param float $amount 退款金额
* @return array{success: bool, refund_id?: string, message?: string}
* @param string $request_id 幂等退款请求号
* @return array{success: bool, status?: string, refund_id?: string, request_id?: string, message?: string}
*/
public function refund(string $order_number, float $amount): array;
public function refund(string $order_number, float $amount, string $request_id = ''): array;
/**
* 获取网关显示名称