飞一会
飞一会
  • 发布:2018-09-01 17:54
  • 更新:2019-07-11 11:45
  • 阅读:8217

uni-app小程序支付遇到:调用支付JSAPI缺少参数: total_fee

分类:uni-app

APP版本走的beecloud聚合支付,所以uni-app小程序也想走这个,在beecloud订单已经创建好了

beecloud返回:

{"result_msg":"OK","nonce_str":"c201809011608234498","package":"prepay_id=wx0116082443998938f6636b863627257387","err_detail":"","resultCode":0,"errMsg":"OK:","result_code":0,"id":"b25cae02-db37-423e-a98d-41a31e1327aa","app_id":"**************","sign_type":"MD5","pay_sign":"C862679B5C430D8EE79F8E1E22730D6C","timestamp":"1535789304"},"header":{"Connection":"keep-alive","Content-Length":"337","Content-Type":"application/json","Date":"Sat, 01 Sep 2018 08:08:24 GMT","Keep-Alive":"timeout=60","Server":"nginx","X-Android-Received-Millis":"1535789304238","X-Android-Response-Source":"NETWORK 200","X-Android-Selected-Protocol":"http/1.1","X-Android-Sent-Millis":"1535789303930"},"statusCode":200,"errMsg":"request:ok"}

然后调起微信支付遇到:

fail:{"errMsg":"requestPayment:fail:调用支付JSAPI缺少参数: total_fee"}

有没有人在做uni-app的小程序支付的,有偿解决

2018-09-01 17:54 负责人:无 分享
已邀请:
ObjectUs

ObjectUs - 90后PHP

好坑,我也遇到了!
后端返给前端 package = prepay_id= 'asd14458' 必须写成 package ='asd14458'才行
踩完一个坑 又遇到了另一个坑
第一个坑!

第二个坑! 待解决!

j***@163.com

j***@163.com - uni-App 小程序

https://ask.dcloud.net.cn/article/36027 你赶紧联系一下这位刚刚发布的作者

该问题目前已经被锁定, 无法添加新回复