[M] sync from n3-world

This commit is contained in:
2024-08-30 10:12:40 +08:00
parent d449fee825
commit 959d7d2cce
9 changed files with 16 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ namespace tysdk
=================================================*/
//public async Task<PaymentInfo> Pay(string prodId, string prodPrice, string prodName, int count, string pType, string price_amount_micros =null)
public async Task<PaymentInfo> Pay(SKUDetail prod, int count)
public async Task<PaymentInfo> Pay(SKUDetail prod, int count, float usdprice)
{
if (!IsLoggedIn) return new PaymentInfo() { code = "-1", msg = "未登录" };
@@ -35,7 +35,7 @@ namespace tysdk
//to base64
extraInfo = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(extraInfo));
var prodId = prod.ProdID;
var prodPrice = prod.price;
var prodPrice = usdprice.ToString();
var prodName = prod.title;
var pType = "googleiab.global.app";