public T Parse(string body) { T rsp = null; var parameters = new LianLianPayDictionary(); try { rsp = JsonConvert.DeserializeObject <T>(body); var objdic = JsonConvert.DeserializeObject <Dictionary <string, object> >(body); foreach (var iter in objdic) { parameters.Add(iter.Key, iter.Value); } } catch { } if (rsp == null) { rsp = Activator.CreateInstance <T>(); } if (rsp != null) { rsp.Body = body; rsp.Parameters = parameters; } return(rsp); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "version", Version }, { "platform", Platform }, { "user_id", UserId }, { "no_order", NoOrder }, { "dt_order", DtOrder }, { "name_goods", NameGoods }, { "info_order", InfoOrder }, { "money_order", MoneyOrder }, { "notify_url", NotifyUrl }, { "url_return", UrlReturn }, { "userreq_ip", UserreqIp?.Replace(".", "_") }, { "url_order", UrlOrder }, { "valid_order", ValidOrder }, { "bank_code", BankCode }, { "pay_type", PayType }, { "no_agree", NoAgree }, { "shareing_data", ShareingData }, { "risk_item", RiskItem }, { "id_type", IdType }, { "id_no", IdNo }, { "acct_name", AcctName }, { "card_no", CardNo }, { "back_url", BackUrl }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "version", Version }, { "user_id", UserId }, { "platform", Platform }, { "app_request", AppRequest }, { "bg_color", BgColor }, { "font_color", FontColor }, { "syschnotify_flag", SyschnotifyFlag }, { "no_order", NoOrder }, { "dt_order", DtOrder }, { "name_goods", NameGoods }, { "info_order", InfoOrder }, { "money_order", MoneyOrder }, { "notify_url", NotifyUrl }, { "url_return", UrlReturn }, { "no_agree", NoAgree }, { "valid_order", ValidOrder }, { "id_type", IdType }, { "id_no", IdNo }, { "acct_name", AcctName }, { "shareing_data", ShareingData }, { "risk_item", RiskItem }, { "card_no", CardNo }, { "back_url", BackUrl }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "card_no", CardNo } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "api_version", Version } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "no_refund", NoRefund }, { "dt_refund", DtRefund }, { "oid_refundno", OidRefundNo } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "user_id", UserId }, { "platform", Platform }, { "pay_type", PayType }, { "no_agree", NoAgree } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "platform", Platform }, { "user_id", UserId }, { "token", Token }, { "verify_code", VerifyCode }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "platform", Platform }, { "api_version", ApiVersion }, { "no_order", NoOrder }, { "oid_paybill", OidPaybill }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "card_no", CardNo }, { "bank_code", BankCode }, { "brabank_name", BrabankName }, { "city_code", CityCode } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "no_order", NoOrder }, { "dt_order", DtOrder }, { "oid_paybill", OidPayBill }, { "query_version", QueryVersion }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "api_version", ApiVersion }, { "bank_code", BankCode }, { "card_type", CardType }, { "product_type", ProductType }, { "pay_chnl", PayChnl } }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "platform", Platform }, { "api_version", ApiVersion }, { "no_order", NoOrder }, { "confirm_code", ConfirmCode }, { "notify_url", NotifyUrl }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "platform", Platform }, { "user_id", UserId }, { "no_agree", NoAgree }, { "pay_type", PayType }, { "card_no", CardNo }, { "bind_mob", BindMob }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "no_refund", NoRefund }, { "dt_refund", DtRefund }, { "money_refund", MoneyRefund }, { "no_order", NoOrder }, { "dt_order", DtOrder }, { "oid_paybill", OidPaybill }, { "notify_url", NotifyUrl }, }; return(parameters); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "api_version", Version }, { "platform", Platform }, { "user_id", UserId }, { "no_order", NoOrder }, { "dt_order", DtOrder }, { "notify_url", NotifyUrl }, { "url_return", UrlReturn }, { "back_url", BackUrl }, { "risk_item", RiskItem }, { "flag_pay_product", FlagPayProduct }, { "flag_chnl", FlagChnl }, { "id_type", IdType }, { "id_no", IdNo }, { "acct_name", AcctName }, { "card_no", CardNo } }; return(parameters); }
public static string GetSignContent(LianLianPayDictionary dictionary, List <string> exclude = null) { if (dictionary == null || dictionary.Count == 0) { return(string.Empty); } var sb = new StringBuilder(); foreach (var iter in dictionary) { if (exclude != null && exclude.Contains(iter.Key)) { continue; } if (!string.IsNullOrEmpty(iter.Value) && "sign" != iter.Key) { sb.Append(iter.Key).Append("=").Append(iter.Value).Append("&"); } } return(sb.Remove(sb.Length - 1, 1).ToString()); }
public IDictionary <string, string> GetParameters() { var parameters = new LianLianPayDictionary { { "platform", Platform }, { "api_version", ApiVersion }, { "no_order", NoOrder }, { "dt_order", DtOrder }, { "money_order", MoneyOrder }, { "card_no", CardNo }, { "acct_name", AcctName }, { "bank_name", BankName }, { "info_order", InfoOrder }, { "flag_card", FlagCard }, { "memo", Memo }, { "prcptcd", Prcptcd }, { "bank_code", BankCode }, { "city_code", CityCode }, { "brabank_name", BrabankName }, { "notify_url", NotifyUrl } }; return(parameters); }