private String getURL(string merchantCheckoutId)
        {
            string url;

            if (this.environment == Environments.Environment.PRODUCTION)
            {
                url = PRODUCTION_URL;
            }
            else if (this.environment == Environments.Environment.MTF)
            {
                url = MTF_URL;
            }
            else
            {
                url = SANDBOX_URL;
            }

            url = string.Format(url, URLUtil.Encode(merchantCheckoutId));

            return(url);
        }
        private string GetURL(long walletProviderId, long?walletId = null)
        {
            var cardId = walletId == null ? string.Empty : URLUtil.Encode(walletId.Value.ToString(CultureInfo.InvariantCulture));

            string url;

            if (this.environment == Environments.Environment.PRODUCTION)
            {
                url = PRODUCTION_URL;
            }
            else if (this.environment == Environments.Environment.MTF)
            {
                url = MTF_URL;
            }
            else
            {
                url = SANDBOX_URL;
            }

            return(string.Format(
                       url,
                       URLUtil.Encode(walletProviderId.ToString(CultureInfo.InvariantCulture)),
                       cardId));
        }