<?php

namespace loyalsoft;

/**
 * Description of config_alipay
 * @version
 *          1.0.0 Created at 2018-1-4. by --gwang
 * @author gwang (mail@wanggangzero.cn)
 * @copyright ? 2018-1-4, SJZ LoyalSoft Corporation & gwang. All rights reserved.
 */
class config_alipay {

    /**
     * 是否沙箱环境
     */
    const sandbox = false;

    /**
     * @var string 在支付宝后台注册的应用ID
     */
    public $appId;
    public $gatewayUrl;
    public $notify_Url;
    public $rsaPrivateKey; //'请填写开发者私钥去头去尾去回车，一行字符串';
    public $alipayrsaPublicKey; //'请填写支付宝公钥，一行字符串';

    /**
     * @var string 与官网后台约定的秘钥
     */
    public $appkey;

    /**
     * configs for config_alipay
     * @return config_alipay Description
     */
    static function Inst() {
        $c = new config_alipay();
        if (self::sandbox) {
            $c->appId = '2016082700322931';
            $c->notify_Url = 'http://115.159.121.129/ylsj/Gameserver/Amfphp/service_call/pay/official/alipay/notify.php';
            $c->gatewayUrl = "https://openapi.alipay.com/gateway.do";
            $c->rsaPrivateKey = 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCcDYWl3khY9aJzI1pFRn+47AWGNI3iS3SBka6bTlDWeZOUhYiG0WwrWnIcqMdK3wL4OmtaPS9hGls+HyaRpBCczV4wlwRcD/AeR18qwXIumMOFTMGPQat2DAavhdOeFJZlktS8sVgZhcxR1OYU81h/OG/M1zWizrQpRHwIhx7ttOdzT4GG3EgUBRj3FtFI/lU7dH2pgRx61uCEjTggCqaW7X1plBm1QYxQFvI57xqy9wOm+uPAC2TmmR3bDyIqYTHQ+cu/Q728QWhDnMrGwVpoEU8gnhlFH4hyoZ2GuZX4WXRzePYPuLaKIqtJl/uR4cOTeYthcDFpau+FXI/dFLd/AgMBAAECggEBAIvMlVk13AxN6X1KQ3liIdOxJXXIKP98Z2AX+ZtKOqMZATwBsIBOpp/kA+xmyzrotIlaFIgf3g0YhnsNfwjkOLmwRVw0PgSXhp4phDkSWc8ira4CSDilNQyo02h09FJe0SkntAt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3sRl+3cr0';
            $c->alipayrsaPublicKey = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3GQrGmNZcv4EqhiLOJz9jVzV8VDxNjyg29Af0kSPnT/8274Yeb/rDKowitbSZxeGhpIe+J4jiI9tpuhyB2PltxYN9EDOdkJ0fudDVS3lGotQn5noZ8ccEU//T55c5TMlV2TzhhIfw7MhMeJeJDCPcm33Q0085H6SRRLvjSwRbv0bPmJT0F1oUASk0fvHAIXaoQDNy/YjEWziEVCBSTKuI35BGT8czVUXQq++7OejUZN2O64Fxs/JIv1jD3Ww+Su1je9L3fb4FbEQsy4Q+fp27Nh2dkvNli7C5JA2cvKUTD95fgtsIQwsv19EnzAZCBaIe1PWdiKVkqayh+gPqQZh1QIDAQAB';
        } else {
            $c->appId = '2016082700322931';
            $c->notify_Url = 'http://www.game7000.com/PaySDK/official/notify.php';
            $c->gatewayUrl = "https://openapi.alipay.com/gateway.do";
            $c->rsaPrivateKey = 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCcDYWl3khY9aJzI1pFRn+47AWGNI3iS3SBka6bTlDWeZOUhYiG0WwrWnIcqMdK3wL4OmtaPS9hGls+HyaRpBCczV4wlwRcD/AeR18qwXIumMOFTMGPQat2DAavhdOeFJZlktS8sVgZhcxR1OYU81h/OG/M1zWizrQpRHwIhx7ttOdzT4GG3EgUBRj3FtFI/lU7dH2pgRx61uCEjTggCqaW7X1plBm1QYxQFvI57xqy9wOm+uPAC2TmmR3bDyIqYTHQ+cu/Q728QWhDnMrGwVpoEU8gnhlFH4hyoZ2GuZX4WXRzePYPuLaKIqtJl/uR4cOTeYthcDFpau+FXI/dFLd/AgMBAAECggEBAIvMlVk13AxN6X1KQ3liIdOxJXXIKP98Z2AX+ZtKOqMZATwBsIBOpp/kA+xmyzrotIlaFIgf3g0YhnsNfwjkOLmwRVw0PgSXhp4phDkSWc8ira4CSDilNQyo02h09FJe0SkntAtiuLEMqzD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