获取商户信息 * 接口:/api/v3/tkbs/open_merchant_info * 请求加密:SM4 返回解密:SM4 */ $config = require __DIR__ . '/bootstrap.php'; $api = new \Lakala\OpenAPISDK\V3\Api\LakalaApi($config, \Lakala\OpenAPISDK\V3\Api\EncryptMode::BOTH); $request = new \Lakala\OpenAPISDK\V3\Model\ModelRequest(); $request->setReqData([ //'merchant_no' => "100155299",//,"100155305", //"100155299", //"100155296", 'customer_no' => '100155305', 'org_code' => JINGJIAN_ORG_CODE, ]); try { $response = $api->tradeApi('/api/v3/tkbs/open_merchant_info', $request); print_r($response->getRespData()); // echo $response->getCode(); // print_r($response->getHeaders()); // echo $response->getOriginalText(); } catch (\Lakala\OpenAPISDK\V3\ApiException $e) { echo $e->getMessage(); }