当前位置:网站首页>When PHP initiates Alipay payment, the order information is garbled and solved
When PHP initiates Alipay payment, the order information is garbled and solved
2022-08-02 03:52:00 【auspi12341】
$encode = mb_detect_encoding($body, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5'));$result = $pay->apply(['out_trade_no' => $order_num, // Merchant order number'total_amount' => $money, // payment amount'subject' =>urlencode(mb_convert_encoding($body, 'GB2312', $encode ))// payment order description]);On the code directly, the order information needs to be converted to GB2312 encoding, and then urlencode encoding
边栏推荐
猜你喜欢

ES6迭代器解释举例

Error in render: “TypeError: Cannot read properties of null (reading ‘0‘)“ 报错解决方案

canvas--pie chart

1.8今日学习

Circular linked list---------Joseph problem
![微信小程序开发视频加载:[渲染层网络层错误] Failed to load media](/img/24/e12a1312aee28a43428b2ae0bfbe00.png)
微信小程序开发视频加载:[渲染层网络层错误] Failed to load media

如何计算地球上两点的距离(附公式推导)

DOM manipulation---magnifying glass case

微信小程序云开发如何将页面生成为pdf?

你的本地创建的项目库还在手动创建远端代码仓库再推送吗,该用它了
随机推荐
解决MySQL创建子视图并查看的时候,字符集报错问题
uniapp | 使用npm update更新后编译报错问题
js作用域与闭包
display,visibility,opacity
【 application 】 life many years of operations, what turned scored 12 k + annual bonus salary?
debian 10 nat and routing forwarding
meime模块
每日五道面试题总结 22/7/26
每日五道面试题总结 22/7/21
逍遥多开模拟器ADB驱动连接
4.PHP数组与数组排序
PHP8.2中字符串变量解析的新用法
你的本地创建的项目库还在手动创建远端代码仓库再推送吗,该用它了
1.6一些今日学习
二维码生成API接口,可以直接作为A标签连接
客户评分控件
Guangzhou Huawei Interview Summary
---static page---
由中序遍历和前序遍历得到后序遍历(树的遍历)
mysql阶段总结