Comments (5)
¬
直接输出,是会变成 ¬
的,因为它跟
一样,是HTML预定义字符。
根据你的描述,我无法定位问题,能更详细一点吗?比如提供可以重现的例子。
from alipay.
情况和个人解决步骤如下:
1 安装该sdk,配置
2 app('alipay.mobile')生成支付字串、将字串交给ios/安卓
3 ios/安卓支付成功,手机收到成功消息,但服务器一直没收到,接口没有被调用迹象
4 手动调用接口,查看路由配置,无发现问题,能正常记录接口访问日志
5 将生成的支付字串进行urldecode,发现
input_charset=utf-8¬ify_url=http 被转成了
_input_charset=utf-8¬ify_url=http
6 怀疑是此问题,将
return $this->createLinkstringUrlencode($para);
改为
unset($para['notify_url']);
return 'notify_url=' . urlencode($this->notify_url) . '&' . $this->createLinkstringUrlencode($para);
7 重新生成支付字串,将字串交给ios/安卓
8 支付,成功收到通知
不知是不是我这里个人的个别现象
from alipay.
第5点,将生成的支付字串进行urldecode
后,你是如何打印出来的呢,因为浏览器会将¬
显示为¬
,如果你是直接在页面上看打印结果,确实是会这样,右键页面查看源代码,是否也是如此呢?
from alipay.
没有太深入的研究你说的这个过程,但是以前开发过程中确实遇到过类似的情况,不过是在PC Web端,当时也发现了异常的编码字符。最终找到的原因是:异常的编码字符没有什么问题,本身就是这样,只不过在不同模式下显示的不一样而已,实际传输的还是那个编码,接受不到通知是因为配置的通知URL没有加http前缀。 希望对你有所帮助,上面是我的个人经验。
from alipay.
没有带 http 前缀确实是一个坑。
from alipay.
Related Issues (20)
- 楼主好人啊! HOT 1
- Incorrect path for the cacert.pem on Unix HOT 1
- how to query an order? HOT 1
- about this config file(vendor\latrell\alipay\src\Latrell\Alipay\AlipayServiceProvider.php) problem
- laravel5.3 返回md5 校验不成功
- 配置文件里面安全检验码key是什么
- web端调起支付出现ILLEGAL_PARTNER_EXTERFACE,该怎么解决 HOT 4
- 希望能增加退订和查询接口
- 没有自定义参数可以传递?
- App支付,签名算法支持RSA2么? HOT 3
- mobile支付, 返回签名后的支付参数,然后呢? HOT 1
- wap 参数错误,请修改
- web异步回调不成功
- >=php7.2 each()参数废除导致报错 HOT 1
- How to identify payment from app or browser?
- 请问支持证书模式吗?
- 能不能加个wap版本的? HOT 1
- wap怎么没有同步跳转网址设置?
- 有没有自动发货的service? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alipay.