alipay package
parent
a3624a96e0
commit
01f8ebb887
|
|
@ -50,7 +50,9 @@ public class AliPayHandle : MonoBehaviour
|
|||
/// </summary>
|
||||
public void Initialize()
|
||||
{
|
||||
#if AliPay
|
||||
PaymentServiceLocator.AliPaymentService.Initialize();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -58,9 +60,9 @@ public class AliPayHandle : MonoBehaviour
|
|||
/// </summary>
|
||||
public bool IsInitialized()
|
||||
{
|
||||
|
||||
#if AliPay
|
||||
return PaymentServiceLocator.AliPaymentService.IsAppInitialized();
|
||||
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -69,15 +71,17 @@ public class AliPayHandle : MonoBehaviour
|
|||
/// </summary>
|
||||
public bool IsPaying()
|
||||
{
|
||||
|
||||
#if AliPay
|
||||
return PaymentServiceLocator.AliPaymentService.IsPaying();
|
||||
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
private void PayRequest(string currencyID, int count, int itemID)
|
||||
{
|
||||
#if AliPay
|
||||
PaymentServiceLocator.AliPaymentService.BuyGoods(currencyID, count, itemID);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -113,6 +117,8 @@ public class AliPayHandle : MonoBehaviour
|
|||
public void OnPaymentCallback(string result)
|
||||
{
|
||||
DebugUtil.Log("AliPayHandle.OnPaymentCallback result: {0}", result);
|
||||
#if AliPay
|
||||
PaymentServiceLocator.AliPaymentService.OnPaymentCallback(result);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
Define_list:
|
||||
- AliPay
|
||||
|
|
@ -0,0 +1 @@
|
|||
0.0.1
|
||||
Loading…
Reference in New Issue