当前位置:网站首页>The parameter field of the callback address of the payment interface is "notify_url", and an error occurs after encoding and decoding the signed special character URL (,,,,,)
The parameter field of the callback address of the payment interface is "notify_url", and an error occurs after encoding and decoding the signed special character URL (,,,,,)
2022-06-26 05:10:00 【You are sexy!】
Today's docking payment interface , Parameter splicing is finished , When you start calling , Has been an error , Signature error .
But I use the signature given by a third party to test mode Test signature , The return is true.
This is very fucking strange .
After comparing the parameters one by one , I find ,notify_url There is a problem with the parameters .
need Url The original content of the code is “¬ify_url=xxxx” after url Encode and then decode back “¬” The part becomes “¬”
It goes like this :“name=xxxx¬ify_url=xxxx&randomstr”
No wonder when I call, I always say that the signature is wrong , The field names have changed , It's strange not to report mistakes .
Then Baidu looks up the information
An old man said :” Leave the original text in url Coded & Replace the symbol with &, It's normal to transcode after coding .“
That's easy , Replace function with
$url = str_replace("&","&",'https:www.xxx.com?'.$str);
So the return is “name=xxxx¬ify_url=xxxx&randomstr”
边栏推荐
- Create SSH key pair configuration steps
- 天才制造者:獨行俠、科技巨頭和AI|深度學習崛起十年
- Dbeaver installation and configuration of offline driver
- 关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)
- 程序人生
- Pycharm package import error without warning
- [IDE(ImageBed)]Picgo+Typora+aliyunOSS部署博客图床(2022.6)
- Image translation /gan:unsupervised image-to-image translation with self attention networks
- Mise en œuvre du routage dynamique par zuul
- 【Unity3D】人机交互Input
猜你喜欢
6.1 - 6.2 introduction to public key cryptography
Yolov5 super parameter setting and data enhancement analysis
localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
Pycharm package import error without warning
torchvision_ Transform (image enhancement)
UWB超高精度定位系统原理图
天才制造者:獨行俠、科技巨頭和AI|深度學習崛起十年
百度API地图的标注不是居中显示,而是显示在左上角是怎么回事?已解决!
Genius makers: lone Rangers, technology giants and AI | ten years of the rise of in-depth learning
MySql如何删除所有多余的重复数据
随机推荐
zencart新建的URL怎么重写伪静态
What is UWB in ultra-high precision positioning system
Zuul implements dynamic routing
Pytorch forecast house price
vscode config
Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
PHP二维/多维数组按照指定的键值来进行升序和降序
Ai+ remote sensing: releasing the value of each pixel
Happy New Year!
Procedural life
天才制造者:独行侠、科技巨头和AI|深度学习崛起十年
5. < tag stack and general problems > supplement: lt.946 Verify the stack sequence (the same as the push in and pop-up sequence of offer 31. stack)
PowerShell runtime system IO exceptions
【Unity3D】碰撞体组件Collider
6.1 - 6.2 Introduction à la cryptographie à clé publique
YOLOV5训练结果的解释
6.1 - 6.2 公鑰密碼學簡介
Zuul 实现动态路由
torchvision_transform(图像增强)
【Latex】错误类型总结(持更)