CloudYxt.TenpayV3 1.2.0

dotnet add package CloudYxt.TenpayV3 --version 1.2.0
NuGet\Install-Package CloudYxt.TenpayV3 -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CloudYxt.TenpayV3" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CloudYxt.TenpayV3 --version 1.2.0
#r "nuget: CloudYxt.TenpayV3, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CloudYxt.TenpayV3 as a Cake Addin
#addin nuget:?package=CloudYxt.TenpayV3&version=1.2.0

// Install CloudYxt.TenpayV3 as a Cake Tool
#tool nuget:?package=CloudYxt.TenpayV3&version=1.2.0

云享通.Net Core针对微信支付V3扩展操作库

1.2.0

完成native(request_transactions_native),并且将公用下单类型统一进request_transactions

1.1.0

完成jsapi(transactions_jsapi)、回调(transactions_notify、transactions_notify_log)、证书(transactions_certificates)相关SDK开发

//jsapi

[HttpGet]
public async Task<messageData<response_transactions_jsapi>> GetJsApiPrepay()
{
    var request = new request_transactions_jsapi(option)
    {
        out_trade_no = $"TEST{DateTime.Now:yyyyMMddHHmmss}",
        description = "测试的订单",
        notify_url = "https://回调地址",
        amount = new request_transactions_amount() { total = 1 }, //1分
        payer = new request_transactions_payer() { openid = "用户的openid" }
    };

    return await request.GetPrepayResponseAsync();
}

1.0.0

完成核心TenpayClient签名请求功能,以及商家付款到零钱数据结构,例:

var optionTag = new TenpayClientOption() { //相关参数初始化定义 };

using var client = new TenpayClient(optionTag);
var result = await client.PostPayJsonAsync<response_transfer_batches>
	("https://api.mch.weixin.qq.com/v3/transfer/batches", new request_transfer_batches()
	{
	appid = optionTag.MerchantAppId,
	out_batch_no = "批次号",
	batch_name = "商家转账到零钱",
	batch_remark = "批次说明",
	total_amount = 金额,
	total_num = 1,
	transfer_detail_list = new List<request_transfer_batches_detail>()
	{
		new request_transfer_batches_detail()
		{
		openid = openid,
		out_detail_no = "明细单号",
		transfer_amount = 1,
		transfer_remark = "明细说明"
		}
	}
});

Console.WriteLine(result.code);
Console.WriteLine(result.message);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 163 7/5/2023
1.1.0 137 7/5/2023
1.0.0 130 5/19/2023

云享通.Net Core针对微信支付V3扩展操作库

1.2
完成native(request_transactions_native),并且将公用下单类型统一进request_transactions

1.1
完成jsapi(transactions_jsapi)、回调(transactions_notify、transactions_notify_log)、证书(transactions_certificates)相关SDK开发

1.0.0
完成核心TenpayClient签名请求功能,以及商家付款到零钱数据结构,例:
var optionTag = new TenpayClientOption() { //相关参数初始化定义 };

using var client = new TenpayClient(optionTag);
var result = await client.PostPayJsonAsync<response_transfer_batches>
("https://api.mch.weixin.qq.com/v3/transfer/batches", new request_transfer_batches()
{
appid = optionTag.MerchantAppId,
out_batch_no = "批次号",
batch_name = "商家转账到零钱",
batch_remark = "批次说明",
total_amount = 金额,
total_num = 1,
transfer_detail_list = new List<request_transfer_batches_detail>()
{
new request_transfer_batches_detail()
{
openid = openid,
out_detail_no = "明细单号",
transfer_amount = 1,
transfer_remark = "明细说明"
}
}
});

Console.WriteLine(result.code);
Console.WriteLine(result.message);