예제 #1
0
    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);
 }
예제 #4
0
 public void OnPaymentVerificationFailed()
 {
     m_text.text = "payment verification failed ";
     ZarinpalLog.Log("payment verification failed");
 }
예제 #5
0
 public void OnPaymentVerificationSucceed(string refID)
 {
     m_text.text = "payment verification succeed refid :" + refID;
     ZarinpalLog.Log("payment verification succeed refid :" + refID);
 }
예제 #6
0
 public void OnPaymentProcessStarted()
 {
     m_text.text = "payment process started ";
     ZarinpalLog.Log("payment process started");
 }
예제 #7
0
 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);
 }