public BixbyClient(string cardAcceptor, string sharedSecret, HpEnvironment environment)
 {
     SharedSecret = sharedSecret;
     Environment = environment;
     CardAcceptor = cardAcceptor;
     client = new HttpClient();
 }
 public static string getReversalUrl(string cardAcceptor, HpEnvironment environment)
 {
     StringBuilder builder = new StringBuilder();
     builder.Append(getECommerceBaseUrl(cardAcceptor, environment));
     builder.Append("/reversal/");
     return builder.ToString();
 }
 public static string getCancellationUrl(string cardAcceptor, HpEnvironment environment)
 {
     StringBuilder builder = new StringBuilder();
     builder.Append(getECommerceBaseUrl(cardAcceptor, environment));
     builder.Append("/cancellation/");
     return builder.ToString();
 }
 public static string getTokenizationBaseUrl(string cardAcceptor, HpEnvironment environment)
 {
     StringBuilder builder = new StringBuilder();
     if (environment == HpEnvironment.LIVE)
     {
         builder.Append("https://ecommerce.handpoint.com");
     }
     else if (environment == HpEnvironment.TEST)
     {
         builder.Append("https://tweb34.handpoint.com");
     }
     builder.Append(TOKENIZATION_PATH);
     builder.Append(cardAcceptor);
     return builder.ToString();
 }
 public static string getECommerceBaseUrl(string cardAcceptor, HpEnvironment environment)
 {
     StringBuilder builder = new StringBuilder();
     if (environment == HpEnvironment.LIVE)
     {
         builder.Append("https://ecommerce.handpoint.com");  // TODO Add live / test urls
     }
     else if (environment == HpEnvironment.TEST)
     {
         builder.Append("https://tweb34.handpoint.com");
     }
     builder.Append(ECOMMERCE_PATH);
     builder.Append(cardAcceptor);
     return builder.ToString();
 }
 public ECommerceClient(string cardAcceptor, string sharedSecret, HpEnvironment environment)
 {
     client = new BixbyClient(cardAcceptor, sharedSecret, environment);
 }
 public static string getTokenizationUrl(string cardAcceptor, string tokenName, HpEnvironment environment)
 {
     StringBuilder builder = new StringBuilder();
     builder.Append(getTokenizationBaseUrl(cardAcceptor, environment));
     builder.Append("/");
     builder.Append(tokenName);
     builder.Append("/");
     return builder.ToString();
 }