Beispiel #1
0
        protected override void Initialise(BillingSettings _settings)
        {
            BillingSettings.iOSSettings _iOSSettings = _settings.iOS;
            string _validateUsingServerURL           = null;

            if (_iOSSettings.SupportsReceiptValidation)
            {
                // We are using our own server for receipt validation
                if (!_iOSSettings.ValidateUsingAppleServer)
                {
                    // But user has forgot to set it, safe case we will use apple server
                    if (string.IsNullOrEmpty(_iOSSettings.ValidateUsingServerURL))
                    {
                        _validateUsingServerURL = null;
                    }
                    else
                    {
                        _validateUsingServerURL = _iOSSettings.ValidateUsingServerURL;
                    }
                }
                // We are using apple server for receipt validation
                else
                {
                    _validateUsingServerURL = null;
                }
            }

            // Native store init is called
            init(_iOSSettings.SupportsReceiptValidation, _validateUsingServerURL, null);
        }
Beispiel #2
0
        protected override void Initialise(BillingSettings _settings)
        {
            base.Initialise(_settings);

            // Get receipt validation URL
            BillingSettings.iOSSettings _iOSSettings = _settings.iOS;
            string _validateUsingServerURL           = null;

            if (_iOSSettings.SupportsReceiptValidation)
            {
                // But user has forgot to set it, safe case we will use apple server
                if (string.IsNullOrEmpty(_iOSSettings.ValidateUsingServerURL))
                {
                    _validateUsingServerURL = null;
                }
                else
                {
                    _validateUsingServerURL = _iOSSettings.ValidateUsingServerURL;
                }
            }

            // Native store init is called
            cpnpBillingInit(_iOSSettings.SupportsReceiptValidation, _validateUsingServerURL, null);
        }
		public BillingSettings ()
		{
			Products	= new List<BillingProduct>();
			iOS			= new BillingSettings.iOSSettings();
			Android		= new BillingSettings.AndroidSettings();
		}
		public BillingSettings ()
		{
			Products	= new BillingProduct[0];
			iOS			= new BillingSettings.iOSSettings();
			Android		= new BillingSettings.AndroidSettings();
		}
Beispiel #5
0
 public BillingSettings()
 {
     Products = new BillingProduct[0];
     iOS      = new BillingSettings.iOSSettings();
     Android  = new BillingSettings.AndroidSettings();
 }
Beispiel #6
0
 public BillingSettings()
 {
     Products = new List <BillingProduct>();
     iOS      = new BillingSettings.iOSSettings();
     Android  = new BillingSettings.AndroidSettings();
 }