Skip to content

Instantly share code, notes, and snippets.

@shohan4556
Created July 29, 2019 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shohan4556/c46a82972c08037ad01bba018ca19277 to your computer and use it in GitHub Desktop.
Save shohan4556/c46a82972c08037ad01bba018ca19277 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using HuaweiMobileService;
using UnityEngine;
using UnityEngine.UI;
public class ProductPayImpl : IProductPayHandler {
//public Text debugTest;
public void OnResult(int resultCode, ProductPayResponse response){
//debugTest.text = "Productpay succesfull after onResult";
//Debug.Log("<b>Succesfull!</b>");
//PlayerPrefs.SetInt("noAds", 1);
if(resultCode == 0){
Debug.Log("<b>Succesfull!</b>");
PlayerPrefs.SetInt("noAds", 1);
Debug.Log("Likhon------------after buying----------- result: "+ resultCode);
Debug.Log("Likhon------------after buying----------- result: "+ response);
} else {
Debug.Log("Likhon------------after buying----------- result: "+ resultCode);
Debug.Log("Likhon------------after buying----------- result: "+ response);
}
//Debug.Log("Likhon------------after buying: "+ resultCode + " " +response);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment