43 lines
845 B
C#
43 lines
845 B
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
namespace HC
|
||
|
|
{
|
||
|
|
public interface HCIPurchase
|
||
|
|
{
|
||
|
|
void Init();
|
||
|
|
|
||
|
|
void Buy(HCPaymentArgs paymentArgs);
|
||
|
|
|
||
|
|
void Awarded(string orderID);
|
||
|
|
}
|
||
|
|
|
||
|
|
[Serializable]
|
||
|
|
public class HCPaymentArgs
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 商品id
|
||
|
|
/// </summary>
|
||
|
|
public string productId;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 商品名字
|
||
|
|
/// </summary>
|
||
|
|
public string productName;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 商品金额 ,单位 (分) 1元 = 100分
|
||
|
|
/// </summary>
|
||
|
|
public int money;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 扩展参数
|
||
|
|
/// </summary>
|
||
|
|
public string gameExtraParam;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 预留
|
||
|
|
/// </summary>
|
||
|
|
public Dictionary<string, object> ext;
|
||
|
|
}
|
||
|
|
}
|