public void InitializePurchase()
    {
        zarinpalJavaClass = new AndroidJavaClass("com.kingcodestudio.unityzarinpaliab.ZarinpalUnityFragment");
        zarinpalJavaClass.CallStatic("start", gameObject.name);
        mZarinpalJavaObject = zarinpalJavaClass.GetStatic <AndroidJavaObject>("instance");



        m_text.text = "plugin initialized ";
        ZarinpalLog.Log("plugin initialized");
    }
 private void Log(string log, params object[] args)
 {
     ZarinpalLog.Log(string.Format(log, args));
 }
 private void Log(string log)
 {
     ZarinpalLog.Log(log);
 }
 public void OnPaymentVerificationFailed()
 {
     m_text.text = "payment verification failed ";
     ZarinpalLog.Log("payment verification failed");
 }
 public void OnPaymentVerificationSucceed(string refID)
 {
     m_text.text = "payment verification succeed refid :" + refID;
     ZarinpalLog.Log("payment verification succeed refid :" + refID);
 }
 public void OnPaymentProcessStarted()
 {
     m_text.text = "payment process started ";
     ZarinpalLog.Log("payment process started");
 }
 public void OnErrorOnPaymentRequest(string error)
 {
     m_text.text = "an error occured in requesting for payment : " + error;
     ZarinpalLog.Log("an error occured in requesting for payment : " + error);
 }