forked from JeffreySu/WeiXinMPSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Developer_BankPay' of https://github.com/JeffreySu/WeiX…
…inMPSDK into Developer_BankPay
- Loading branch information
Showing
5 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...rc.Weixin.MP/Senparc.Weixin.MP/TenPayLibV3/TenPayV3/PayBank/TenPayV3PayBankRequestData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Senparc.Weixin.MP.TenPayLibV3 | ||
{ | ||
/// <summary> | ||
/// 付款到银行卡提交数据 | ||
/// </summary> | ||
public class TenPayV3PayBankRequestData | ||
{ | ||
/// <summary> | ||
/// Key | ||
/// </summary> | ||
public string Key { get; set; } | ||
|
||
public readonly RequestHandler PackageRequestHandler; | ||
public readonly string Sign; | ||
|
||
public TenPayV3PayBankRequestData() | ||
{ | ||
|
||
|
||
#region 设置RequestHandler | ||
|
||
//创建支付应答对象 | ||
PackageRequestHandler = new RequestHandler(null); | ||
//初始化 | ||
PackageRequestHandler.Init(); | ||
//设置package订单参数 | ||
PackageRequestHandler.SetParameter("nonce_str", this.NonceStr); //随机字符串 | ||
PackageRequestHandler.SetParameter("partner_trade_no", this.PartnerTradeNo); //商户订单号 | ||
PackageRequestHandler.SetParameter("mch_id", this.MchId); //商户号 | ||
PackageRequestHandler.SetParameter("appid", this.AppId); //Appid | ||
Sign = PackageRequestHandler.CreateMd5Sign("key", this.Key); | ||
PackageRequestHandler.SetParameter("sign", Sign); //签名 | ||
|
||
#endregion | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters