"60000100", "ret_url"=>"http://www.xxx.com/xxxx", "notify_url"=>"http://www.xxx.com/xxxx", "goods_id"=>"", "goods_inf"=>"商品描述", "order_id"=>rand(0,999999999), "mer_date"=>date ( "Ymd" ), "amount"=>"1", "scancode_type"=>"WECHAT", "mer_priv"=>"", "expand"=>"", "user_ip"=>"", "expire_time"=>"", ); $service = new UmfService("60000100","C:/60000100_.key.pem"); $res = $service->activeNewScanPaymentMap($params); var_dump($res); } //php代码示例 public function mobileOrderMap(){ $params = array( "mer_id"=>"60000100", "ret_url"=>"http://www.xxx.com/xxxx", "notify_url"=>"http://www.xxx.com/xxxx", "goods_id"=>"", "goods_inf"=>"商品描述", "order_id"=>rand(0,999999999), "mer_date"=>date ( "Ymd" ), "amount"=>"1", "scancode_type"=>"WECHAT", "mer_priv"=>"", "expand"=>"", "user_ip"=>"", "expire_time"=>"", ); // dump(dirname(__FILE__)."/cert/55282_.key.pem"); // $service = new UmfService("55282", dirname(__FILE__)."/cert/55282_.key.pem"); $service = new UmfService("55282", "../cert/55282_.key.pem"); $res = $service->miniProgramPayMap($params); var_dump("# res: ", $res); } } // $pay = new Pay(); // $result = $pay->mobileOrderMap(); // var_dump($pay); //