Comments (3)
@iyjian 我在这个项目的源代码里,在verifyPayment里把参数做了个JSON.parse,这样就能校验过了。不过我不知道这样改是否会引入其它问题。
from alipay.
我发现是在这个函数里
function responseType(response) {
var type = Object.keys(config2.default.ALIPAY_API_LIST).map(function (name) {
return name.replace(/./g, '');
}).find(function (api) {
return api + '_response' in response;
});
if (type) return type + '_response';
}
由于传进去的response是一个字符串,当用in操作时报错的,所以这个verifyPayment函数传进去的参数result具体应该是什么格式?
from alipay.
@liqingfeng 是不是要用body parser 弄成Obj的
from alipay.
Related Issues (20)
- [bug] 缺少配置项 HOT 1
- 在支付宝异步通知时获取到的参数为空 HOT 2
- BUG: 查询账单下载地址 billDownloadQuery 接口出错 HOT 7
- asn1 encoding
- 异步回调问题 HOT 3
- 订单查询报错 Cannot read property \'code\' of undefined', HOT 6
- 请问下:可以支持支付宝小程序里的支付吗? HOT 4
- 安装后报错 Error: Cannot find module 'src/config' HOT 4
- src/config问题还在 HOT 1
- 报错Cannot find module 'src/config' HOT 1
- verifyPayment报错Error: Not Found responseType HOT 2
- createOrder函数调用的时候把alipayPubKeyFile都加进去了 HOT 4
- 异步通知校验makeNotifyResponse schema验证失败问题 HOT 1
- TypeError: Cannot read property 'app_id' of null HOT 5
- Alipay is not a constructor HOT 3
- 文件编译后的代码错误,路径是/dist/validator/index.js HOT 1
- 请问提下各位大佬 这是什么情况 :asn1 encoding routines:asn1_check_tlen:wrong tag HOT 6
- 你好 在支付成功后通过 回调地址里面有appid等信息 HOT 1
- 签名是用RSA2吗?APP支付时报错
- 充值金额正则错误 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.