zoukankan      html  css  js  c++  java
  • uniapp开发公众号 调微信支付

    WeixinJSBridge.invoke('getBrandWCPayRequest', {
    "appId": appId, //公众号名称,由商户传入
    "timeStamp": timeStamp, //时间戳
    "nonceStr": nonceStr, //随机串
    "package": packages, //扩展包
    "signType": signType, //微信签名方式:MD5
    "paySign": paySign //微信签名
    }, function(respay) {
    console.log('res', respay)
    if (respay.err_msg === "get_brand_wcpay_request:ok") {
    uni.redirectTo({
    url:"../order/order"
    })
    } else if (respay.err_msg === "get_brand_wcpay_request:cancel") {
    uni.showToast({
    title:"取消支付",
    icon:"none",
    duration:2000
    })
    } else if (respay.err_msg === "get_brand_wcpay_request:fail") {
    uni.showToast({
    title:"支付失败",
    icon:"none",
    duration:2000
    })
    }
    }, function(err) {
    uni.showToast({
    title:err,
    icon:"none",
    duration:2000
    })
    })

    ..
  • 相关阅读:
    c学习第6天
    c学习第5天
    c学习第4天
    c学习第1天
    20171009/20171010/20171011
    20171010
    20171008
    20171007
    20171006
    matrix
  • 原文地址:https://www.cnblogs.com/shoolnight/p/14639023.html
Copyright © 2011-2022 走看看