fix(payment): harden payment and refund chains
This commit is contained in:
1 parent
c70fbe9835
commit
53ff99f343
24 files changed
+993
-251
No files matched your search
@@ -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;
|
||||
|
||||
/**
|
||||
* 获取网关显示名称
|
||||
|
||||
Reference in new issue
Block a user