新增商户进件 * 接口:/api/v3/tkbs/merchant_encry * 请求加密: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([ 'org_code' => JINGJIAN_ORG_CODE, 'user_no' => JINGJIAN_USER_NO, 'email' => '2804711849@qq.com', 'busi_code' => 'WECHAT_PAY', 'mer_reg_name' => '花掌柜进件测试', 'mer_type' => 'TP_PERSONAL', 'mer_name' => '花掌柜进件测试商户', 'mer_addr' => '柳州市解放南路金鱼巷1号花旗壹号楼15-10', 'province_code' => '6100', 'city_code' => '6140', 'county_code' => '986140', 'license_name' => '烟酒行批发24小时', 'license_no' => '92450202MA5MWYQK23', 'license_dt_start' => '2017-11-21', 'license_dt_end' => '9999-12-31', 'latitude' => '114.034257', 'longtude' => '22.663572', 'source' => 'H5', 'business_content' => '烟酒行批发24小时', 'lar_name' => '徐哈哈', 'lar_id_type' => '01', 'lar_id_card' => '460027200111297612', 'lar_id_card_start' => '2015-01-16', 'lar_id_card_end' => '2035-01-16', 'contact_mobile' => '18276770550', 'contact_name' => '徐哈哈', 'openning_bank_code' => '103614010818', 'openning_bank_name' => '中国农业银行广西柳州市柳南支行营业室', 'clearing_bank_code' => '103100000026', 'settle_province_code' => '45', 'settle_province_name' => '广西', 'settle_city_code' => '6140', 'settle_city_name' => '柳州市', 'account_no' => '6228480850854176714', 'account_name' => '徐丽', 'account_type' => '58', 'account_id_card' => '460027200111297612', 'account_id_dt_start' => '2015-01-16', 'account_id_dt_end' => '2035-01-16', 'settle_type' => 'D1', 'settlement_type' => 'AUTOMATIC', 'biz_content' => [ 'term_num' => '1', 'mcc' => '11002', 'activity_id' => '37', 'fees' => [ ['fee_code' => 'WECHAT', 'fee_value' => '0.60'], ['fee_code' => 'ALIPAY', 'fee_value' => '0.60'], ['fee_code' => 'SCAN_PAY', 'fee_value' => '0.60'], ['fee_code' => 'DEBIT_CARD', 'fee_value' => '0.38', 'top_fee' => '20'], ['fee_code' => 'CREDIT_CARD', 'fee_value' => '0.6'], ['fee_code' => 'UNIONPAY_WALLET_DEBIT_FEE', 'fee_value' => '0.38', 'top_fee' => '20'], ['fee_code' => 'UNIONPAY_WALLET_CREDIT_FEE', 'fee_value' => '0.6'], ], ], 'attchments' => [ ['id' => 'merchant/null/20231227172245221010CHECKSTAND_IMG.png', 'type' => 'CHECKSTAND_IMG'], ['id' => 'merchant/null/20231227172251776083SHOP_OUTSIDE_IMG.png', 'type' => 'SHOP_OUTSIDE_IMG'], ], ]); try { $response = $api->tradeApi('/api/v3/tkbs/merchant_encry', $request); // print_r($response->getRespData()); // echo $response->getCode(); // print_r($response->getHeaders()); echo $response->getOriginalText(); } catch (\Lakala\OpenAPISDK\V3\ApiException $e) { echo $e->getMessage(); }