logo开发者社区
小程序小游戏
登录
付费看下支付,签名过不去

付费看下支付,签名过不去

14浏览作者: chao1988

$orderInfo= array(

'app_id'=>'800000000001', // 小程序ID

'merchant_id'=>'1900000001',

'timestamp'=>1570694312, // 时间戳

'sign_type'=>'MD5',

'out_order_no'=>'201900000000000001',

'total_amount'=>1,

'product_code'=>'pay',

'payment_type'=>'direct',

'trade_type'=>'H5',

'version'=>'2.0',

'currency'=>'CNY',

'subject'=>'测试订单',

'body'=>'测试订单',

'uid'=>'0000000000000001',

'trade_time'=>1570585744,

'valid_time'=>'300',

'wx_type'=>'MWEB',

'wx_url'=>'https://wx.tenpay.com/xxx',

'alipay_url'=>'app_id=2019000000000006&biz_content=xxxx'

);

app_secret 是'a'

签名后的orderInfo:

{"alipay_url":"app_id=2019000000000006&biz_content=xxxx","app_id":"800000000001","body":"\u6d4b\u8bd5\u8ba2\u5355","currency":"CNY","merchant_id":"1900000001","out_order_no":"201900000000000001","payment_type":"direct","product_code":"pay","sign_type":"MD5","subject":"\u6d4b\u8bd5\u8ba2\u5355","timestamp":1570694312,"total_amount":1,"trade_time":1570585744,"trade_type":"H5","uid":"0000000000000001","valid_time":"300","version":"2.0","wx_type":"MWEB","wx_url":"https:\/\/wx.tenpay.com\/xxx","sign":"0f1e3358a9898d7c4c6c23740251808a"}

微信 18629361710

最后一次编辑于 2019年11月09日

5条评论

avatar
chao1988

💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯💯

官方的例子里面的 sign也过不去

官方的例子里面的 sign也过不去

支撑一下大哥们。。。

👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻

加载中