添加支付宝支付配置，每个appId只需添加一次，相同appId将被覆盖

@param aliPayApiConfig
支付宝支付配置
@return {AliPayApiConfig} 支付宝支付配置
545982
public static AliPayApiConfig putApiConfig(AliPayApiConfig aliPayApiConfig) {
		if (CFG_MAP.size() == 0) {
			CFG_MAP.put(DEFAULT_CFG_KEY, aliPayApiConfig);
		}
		return CFG_MAP.put(aliPayApiConfig.getAppId(), aliPayApiConfig);
	}
885652
function(appConfig) {

		// make a copy of the app config to ensure that the original is not modified
		appConfig = jQuery.extend(true, {}, appConfig);

		// create the instanceId for the app
		appConfig.instanceId = appConfig.instanceId || F2.guid();

		// default the views if not provided
		appConfig.views = appConfig.views || [];
		if (!F2.inArray(F2.Constants.Views.HOME, appConfig.views)) {
			appConfig.views.push(F2.Constants.Views.HOME);
		}

		//pass container-defined locale to each app
		if (F2.ContainerConfig.locale){
			appConfig.containerLocale = F2.ContainerConfig.locale;
		}

		return appConfig;
	}
1087486
public static AlipayCommerceCityfacilitatorStationQueryResponse stationQueryToResponse(
			AlipayCommerceCityfacilitatorStationQueryModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorStationQueryRequest request = new AlipayCommerceCityfacilitatorStationQueryRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
80330
public function getPaySign($openid='',$body,$attach,$out_trade_no,$total_fee,$notify_url,$time_start=0,$time_expire=0){
        $wxpay = new PayLib\WxPayApi($this->type);
        //统一下单
        $input = new PayLib\WxPayUnifiedOrder();

        if($this->type === 'mp'){
            if(empty($openid)){
                throw new Exception('请传入openid','OPENID_EMPTY');
            }
            $input->SetOpenid($openid);
            $input->SetTrade_type('JSAPI');#接口
        }
        elseif($this->type === 'app'){
            $input->SetTrade_type('APP');#接口
        }

        $input->SetBody($body);//设置商品或支付单简要描述
        $input->SetOut_trade_no($out_trade_no);#设置单号
        $input->SetTotal_fee($total_fee);#设置支付金额
        $input->SetAttach($attach);//自定义的参数

        $input->SetNotify_url($notify_url);#回调地址


        if($time_start!==0){
            $input->SetTime_start($time_start);         //交易起始时间
        }

        if($time_expire!==0){
            $input->SetTime_expire($time_expire);       //交易结束时间
        }

        $order = PayLib\Wxpayapi::unifiedOrder($input);#生成订单

        if(empty($order['return_code'])||$order['return_code']!=='SUCCESS'){
            throw new Exception('微信错误,'.$order['return_msg'],'WECHAT_ERROR');
        }

        if(empty($order['result_code'])||$order['result_code']!=='SUCCESS'){
            throw new Exception('生成微信单号失败,'.$order['return_msg'],'WECHAT_ERROR');
        };

        if(!array_key_exists("appid", $order)|| !array_key_exists("prepay_id", $order)|| $order['prepay_id'] == ""){
            throw new Exception("参数错误",'PARAMS_ERROR');
        }

        if($this->type == 'mp'){
            $jsObj=new PayLib\WxPayJsApiPay();
            $jsObj->SetAppid($order["appid"]);
            $timeStamp = time();
            $jsObj->SetTimeStamp("$timeStamp");
            $jsObj->SetNonceStr(PayLib\WxPayApi::getNonceStr());
            $jsObj->SetSignType("MD5");
            $jsObj->SetPackage("prepay_id=" . $order['prepay_id']);
            $jsObj->SetPaySign($jsObj->MakeSign());

            $jsApiParameters = json_encode($jsObj->GetValues());
            if (!$jsApiParameters) {
                throw new Exception('微信接口对接失败','WECHAT_ERROR');
            }
        }
        elseif($this->type == 'app'){
            $appObj=new PayLib\WxPayAppApiPay();
            $appObj->SetAppid($order["appid"]);
            $timeStamp = time();
            $appObj->SetTimeStamp("$timeStamp");
            $appObj->SetNonceStr(PayLib\WxPayApi::getNonceStr());
            $appObj->SetPackage("Sign=WXPay");
            $appObj->SetPartnerId(PayLib\WxPayConfig::$MCHID);
            $appObj->SetPrepayId($order['prepay_id']);
            $appObj->SetSign();

            $getValues=$appObj->GetValues();
            $getValues['orderid']=$out_trade_no;

            $jsApiParameters = json_encode($getValues);
            //log_message('error',$jsApiParameters);
            if (!$jsApiParameters) {
                throw new Exception('微信接口对接失败','WECHAT_ERROR');
            }
        }
        else{
            throw new Exception('位置类型','TYPE_ERROR');
        }

        return $jsApiParameters;
    }
568920
static NomadApiClient getApiClient(String uri) {
    return new NomadApiClient(
        new NomadApiConfiguration.Builder()
            .setAddress(uri)
            .build());
  }
683025
function () {
        return {
            /**
             * 是否不存在 placeholder 时候，根据规则自动添加 placeholder
             *
             * @type {boolean}
             */
            autoInsertPlaceholder: true,

            /**
             * 模块加载器文件名
             *
             * @type {Array.<string>}
             */
            loaderScripts: ['require.js', 'esl.js', 'mod.js', 'sea.js', 'system.js'],
	    
            /**
             * 脚本占位符
             *
             * @type {string}
             */
            scriptPlaceholder: '<!--SCRIPT_PLACEHOLDER-->',
	    
            /**
             * 异步脚本占位符
             *
             * @type {string}
             */
            scriptAsyncPlaceholder: '<!--SCRIPT_ASYNC_PLACEHOLDER-->',

            /**
             * 样式占位符
             *
             * @type {string}
             */
            stylePlaceholder: '<!--STYLE_PLACEHOLDER-->',

            /**
             * 资源配置占位符
             *
             * @type {string}
             */
            resourceConfigPlaceholder:
                fis.config.get('placeholder.requireconfig')
                || '<!--RESOURCECONFIG_PLACEHOLDER-->'
        };
    }
651413
public static void tradePage(HttpServletResponse httpResponse, AlipayTradePagePayModel model, String notifyUrl,
			String returnUrl) throws AlipayApiException, IOException {
		AlipayTradePagePayRequest request = new AlipayTradePagePayRequest();
		request.setBizModel(model);
		request.setNotifyUrl(notifyUrl);
		request.setReturnUrl(returnUrl);
		String form = AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().pageExecute(request).getBody();// 调用SDK生成表单
		httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
		httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
		httpResponse.getWriter().flush();
		httpResponse.getWriter().close();
	}
39942
public String appPay(AppPayDetail appPayDetail){
        checkNotNullAndEmpty(alipay.appPriKey, "app private key");
        Map<String, String> appPayParams = buildAppPayParams(appPayDetail);
        return buildRsaPayString(appPayParams);
    }
1206613
function getOriginApi(apiMap, apiName) {
    // 如果为全局mock模式，则直接修改apiName对应的mock路径，例如：
    // http://127.0.0.1:3000/__MOCK__/blog/blogApi
    if (config.isFullMock) {
      return `${config.mockPath}/${apiName}/`
    } else {
      const originApi = apiMap[apiName];

      // 如果在api配置中查找不到对应的api则报错
      if (!originApi) {
        throw `Undefined proxy url：${path} , please check your api config!`;
      }

      // 对于路由结尾强制添加"/"
      return originApi.replace(/([^\/])$/,'$1/');
    }


  }
331575
public function get_jssdk_parameters_current_wx_user(InterfacePay $interface,$redirect_uri = null){
        if (!$interface || !$redirect_uri) throw new \Exception('WeixinPayApi params exception');
        $config = $this->config;
        if (!isset($_GET['code'])) {
            /*获取订单号*/
            $out_trade_no=$_GET['out_trade_no'];
            if (!$out_trade_no) throw new \Exception('WeixinPayApi out_trade_no exception');
            /*校验订单是否能够支付*/
            $can_pay = $interface->check_can_pay();
            if (!$can_pay) {
                if ($this->business_interface) $this -> business_interface -> log("out_trade_no:$out_trade_no can not pay");
                return $can_pay;
            }

            $this->get_code($redirect_uri,$out_trade_no,'snsapi_base',self::PROCESS_REDIRECT);
        }else{
            /*如果有code参数；则表示获取到openid*/
            $code = $_GET['code'];

            /*校验订单是否能够支付*/
            $can_pay = $interface->check_can_pay();
            if (!$can_pay) {
                if ($this->business_interface) $this -> business_interface -> log("received wx_code out_trade_no:{$interface->get_out_trade_no()} can not pay");
                return $can_pay;
            }

            /*组合获取prepay_id的url*/
            $result = self::curl_auth_access_token($code);

            $openid = $result['openid'];

            /*封装统一下单数据*/
            $order = $interface -> create_unified_order_data($openid);

            /*统一下单 获取prepay_id*/
            $unified_order=$this->unified_order($order);

            /*组合jssdk需要用到的数据*/
            $time=time();
            $data = [
                'appId'=>$config['app_id'], /*appid*/
                'timeStamp'=>strval($time), /*时间戳*/
                'nonceStr'=>$unified_order['nonce_str'], /*随机字符串*/
                'package'=>'prepay_id='.$unified_order['prepay_id'],/* 预支付交易会话标识*/
                'signType'=>'MD5'//加密方式
            ];

            /*生成签名*/
            $data['paySign']=$this->make_sign($data);
            return $data;
        }
    }
598836
function HubtelMobilePayment({
  secretid = required('secretid'),
  clientid = required('clientid'),
  merchantaccnumber = required('merchantaccnumber'),
}) {
  this.config = {}
  this.config['clientid'] = clientid
  this.config['secretid'] = secretid
  this.config['merchantaccnumber'] = merchantaccnumber
  this.hubtelurl = 'https://api.hubtel.com/v1/merchantaccount/'
}
496103
public static AlipayFundTransToaccountTransferResponse transferToResponse(
			AlipayFundTransToaccountTransferModel model) throws AlipayApiException {
		AlipayFundTransToaccountTransferRequest request = new AlipayFundTransToaccountTransferRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
998048
public static AlipayFundAuthOrderFreezeResponse authOrderFreezeToResponse(AlipayFundAuthOrderFreezeModel model)
			throws AlipayApiException {
		AlipayFundAuthOrderFreezeRequest request = new AlipayFundAuthOrderFreezeRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
271628
public static AlipayTradeRefundResponse tradeRefundToResponse(AlipayTradeRefundModel model)
			throws AlipayApiException {
		AlipayTradeRefundRequest request = new AlipayTradeRefundRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
1042649
public Optional<MobileApplication> show(long applicationId)
    {
        return HTTP.GET(String.format("/v2/mobile_applications/%d.json", applicationId), MOBILE_APPLICATION);
    }
167717
public static void wapPay(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
			String notifyUrl) throws AlipayApiException, IOException {
		String form = wapPayStr(response, model, returnUrl, notifyUrl);
		HttpServletResponse httpResponse = response;
		httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
		httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
		httpResponse.getWriter().flush();
	}
422929
public static AlipayCommerceCityfacilitatorVoucherBatchqueryResponse voucherBatchqueryToResponse(
			AlipayCommerceCityfacilitatorVoucherBatchqueryModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorVoucherBatchqueryRequest request = new AlipayCommerceCityfacilitatorVoucherBatchqueryRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}