<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2017/12/27
 * Time: 下午8:30
 */

namespace App\Libs\lianlianpay;


class llpay_config
{
    public static function getLlpayConfig() {
        //商户编号是商户在连连钱包支付平台上开设的商户号码，为18位数字，如：201306081000001016
        $llpay_config = [];
//        $llpay_config['oid_partner'] = '201711150001149658';//白驹
//        //秘钥格式注意不能修改（左对齐，右边有回车符）  商户私钥，通过openssl工具生成,私钥需要商户自己生成替换，对应的公钥通过商户站上传
//        $llpay_config['RSA_PRIVATE_KEY'] ='-----BEGIN RSA PRIVATE KEY-----
//MIICXgIBAAKBgQDDT0n63hIORrhbAuh2IdhlSpqYxvDnNe7ZBkKmIFTal7q6bkQ3
//RXH6YUYq4pHPZ1SUzhKVp9xV67G4FB6swro7TMh1G1L+CuR5x4YKw0hZvYrlyYoX
//9kOGKwWv3YOK4tpTr+T4mE4jvEdImEZabDIizAXCkOL5880nN89nbYZfHwIDAQAB
//AoGBAKR6JmwtDfmV1vVWKpwpfoo23KCikQe1pLKBkilC+xKnSqpr5+jAA+9+cc/1
//xCNs+o7iSEZd+bEl7yF9WCPXTWrgLS7hxKyQ9v/XtTTmLhLfFs+iHcv2la/xkEx9
//YRnTpzB1F/WGJz7ML+OCbN0vvUiOlkKonghK1SW/fVaYAVthAkEA5/Bzbt3dIQ01
//bzE0XGDKFE3kWsxt672COXJzQbOWo71sx4l6FHkte98KRhSChvaPwhjDkNp6ub/D
///oZzxoqRsQJBANeSE8JX/2SkEZx15cDfLeVfWsFb1aZhmemWLWHUQMI6P7WPWCxR
//zkHJSRz+ppTXfntYftFGSAjdQHg6aO3O4c8CQEKrNSMLFwLnHxLlG93p3GxVr2wC
//Ex6ODJ6irUqXapeKXXhFphe4dUCD7hoSzyooOU5be+tpQZme66F/2EubjSECQQDL
//WdMl21jiGRs72sN245Ep9H9qMzUhlKRaAv6gcFb+YXBD1wq4FBtbV4OOxHFjqrx3
//oo1O4NuG8R+lyoO9ARFlAkEAvpdb9auIwJMyuvBrSAn/8E27pjPRNAWJpRSwCs1S
//HVnSafIMYtJgoOnxIqrB6gvuC/dN10NuvCt2Wdmw/addTg==
//-----END RSA PRIVATE KEY-----';
//        //连连银通公钥
//        $llpay_config['LIANLIAN_PUBLICK_KEY'] ='-----BEGIN PUBLIC KEY-----
//MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSS/DiwdCf/aZsxxcacDnooGph3d2JOj5GXWi+
//q3gznZauZjkNP8SKl3J2liP0O6rU/Y/29+IUe+GTMhMOFJuZm1htAtKiu5ekW0GlBMWxf4FPkYlQ
//kPE0FtaoMP3gYfh+OwI+fIRrpW3ySn3mScnc6Z700nU/VYrRkfcSCbSnRwIDAQAB
//-----END PUBLIC KEY-----';
//        //安全检验码，以数字和字母组成的字符
//        $llpay_config['key'] = '2017_zhuishuyun_2017*123456';






        $llpay_config['oid_partner'] = '201711230001180015';//海南倍道网络科技有限公司
        //秘钥格式注意不能修改（左对齐，右边有回车符）  商户私钥，通过openssl工具生成,私钥需要商户自己生成替换，对应的公钥通过商户站上传
        $llpay_config['RSA_PRIVATE_KEY'] ='-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDDT0n63hIORrhbAuh2IdhlSpqYxvDnNe7ZBkKmIFTal7q6bkQ3
RXH6YUYq4pHPZ1SUzhKVp9xV67G4FB6swro7TMh1G1L+CuR5x4YKw0hZvYrlyYoX
9kOGKwWv3YOK4tpTr+T4mE4jvEdImEZabDIizAXCkOL5880nN89nbYZfHwIDAQAB
AoGBAKR6JmwtDfmV1vVWKpwpfoo23KCikQe1pLKBkilC+xKnSqpr5+jAA+9+cc/1
xCNs+o7iSEZd+bEl7yF9WCPXTWrgLS7hxKyQ9v/XtTTmLhLfFs+iHcv2la/xkEx9
YRnTpzB1F/WGJz7ML+OCbN0vvUiOlkKonghK1SW/fVaYAVthAkEA5/Bzbt3dIQ01
bzE0XGDKFE3kWsxt672COXJzQbOWo71sx4l6FHkte98KRhSChvaPwhjDkNp6ub/D
/oZzxoqRsQJBANeSE8JX/2SkEZx15cDfLeVfWsFb1aZhmemWLWHUQMI6P7WPWCxR
zkHJSRz+ppTXfntYftFGSAjdQHg6aO3O4c8CQEKrNSMLFwLnHxLlG93p3GxVr2wC
Ex6ODJ6irUqXapeKXXhFphe4dUCD7hoSzyooOU5be+tpQZme66F/2EubjSECQQDL
WdMl21jiGRs72sN245Ep9H9qMzUhlKRaAv6gcFb+YXBD1wq4FBtbV4OOxHFjqrx3
oo1O4NuG8R+lyoO9ARFlAkEAvpdb9auIwJMyuvBrSAn/8E27pjPRNAWJpRSwCs1S
HVnSafIMYtJgoOnxIqrB6gvuC/dN10NuvCt2Wdmw/addTg==
-----END RSA PRIVATE KEY-----';
        //连连银通公钥
        $llpay_config['LIANLIAN_PUBLICK_KEY'] ='-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSS/DiwdCf/aZsxxcacDnooGph3d2JOj5GXWi+
q3gznZauZjkNP8SKl3J2liP0O6rU/Y/29+IUe+GTMhMOFJuZm1htAtKiu5ekW0GlBMWxf4FPkYlQ
kPE0FtaoMP3gYfh+OwI+fIRrpW3ySn3mScnc6Z700nU/VYrRkfcSCbSnRwIDAQAB
-----END PUBLIC KEY-----';
        //安全检验码，以数字和字母组成的字符
        $llpay_config['key'] = '2017_zhuishuyun_2017*123456';



        //↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
        //版本号
        $llpay_config['version'] = '1.0';
        //防钓鱼ip
//        $llpay_config['userreq_ip'] = '115.199.255.192';
        //证件类型
//        $llpay_config['id_type'] = '0';
        //签名方式 不需修改
        $llpay_config['sign_type'] = strtoupper('RSA');
        //订单有效时间  分钟为单位，默认为10080分钟（7天）
//        $llpay_config['valid_order'] ="30";
        //字符编码格式 目前支持 gbk 或 utf-8
        $llpay_config['input_charset'] = strtolower('utf-8');
        //访问模式,根据自己的服务器是否支持ssl访问，若支持请选择https；若不支持请选择http
//        $llpay_config['transport'] = 'http';

        return $llpay_config;
    }
}