コード例 #1
0
ファイル: bfb_pay.cfg.php プロジェクト: 6662680/qday_wx
/**
 * [SxxPro System] Copyright (c) 2014 012WZ.COM
 * SxxPro is NOT a free software, it under the license terms, visited http://www.qdaygroup.com/ for more details.
 */
final class sp_conf
{
    public static $SP_NO;
    public static $SP_KEY_FILE;
    public static $LOG_FILE;
    const SP_PAY_RESULT_SUCCESS = 1;
    const SP_PAY_RESULT_WAITING = 2;
    const BFB_PAY_DIRECT_NO_LOGIN_URL = "https://www.baifubao.com/api/0/pay/0/direct";
    const BFB_PAY_DIRECT_LOGIN_URL = "https://www.baifubao.com/api/0/pay/0/direct/0";
    const BFB_PAY_WAP_DIRECT_URL = "https://www.baifubao.com/api/0/pay/0/wapdirect";
    const BFB_QUERY_ORDER_URL = "https://www.baifubao.com/api/0/query/0/pay_result_by_order_no";
    const BFB_QUERY_RETRY_TIME = 3;
    const BFB_PAY_RESULT_SUCCESS = 1;
    const BFB_NOTIFY_META = "<meta name=\"VIP_BFB_PAYMENT\" content=\"BAIFUBAO\">";
    const SIGN_METHOD_MD5 = 1;
    const SIGN_METHOD_SHA1 = 2;
    const BFB_PAY_INTERFACE_SERVICE_ID = 1;
    const BFB_QUERY_INTERFACE_SERVICE_ID = 11;
    const BFB_INTERFACE_VERSION = 2;
    const BFB_INTERFACE_ENCODING = 1;
    const BFB_INTERFACE_OUTPUT_FORMAT = 1;
    const BFB_INTERFACE_CURRENTCY = 1;
}
sp_conf::$LOG_FILE = IA_ROOT . '/data/logs/bfb_' . date('Ymd') . '.log';
sp_conf::$SP_NO = $payment['mchid'];
sp_conf::$SP_KEY_FILE = $payment['signkey'];
コード例 #2
0
ファイル: bfb_pay.cfg.php プロジェクト: aspnmy/weizan
    const BFB_PAY_WAP_DIRECT_URL = "https://www.baifubao.com/api/0/pay/0/wapdirect/0";
    // 百付宝订单号查询支付结果接口URL
    const BFB_QUERY_ORDER_URL = "https://www.baifubao.com/api/0/query/0/pay_result_by_order_no";
    // 百付宝订单号查询重试次数
    const BFB_QUERY_RETRY_TIME = 3;
    // 百付宝支付成功
    const BFB_PAY_RESULT_SUCCESS = 1;
    // 百付宝支付通知成功后的回执
    const BFB_NOTIFY_META = "<meta name=\"VIP_BFB_PAYMENT\" content=\"BAIFUBAO\">";
    // 签名校验算法
    const SIGN_METHOD_MD5 = 1;
    const SIGN_METHOD_SHA1 = 2;
    // 百付宝即时到账接口服务ID
    const BFB_PAY_INTERFACE_SERVICE_ID = 1;
    // 百付宝查询接口服务ID
    const BFB_QUERY_INTERFACE_SERVICE_ID = 11;
    // 百付宝接口版本
    const BFB_INTERFACE_VERSION = 2;
    // 百付宝接口字符编码
    const BFB_INTERFACE_ENCODING = 1;
    // 百付宝接口返回格式:XML
    const BFB_INTERFACE_OUTPUT_FORMAT = 1;
    // 百付宝接口货币单位:人民币
    const BFB_INTERFACE_CURRENTCY = 1;
}
$settings = get_settings();
//exit(json_encode($settings));
sp_conf::$LOG_FILE = IA_ROOT . '/data/logs/bfb_' . date('Ymd') . '.log';
sp_conf::$SP_NO = $settings['mchid'];
sp_conf::$SP_KEY_FILE = $settings['signkey'];