12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using WingPaymentService.Common.WeChat;
- namespace WingPaymentService.Common
- {
- public class WeChatCommon
- {
- private WxPayNativePay _nativePay = new WxPayNativePay();
-
-
-
-
-
-
-
-
-
- public async Task<(string, string)> GetWebPayUrlAsync(string body, double totalAmount, string outTradeNo, string recordCode, string attach, string deviceInfo)
- {
- int totalNumber = Convert.ToInt32(totalAmount * 100);
- return await _nativePay.GetWebPayUrl(body, totalNumber, outTradeNo, recordCode, attach, deviceInfo);
- }
-
-
-
-
-
-
-
-
-
- public async Task<(string, string)> GetWapPayUrlAsync(string body, double totalAmount, string outTradeNo, string recordCode, string attach, string deviceInfo)
- {
- int totalNumber = Convert.ToInt32(totalAmount * 100);
- return await _nativePay.GetWapPayUrl(body, totalNumber, outTradeNo, recordCode, attach, deviceInfo);
- }
- }
- }
|