app 移动支付

1.微信 多个端单独对用appid  多个appid  对应到一个商户  先创建appid  然后再关联商户

2.支付宝 多个aliPrivateKey,这个可以生成pkcs8,是用在java里面。非java 如果之前已经生成了java版本,可以转成非java 版本,再格式转换里面。这里只用到私钥。在代码里面用私钥对参数进行价签。然后在把公钥上传到支付宝商户里面。非java 代码里面配置的是非java版本。

app 移动支付_第1张图片

{
    "data":"alipay_sdk=alipay-sdk-php-20161101&app_id=2015112700878442&biz_content=%7B%22body%22%3A%22DCloud%E8%87%B4%E5%8A%9B%E4%BA%8E%E6%89%93%E9%80%A0HTML5%E6%9C%80%E5%A5%BD%E7%9A%84%E7%A7%BB%E5%8A%A8%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%EF%BC%8C%E5%8C%85%E6%8B%AC%E7%BB%88%E7%AB%AF%E7%9A%84Runtime%E3%80%81%E4%BA%91%E7%AB%AF%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%92%8CIDE%EF%BC%8C%E5%90%8C%E6%97%B6%E6%8F%90%E4%BE%9B%E5%90%84%E9%A1%B9%E9%85%8D%E5%A5%97%E7%9A%84%E5%BC%80%E5%8F%91%E8%80%85%E6%9C%8D%E5%8A%A1%E3%80%82%22%2C%22subject%22%3A+%22DCloud%E9%A1%B9%E7%9B%AE%E6%8D%90%E8%B5%A0%22%2C%22out_trade_no%22%3A+%2220190629092941%22%2C%22timeout_express%22%3A+%2230m%22%2C%22total_amount%22%3A+%221%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=http%253A%252F%252Fdemo.dcloud.net.cn%252Fpayment%252Falipay%252Fnotify.php&sign_type=RSA2×tamp=2019-06-29+09%3A29%3A41&version=1.0&sign=AYY%2BOAGPgcUp2RH%2FVeMZgNb5bKEVbL5cDpjIGK%2Bh6AF%2Bn1exbxdytKM6kDTRcz5ahDFIgTJjlOoVP3Cxz3sBwKdZPRAQcRpFXTbd%2FxmkAHgtIWuYBqbCjYTnHbfs1dcsdcnYgWeW0plwo5fdujm3vD%2FIRAQLqd26AE0ee5J04IHNWs4CPIZhWODR61ltSWRIk9L4ytrnf6tyU%2Fd5pNBlDdw7ZcDvB%2FvbZwYt3jPiUS6L3Q8D4xw0snwQH4botSy3WCHHYdMR2aEYTO2LPxw6qihuSawRlVIn6L76rtY0FFXUR6D9Picn2d4duT3%2B7oktiZhNrZnHf13plRBZPKfK8g%3D%3D",
    "statusCode":200,
    "header":{
        "Transfer-Encoding ":"chunked",
        "X-Android-Selected-Protocol ":"http/1.1",
        "Strict-Transport-Security ":"max-age=0",
        "Server ":"nginx",
        "Access-Control-Allow-Origin ":"*",
        "Connection ":"keep-alive",
        "X-Android-Response-Source ":"NETWORK 200",
        "Vary ":"Accept-Encoding Accept-Encoding",
        "X-Android-Sent-Millis ":"1561800580713",
        "X-Android-Received-Millis ":"1561800580762",
        "Date ":"Sat, 29 Jun 2019 09:29:41 GMT",
        "Content-Type ":"text/plain;charset=UTF-8"
    },
    "errMsg":"request:ok"
}

 

后台返回的数据格式。

微信的要开发者中心 商户中心。

支付宝支付 在商户中心即可。

 

转载于:https://www.cnblogs.com/muxueyuan/p/11113480.html

你可能感兴趣的:(java,运维)