Beispiel #1
0
 private void OnReceiptSucceeded(ISN_LocalReceiptResult result)
 {
     if (result.Receipt == null)
     {
         ISN_Security.Instance.StartReceiptRefreshRequest();
         return;
     }
 }
Beispiel #2
0
 void OnReceiptLoaded(ISN_LocalReceiptResult result)
 {
     Debug.Log("OnReceiptLoaded");
     ISN_Security.OnReceiptLoaded -= OnReceiptLoaded;
     if (result.Receipt != null)
     {
         IOSNativePopUpManager.showMessage("Success", "Receipt loaded, byte array length: " + result.Receipt.Length);
     }
     else
     {
         IOSDialog dialog = IOSDialog.Create("Failed", "No Receipt found on the device. Would you like to refresh local Receipt?");
         dialog.OnComplete += OnComplete;
     }
 }
Beispiel #3
0
    void OnReceiptLoaded(ISN_LocalReceiptResult result)
    {
        ISN_Logger.Log("OnReceiptLoaded");
        ISN_Security.OnReceiptLoaded -= OnReceiptLoaded;
        if (result.Receipt != null)
        {
            ReceiptData = result.Receipt;
            IOSDialog dialog = IOSDialog.Create("Success", "Receipt loaded, byte array length: " + result.Receipt.Length + " Would you like to veriday it with Apple Sandbox server?");

            dialog.OnComplete += OnVerifayComplete;
        }
        else
        {
            IOSDialog dialog = IOSDialog.Create("Failed", "No Receipt found on the device. Would you like to refresh local Receipt?");
            dialog.OnComplete += OnComplete;
        }
    }
Beispiel #4
0
    private void Event_ReceiptLoaded(string data)
    {
        ISN_LocalReceiptResult result = new ISN_LocalReceiptResult(data);

        OnReceiptLoaded(result);
    }
Beispiel #5
0
	void OnReceiptLoaded (ISN_LocalReceiptResult result) {
		Debug.Log("OnReceiptLoaded");
		ISN_Security.OnReceiptLoaded -= OnReceiptLoaded;
		if(result.Receipt != null) {

			IOSNativePopUpManager.showMessage("Success", "Receipt loaded, byte array length: " + result.Receipt.Length);
		} else {
			IOSDialog dialog =  IOSDialog.Create("Failed", "No Receipt found on the device. Would you like to refresh local Receipt?");
			dialog.OnComplete += OnComplete;

		}
	}
	void OnReceiptLoaded (ISN_LocalReceiptResult result) {
		ISN_Logger.Log("OnReceiptLoaded");
		ISN_Security.OnReceiptLoaded -= OnReceiptLoaded;
		if(result.Receipt != null) {

			ReceiptData = result.Receipt;
			IOSDialog dialog =  IOSDialog.Create("Success", "Receipt loaded, byte array length: " + result.Receipt.Length + " Would you like to veriday it with Apple Sandbox server?");

			dialog.OnComplete += OnVerifayComplete;


		} else {
			IOSDialog dialog =  IOSDialog.Create("Failed", "No Receipt found on the device. Would you like to refresh local Receipt?");
			dialog.OnComplete += OnComplete;

		}
	}