对接支付宝支付
注册支付宝企业账号 申请支付产品 成为支付宝开发者 下面假如您已经申请了“手机网站支付” 开发设置 主要设置了 接口加签方式 和 IP白名单 ,其他用不到 接口加签方式 普通公钥与公钥证书区别1️⃣ 应用私钥、公钥和支付宝公钥2️⃣ 应用公钥(public key)需提供给支付宝账号管理者上传到支付宝开放平台。 应用私…
关于 php 的技术笔记与实践,集中在这里。
注册支付宝企业账号 申请支付产品 成为支付宝开发者 下面假如您已经申请了“手机网站支付” 开发设置 主要设置了 接口加签方式 和 IP白名单 ,其他用不到 接口加签方式 普通公钥与公钥证书区别1️⃣ 应用私钥、公钥和支付宝公钥2️⃣ 应用公钥(public key)需提供给支付宝账号管理者上传到支付宝开放平台。 应用私…
微信支付回调返回的参数(POST) Wechatpay-Serial(header) Wechatpay-Signature(header) Wechatpay-Timestamp(header) Wechatpay-Nonce(header) 主体(body) 验证签名 $verify=$smpw->_sign_ve…
GET 获取平台证书列表 https://api.mch.weixin.qq.com/v3/certificates 访问成功可得到类似数据 [ { "effective_time": "2021-05-19T18:40:14+08:00", "encrypt_certificate": { "algorithm": …
安装 composer require phpmailer/phpmailer demo 'smtp.mxhichina.com', 'SMTP_PORT' => '25', 'SMTP_USER' => 'notifications-noreply@xx.com', 'SMTP_PASS' => '123456', …
PHPExcel已经不再维护,PhpSpreadsheet是PHPExcel的下一个版本 安装 composer require phpoffice/phpspreadsheet 生成excel # conf.php Alignment::VERTICAL_CENTER, 'rotation'=>0, 'wrap'=>…
$data=[ ['loc'=>'https://www.cuiwei.net/', 'lastmod'=>'2009-01-01'],//首页 ]; $xml=createXML($data); file_put_contents('sitemap.xml', $xml); function createXML($d…
Language Options #开启短标签 short_open_tag = On #设置可执行php的目录,多个目录用冒号隔开 open_basedir = /data/www Error handling and logging #错误级别 error_reporting = E_ALL & ~E_DEPREC…
curl curl http://www.icanhazip.com/ curl -x 127.0.0.1:3128 http://www.icanhazip.com/ socks5 curl --socks5 127.0.0.1:3129 http://www.icanhazip.com/ php define(UR…
如果是新服务器,建议先看下这篇文章: CentOS服务器初始化配置 php8 编译安装和其他低版本基本一致 准备 #编译工具 yum -y install gcc gcc-c++ make #依赖 yum -y install zlib-devel libxml2-devel openssl openssl-devel…