seven il y a 1 mois
Parent
commit
88e9c69c15
1 fichiers modifiés avec 44 ajouts et 11 suppressions
  1. 44 11
      app/Services/Payment/SanJinService.php

+ 44 - 11
app/Services/Payment/SanJinService.php

@@ -16,7 +16,11 @@ class SanJinService extends BaseService
 
     public static $CHANNEL = [
         // 'test' => '测试', 
-        'zfb' => '支付宝'
+        'zfbsm' => '支付宝扫码',
+        'zfbge' => '支付宝固额',
+        'zfbzk' => '支付宝转卡',
+        'ylsm' => '银联扫码',
+        'szrmb' => '数字人民币',
     ];
 
     public static $PRODUCT = [
@@ -26,30 +30,59 @@ class SanJinService extends BaseService
         //     'max' => 5000,
         //     'min' => 10
         // ],
+        'YL001' => [
+            'type' => 'ylsm',
+            'rate' => 0.05,
+            'max' => 500,
+            'min' => 50
+        ],
+        'SZ002' => [
+            'type' => 'szrmb',
+            'rate' => 0.05,
+            'max' => 100,
+            'min' => 10
+        ],
+        'SZ001' => [
+            'type' => 'szrmb',
+            'rate' => 0.048,
+            'max' => 5000,
+            'min' => 100
+        ],
         'ZFB001' => [
-            'type' => 'zfb',
+            'type' => 'zfbsm',
             'rate' => 0.085,
             'max' => 200,
             'min' => 100
         ],
         'ZFB002' => [
-            'type' => 'zfb',
+            'type' => 'zfbsm',
             'rate' => 0.057,
-            'max' => 200,
-            'min' => 1000
+            'max' => 1000,
+            'min' => 200
         ],
         'ZFB003' => [
-            'type' => 'zfb',
+            'type' => 'zfbsm',
             'rate' => 0.052,
-            'max' => 1000,
-            'min' => 3000
+            'max' => 3000,
+            'min' => 1000
         ],
         'ZFB004' => [
-            'type' => 'zfb',
+            'type' => 'zfbsm',
             'rate' => 0.042,
-            'max' => 3000,
-            'min' => 20000
+            'max' => 20000,
+            'min' => 3000
+        ],
+        'ZFB005' => [
+            'type' => 'zfbge',
+            'rate' => 0.027,
+            'fixed' => [945 ,988 ,990]
         ],
+        'ZFBZK001' => [
+            'type' => 'zfbzk',
+            'rate' => 0.05,
+            'max' => 2000,
+            'min' => 200
+        ]
     ];
 
     // 获取商户ID