-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2958 from mojinxun/feature/小程序虚拟支付
小程序虚拟支付
- Loading branch information
Showing
36 changed files
with
2,067 additions
and
4 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Coin_Pay_Notify.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,62 @@ | ||
namespace Senparc.Weixin.MP.Entities | ||
{ | ||
public class RequestMessageEvent_XPay_Coin_Pay_Notify : RequestMessageEventBase, IRequestMessageEventBase | ||
{ | ||
public override Event Event | ||
{ | ||
get { return Event.xpay_goods_deliver_notify; } | ||
} | ||
|
||
/// <summary> | ||
/// 用户openid | ||
/// </summary> | ||
public string OpenId { get; set; } | ||
|
||
/// <summary> | ||
/// 业务订单号 | ||
/// </summary> | ||
public string OutTradeNo { get; set; } | ||
|
||
/// <summary> | ||
/// 环境配置 0:现网环境(也叫正式环境)1:沙箱环境 | ||
/// </summary> | ||
public string Env { get; set; } | ||
|
||
/// <summary> | ||
/// 微信支付信息 非微信支付渠道可能没有 | ||
/// </summary> | ||
public WeChatPayInfo WeChatPayInfo { get; set; } | ||
|
||
/// <summary> | ||
/// 道具参数信息 | ||
/// </summary> | ||
public CoinInfo CoinInfo { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// 道具参数信息 | ||
/// </summary> | ||
public class CoinInfo | ||
{ | ||
/// <summary> | ||
/// 数量 | ||
/// </summary> | ||
public int Quantity { get; set; } | ||
|
||
/// <summary> | ||
/// 物品原始价格 (单位:分) | ||
/// </summary> | ||
public int OrigPrice { get; set; } | ||
|
||
/// <summary> | ||
/// 物品实际支付价格(单位:分) | ||
/// </summary> | ||
public int ActualPrice { get; set; } | ||
|
||
/// <summary> | ||
/// 透传信息 | ||
/// </summary> | ||
public string Attach { get; set; } | ||
|
||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...rc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Goods_Deliver_Notify.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,88 @@ | ||
namespace Senparc.Weixin.MP.Entities | ||
{ | ||
public class RequestMessageEvent_XPay_Goods_Deliver_Notify : RequestMessageEventBase, IRequestMessageEventBase | ||
{ | ||
public override Event Event | ||
{ | ||
get { return Event.xpay_goods_deliver_notify; } | ||
} | ||
|
||
/// <summary> | ||
/// 用户openid | ||
/// </summary> | ||
public string OpenId { get; set; } | ||
|
||
/// <summary> | ||
/// 业务订单号 | ||
/// </summary> | ||
public string OutTradeNo { get; set; } | ||
|
||
/// <summary> | ||
/// 环境配置 0:现网环境(也叫正式环境)1:沙箱环境 | ||
/// </summary> | ||
public string Env { get; set; } | ||
|
||
/// <summary> | ||
/// 微信支付信息 非微信支付渠道可能没有 | ||
/// </summary> | ||
public WeChatPayInfo WeChatPayInfo { get; set; } | ||
|
||
/// <summary> | ||
/// 道具参数信息 | ||
/// </summary> | ||
public GoodsInfo GoodsInfo { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// 微信支付信息 非微信支付渠道可能没有 | ||
/// </summary> | ||
public class WeChatPayInfo | ||
{ | ||
/// <summary> | ||
/// 微信支付商户单号 | ||
/// </summary> | ||
public string MchOrderNo { get; set; } | ||
|
||
/// <summary> | ||
/// 交易单号(微信支付订单号) | ||
/// </summary> | ||
public string TransactionId { get; set; } | ||
|
||
/// <summary> | ||
/// 用户支付时间,Linux秒级时间戳 | ||
/// </summary> | ||
public long PaidTime { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// 道具参数信息 | ||
/// </summary> | ||
public class GoodsInfo | ||
{ | ||
/// <summary> | ||
/// 道具ID | ||
/// </summary> | ||
public string ProductId { get; set; } | ||
|
||
/// <summary> | ||
/// 数量 | ||
/// </summary> | ||
public int Quantity { get; set; } | ||
|
||
/// <summary> | ||
/// 物品原始价格 (单位:分) | ||
/// </summary> | ||
public int OrigPrice { get; set; } | ||
|
||
/// <summary> | ||
/// 物品实际支付价格(单位:分) | ||
/// </summary> | ||
public int ActualPrice { get; set; } | ||
|
||
/// <summary> | ||
/// 透传信息 | ||
/// </summary> | ||
public string Attach { get; set; } | ||
|
||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...P/Senparc.Weixin.MP/Entities/Request/Event/XPay/RequestMessageEvent_XPay_Refund_Notify.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,70 @@ | ||
namespace Senparc.Weixin.MP.Entities | ||
{ | ||
public class RequestMessageEvent_XPay_Refund_Notify : RequestMessageEventBase, IRequestMessageEventBase | ||
{ | ||
public override Event Event | ||
{ | ||
get { return Event.xpay_refund_notify; } | ||
} | ||
|
||
/// <summary> | ||
/// 用户openid | ||
/// </summary> | ||
public string OpenId { get; set; } | ||
|
||
/// <summary> | ||
/// 微信退款单号 | ||
/// </summary> | ||
public string WxRefundId { get; set; } | ||
|
||
/// <summary> | ||
/// 商户退款单号 | ||
/// </summary> | ||
public string MchRefundId { get; set; } | ||
|
||
/// <summary> | ||
/// 退款单对应支付单的微信单号 | ||
/// </summary> | ||
public string WxOrderId { get; set; } | ||
|
||
/// <summary> | ||
/// 退款单对应支付单的商户单号 | ||
/// </summary> | ||
public string MchOrderId { get; set; } | ||
|
||
/// <summary> | ||
/// 退款金额,单位分 | ||
/// </summary> | ||
public int RefundFee { get; set; } | ||
|
||
/// <summary> | ||
/// 退款结果,0为成功,非0为失败 | ||
/// </summary> | ||
public int RetCode { get; set; } | ||
|
||
/// <summary> | ||
/// 退款结果详情,失败时为退款失败的原因 | ||
/// </summary> | ||
public string RetMsg { get; set; } | ||
|
||
/// <summary> | ||
/// 开始退款时间,秒级时间戳 | ||
/// </summary> | ||
public long RefundStartTimestamp { get; set; } | ||
|
||
/// <summary> | ||
/// 结束退款时间,秒级时间戳 | ||
/// </summary> | ||
public long RefundSuccTimestamp { get; set; } | ||
|
||
/// <summary> | ||
/// 退款单的微信支付单号 | ||
/// </summary> | ||
public string WxpayRefundTransactionId { get; set; } | ||
|
||
/// <summary> | ||
/// 重试次数,从0开始。重试间隔为2 4 8 16...最多15次 | ||
/// </summary> | ||
public int RetryTimes { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.