mall + pay:

1. 后台的收银台,接入微信扫码支付
This commit is contained in:
YunaiV 2023-07-15 23:14:42 +08:00
parent a6437b7cc5
commit ecdc39612f
4 changed files with 11 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class WxNativePayClient extends AbstractWxPayClient {
WxPayNativeOrderResult response = client.createOrder(request); WxPayNativeOrderResult response = client.createOrder(request);
// 转换结果 // 转换结果
return new PayOrderUnifiedRespDTO(PayOrderDisplayModeEnum.QR_CODE_URL.getMode(), return new PayOrderUnifiedRespDTO(PayOrderDisplayModeEnum.QR_CODE.getMode(),
response.getCodeUrl()); response.getCodeUrl());
} }
@ -68,7 +68,7 @@ public class WxNativePayClient extends AbstractWxPayClient {
WxPayNativeOrderResult response = client.createOrderV3(TradeTypeEnum.NATIVE, request); WxPayNativeOrderResult response = client.createOrderV3(TradeTypeEnum.NATIVE, request);
// 转换结果 // 转换结果
return new PayOrderUnifiedRespDTO(PayOrderDisplayModeEnum.QR_CODE_URL.getMode(), return new PayOrderUnifiedRespDTO(PayOrderDisplayModeEnum.QR_CODE.getMode(),
response.getCodeUrl()); response.getCodeUrl());
} }

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1627279375144" class="icon" viewBox="0 0 1115 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4399" width="43.5546875" height="40" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url(&quot;//at.alicdn.com/t/font_1031158_1uhr8ri0pk5.eot?#iefix&quot;) format(&quot;embedded-opentype&quot;), url(&quot;//at.alicdn.com/t/font_1031158_1uhr8ri0pk5.woff2&quot;) format(&quot;woff2&quot;), url(&quot;//at.alicdn.com/t/font_1031158_1uhr8ri0pk5.woff&quot;) format(&quot;woff&quot;), url(&quot;//at.alicdn.com/t/font_1031158_1uhr8ri0pk5.ttf&quot;) format(&quot;truetype&quot;), url(&quot;//at.alicdn.com/t/font_1031158_1uhr8ri0pk5.svg#iconfont&quot;) format(&quot;svg&quot;); }</style></defs><path d="M751.388 68.267a34.133 34.133 0 0 1 0-68.267h227.556a91.022 91.022 0 0 1 91.022 91.022v227.556a34.133 34.133 0 1 1-68.266 0V91.022a22.756 22.756 0 0 0-22.756-22.755H751.388M1001.7 705.422a34.133 34.133 0 0 1 68.266 0v227.556A91.022 91.022 0 0 1 978.944 1024H748.885a34.133 34.133 0 0 1 0-68.267H978.49a22.756 22.756 0 0 0 22.755-22.755V705.422M364.09 955.733a34.133 34.133 0 1 1 0 68.267H136.533a91.022 91.022 0 0 1-91.022-91.022V705.422a34.133 34.133 0 0 1 68.267 0v227.556a22.756 22.756 0 0 0 22.755 22.755H364.09M113.778 318.578a34.133 34.133 0 1 1-68.267 0V91.022A91.022 91.022 0 0 1 136.533 0H364.09a34.133 34.133 0 0 1 0 68.267H136.533a22.756 22.756 0 0 0-22.755 22.755v227.556M34.133 477.867a34.133 34.133 0 0 0 0 68.266h168.619v-68.266z m1046.756 0H912.27v68.266h168.619a34.133 34.133 0 0 0 0-68.266zM202.752 157.24h709.746v320.627H202.752z m0 388.893h709.746V866.76H202.752z" fill="#04C361" p-id="4400"/></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -132,6 +132,10 @@ export const PayChannelEnum = {
"code": "wx_app", "code": "wx_app",
"name": "微信 APP 支付" "name": "微信 APP 支付"
}, },
WX_NATIVE: {
"code": "wx_native",
"name": "微信扫码支付"
},
WX_BAR: { WX_BAR: {
"code": "wx_bar", "code": "wx_bar",
"name": "微信条码支付" "name": "微信条码支付"

View File

@ -125,6 +125,10 @@ export default {
name: '微信 App 支付', name: '微信 App 支付',
icon: require("@/assets/images/pay/icon/wx_app.svg"), icon: require("@/assets/images/pay/icon/wx_app.svg"),
code: "wx_app" code: "wx_app"
}, {
name: '微信扫码支付',
icon: require("@/assets/images/pay/icon/wx_native.svg"),
code: "wx_native"
}, { }, {
name: '微信条码支付', name: '微信条码支付',
icon: require("@/assets/images/pay/icon/wx_bar.svg"), icon: require("@/assets/images/pay/icon/wx_bar.svg"),