namespace GameWrapper.Pay
{
///
/// 支付服务接口
///
public interface IPaymentService
{
///
/// 初始化支付服务
///
void Initialize();
///
/// 检查应用是否已初始化
///
bool IsAppInitialized();
///
/// 购买商品
///
/// 货币ID
/// 数量
/// 参数
void BuyGoods(string currencyID, int count, int param = 0);
///
/// 支付回调
///
/// 结果码
void OnPaymentCallback(string result);
///
/// 检测用户是否直接返回至游戏
///
void OnApplicationPause(bool pauseStatus);
///
/// 是否在支付流程中
///
bool IsPaying();
}
///
/// 支付相关服务定位器
///
public static class PaymentServiceLocator
{
public static IPaymentService WxPaymentService { get; set; }
}
}