IOSRechargeSProxy.cs 679 B

123456789101112131415161718192021222324
  1. using ET;
  2. namespace GFGGame
  3. {
  4. public class IOSRechargeSProxy
  5. {
  6. public static async ETTask IosVerifyOrder(string OrderId, string TransactionId)
  7. {
  8. S2C_IosVerifyOrder response = (S2C_IosVerifyOrder)await MessageHelper.SendToServer(new C2S_IosVerifyOrder()
  9. {
  10. OrderId = OrderId,
  11. TransactionId = TransactionId
  12. });
  13. if(response != null)
  14. {
  15. if(response.Error == ErrorCode.ERR_Success)
  16. {
  17. IAPManager.Instance.OnServerSuccess(response.OrderId, response.TransactionId);
  18. }
  19. }
  20. }
  21. }
  22. }