songdb 5 năm trước cách đây
mục cha
commit
8cb03632ea
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/Libs/Pay/Merchants/OriginBank.php

+ 2 - 1
app/Libs/Pay/Merchants/OriginBank.php

@@ -31,7 +31,8 @@ class OriginBank
             'trade_amount'=>$data['price'],
             //'notify_url'=>env('ORIGINBANK_NOFITY_URL'),
             'sub_appid'=>$this->sub_appid,
-            'sub_openid'=>$data['openid']
+            'sub_openid'=>$data['openid'],
+            'JSAPI'=>1
         ];
 
 //        $data =[];