Sfoglia il codice sorgente

feat(xlpay): 实现信联支付回调通知功能

- 新增 PaymentNotifyResult 类用于处理支付通知结果
- 修改 IndexController 中的 notify 方法,实现支付回调逻辑
- 在 PaymentProvider 中添加 notify 方法处理支付通知
- 优化 ApiTrait 中的 payNotify 方法,用于发送支付通知请求
- 更新相关文件结构,调整测试文件位置
runphp 6 mesi fa
parent
commit
dd07b50ef9
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 7 5
      src/Contracts/PaymentNotifyResult.php

+ 7 - 5
src/Contracts/PaymentNotifyResult.php

@@ -3,15 +3,17 @@ declare(strict_types=1);
 
 namespace SixShop\Payment\Contracts;
 
+use SixShop\Payment\Enum\PaymentStatusEnum;
+
 class PaymentNotifyResult
 {
 
     public function __construct(
-        public string $orderNo,
-        public string $transactionId,
-        public float  $amount,
-        public string $status,
-        public array  $raw
+        public string            $orderNo,
+        public string            $transactionId,
+        public float             $amount,
+        public PaymentStatusEnum $status,
+        public array             $raw
     )
     {
     }