2
0
Prechádzať zdrojové kódy

自定义支付页面

laowu 3 dní pred
rodič
commit
ad1c110c4f

+ 2 - 0
app/Http/Controllers/Api/NewSupefinaSpeiController.php

@@ -41,6 +41,8 @@ class NewSupefinaSpeiController implements PayMentInterFace
                 'money'   => $payAmt,
                 'prdOrdNo' => $res['merchantOrderNo'] ?? '',
                 'identifier' => $res['receiveCode'] ?? '',
+                'clabe' => $res['receiveCode'] ?? '',
+                'bank' => $data['bankInfo']['bankCode'] ?? ''
             ]);
         }
 

+ 2 - 0
app/Http/Controllers/Api/StarPayController.php

@@ -41,6 +41,8 @@ class StarPayController implements PayMentInterFace
                 'money'   => $payAmt,
                 'prdOrdNo' => $data['merOrderNo'] ?? '',
                 'identifier' => $data['params']['clabe'] ?? '',
+                'clabe' => $data['params']['clabe'] ?? '',
+                'bank' => 'TRANSFER',
             ]);
         }
 

+ 2 - 0
app/Http/Controllers/Api/SupefinaSpeiController.php

@@ -40,6 +40,8 @@ class SupefinaSpeiController implements PayMentInterFace
                 'money'   => $payAmt,
                 'prdOrdNo' => $data['merOrderNo'] ?? '',
                 'identifier' => $data['identifier'] ?? '',
+                'clabe' => $data['identifier'] ?? '',
+                'bank' => $data['channelName'] ?? ''
             ]);
         }
 

+ 1 - 1
app/Http/logic/api/NewSupefinaSpeiLogic.php

@@ -88,7 +88,7 @@ class NewSupefinaSpeiLogic extends BaseApiLogic
 
 
         $body = [
-            'productNo' => 'CHECKOUT_COUNTER',
+            'productNo' => 'CLABE',
             'data' => Aes::encrypt(json_encode($params), base64_decode($aesKey)),
         ];
 

+ 1 - 1
config/payTest.php

@@ -36,7 +36,7 @@ return [
         'publickey'          => env('NEW_SUPEFINA_PUBLIC_KEY', ''),
         'aesKey'      => env('NEW_SUPEFINA_AESKEY', ''),
         'baseUrl'      => 'https://payapi-sandbox.supefina.ai/api/v1',
-        'payinPath'    => '/checkoutCounter',
+        'payinPath'    => '/receivePay',
         'transferPath' => '/transfer',
         'countryId'    => 'MX',
         'currency'     => 'MXN',