/// <summary> /// Adds the config field. /// </summary> /// <param name="info">The info.</param> /// <param name="name">The name.</param> private void AddConfigField(CreditCardPayment info, string name) { string val = Settings[name]; if (val.Length > 0) { _icharge.Config(String.Format("{0}={1}", name, val)); } }
/// <summary> /// Adds the config field. /// </summary> /// <param name="info">The info.</param> /// <param name="name">The name.</param> private void AddConfigField(CreditCardPayment info, string name) { var val = Settings[name]; if (val.Length > 0) { _icharge.Config($"{name}={val}"); } }
internal static Transaction_Result parse_Response(ref Icharge icharge) { var result = new Transaction_Result { isApproved = icharge.Response.Approved, ApprovalCode = icharge.Response.Code, ResultCode = icharge.Response.Code, ResultText = icharge.Response.Text, TransactionIndex = icharge.Response.TransactionId, ProcessorCode = icharge.Response.ProcessorCode, FullRequest = icharge.Config("RawRequest"), FullResponse = icharge.Config("RawResponse"), hasServerError = false, ErrorCode = icharge.Response.ErrorCode, ErrorText = icharge.Response.ErrorText }; return(result); }
/// <summary> /// Adds the config field. /// </summary> /// <param name="name">The name.</param> private void AddConfigField(string name) { if (!Settings.ContainsKey(name)) { return; } var val = Settings[name]; if (!string.IsNullOrEmpty(val)) { _icharge.Config(String.Format("{0}={1}", name, val)); } }