public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { partner = MerchantConfigValues.Where(r => r.Key.Equals("partner")).FirstOrDefault().Value; security_code = MerchantConfigValues.Where(r => r.Key.Equals("security_code")).FirstOrDefault().Value; seller_email = MerchantConfigValues.Where(r => r.Key.Equals("seller_email")).FirstOrDefault().Value; //body = MerchantConfigValues.Where(r => r.Key.Equals("body")).FirstOrDefault()?.Value; //currency = MerchantConfigValues.Where(r => r.Key.Equals("currency")).FirstOrDefault().Value; //service = MerchantConfigValues.Where(r => r.Key.Equals("currency")).Count() == 0 ? service : MerchantConfigValues.Where(r => r.Key.Equals("service")).FirstOrDefault().Value; if (!isTestMode) { Mode = "1"; //transport = "https"; url = "https://mapi.alipay.com/gateway.do?"; } else { Mode = "0"; //transport = "http"; url = "https://openapi.alipaydev.com/gateway.do?"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { this.isTestMode = isTestMode; userID = MerchantConfigValues.Where(r => r.Key.Equals("UserID")).FirstOrDefault().Value; UserName = MerchantConfigValues.Where(r => r.Key.Equals("UserName")).FirstOrDefault().Value; Password = MerchantConfigValues.Where(r => r.Key.Equals("Password")).FirstOrDefault().Value; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { ServiceKey = MerchantConfigValues.Where(r => r.Key.Equals("ServiceKey")).FirstOrDefault().Value; ServiceType = MerchantConfigValues.Where(r => r.Key.Equals("ServiceType")).FirstOrDefault().Value; AccountServiceKey = MerchantConfigValues.Where(r => r.Key.Equals("AccountServiceKey")).FirstOrDefault().Value; isTest = isTestMode; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { PayGateID = MerchantConfigValues.Where(r => r.Key.Equals("PayGateID")).FirstOrDefault().Value; Password = MerchantConfigValues.Where(r => r.Key.Equals("Password")).FirstOrDefault().Value; isTest = isTestMode; BankAccountEnabled = bool.Parse(MerchantConfigValues.Where(r => r.Key.Equals("BankAccountEnabled")).FirstOrDefault().Value); CreditCardEnabled = bool.Parse(MerchantConfigValues.Where(r => r.Key.Equals("CreditCardEnabled")).FirstOrDefault().Value); }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantUID = MerchantConfigValues.Where(r => r.Key.Equals("MerchantUID")).FirstOrDefault().Value; PaymentApplicationUID = MerchantConfigValues.Where(r => r.Key.Equals("PaymentApplicationUID")).FirstOrDefault().Value; VaultApplicationUID = MerchantConfigValues.Where(r => r.Key.Equals("VaultApplicationUID")).FirstOrDefault().Value; MerchantNumber = MerchantConfigValues.Where(r => r.Key.Equals("MerchantNumber")).FirstOrDefault().Value; ServiceType = MerchantConfigValues.Where(r => r.Key.Equals("ServiceType")).FirstOrDefault().Value; isTest = isTestMode; BankAccountEnabled = bool.Parse(MerchantConfigValues.Where(r => r.Key.Equals("BankAccountEnabled")).FirstOrDefault().Value); CreditCardEnabled = bool.Parse(MerchantConfigValues.Where(r => r.Key.Equals("CreditCardEnabled")).FirstOrDefault().Value); }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { DevToken = MerchantConfigValues.Where(r => r.Key.Equals("DevToken")).FirstOrDefault().Value; devID = int.Parse(MerchantConfigValues.Where(r => r.Key.Equals("devID")).FirstOrDefault().Value); cref = MerchantConfigValues.Where(r => r.Key.Equals("cref")).FirstOrDefault().Value; isTest = isTestMode; var qs = "f=auth&p=1&devtoken=" + DevToken + "&devid=" + devID; cookieJar = new CookieContainer(); string result = PostTransaction(URL, qs); }
public void Login(bool isTestMode, params Classes.MerchantConfigValue[] MerchantConfigValues) { authID = MerchantConfigValues.Where(r => r.Key.Equals("auth_id")).FirstOrDefault().Value; authPass = MerchantConfigValues.Where(r => r.Key.Equals("auth_pass")).FirstOrDefault().Value; if (isTestMode) { Mode = "1"; } else { Mode = "0"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { SafeKey = MerchantConfigValues.Where(r => r.Key.Equals("SafeKey")).FirstOrDefault().Value; userName = MerchantConfigValues.Where(r => r.Key.Equals("Username")).FirstOrDefault().Value; password = MerchantConfigValues.Where(r => r.Key.Equals("Password")).FirstOrDefault().Value; if (isTestMode) { Url = "https://staging.payu.co.za/service/PayUAPI"; } else { Url = "https://www.payu.co.za/service/PayUAPI"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantId = MerchantConfigValues.Where(r => r.Key.Equals("MerchantId")).FirstOrDefault().Value; PublicKey = MerchantConfigValues.Where(r => r.Key.Equals("PublicKey")).FirstOrDefault().Value; PrivateKey = MerchantConfigValues.Where(r => r.Key.Equals("PrivateKey")).FirstOrDefault().Value; if (isTestMode) { Environment = Braintree.Environment.SANDBOX; } else { Environment = Braintree.Environment.PRODUCTION; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { CompanyID = MerchantConfigValues.Where(r => r.Key.Equals("CompanyID")).FirstOrDefault().Value; Outlet = MerchantConfigValues.Where(r => r.Key.Equals("Outlet")).FirstOrDefault().Value; Username = MerchantConfigValues.Where(r => r.Key.Equals("Username")).FirstOrDefault().Value; Password = MerchantConfigValues.Where(r => r.Key.Equals("Password")).FirstOrDefault().Value; bool _isAutoSettleOn = true; if (MerchantConfigValues.Where(r => r.Key.Equals("isAutoSettleOn")).FirstOrDefault() != null) { isAutoSettleOn = bool.TryParse(MerchantConfigValues.Where(r => r.Key.Equals("isAutoSettleOn")).FirstOrDefault().Value, out _isAutoSettleOn); } isAutoSettleOn = _isAutoSettleOn; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantID = MerchantConfigValues.Where(r => r.Key.Equals("MerchantID")).FirstOrDefault().Value; MerchantKey = MerchantConfigValues.Where(r => r.Key.Equals("MerchantKey")).FirstOrDefault().Value; if (isTestMode) { posturl = "https://sandbox.payfast.co.za/eng/process"; validateurl = "https://sandbox.payfast.co.za/eng/query/validate"; } else { posturl = "https://www.payfast.co.za/eng/process"; validateurl = "https://www.payfast.co.za/eng/query/validate"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { BusinessEmail = MerchantConfigValues.Where(r => r.Key.Equals("BusinessEmail")).FirstOrDefault().Value; PDTIdentityToken = MerchantConfigValues.Where(r => r.Key.Equals("PDTIdentityToken")).FirstOrDefault().Value; if (!isTestMode) { Mode = "1"; url = "https://www.paypal.com/us/cgi-bin/webscr"; } else { Mode = "0"; url = "https://www.sandbox.paypal.com/us/cgi-bin/webscr"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantUID = MerchantConfigValues.Where(r => r.Key.Equals("MerchantUID")).FirstOrDefault().Value; PaymentApplicationUID = MerchantConfigValues.Where(r => r.Key.Equals("PaymentApplicationUID")).FirstOrDefault().Value; //VaultApplicationUID = MerchantConfigValues.Where(r => r.Key.Equals("VaultApplicationUID")).FirstOrDefault().Value; GatewayBank = MerchantConfigValues.Where(r => r.Key.Equals("GatewayBank")).FirstOrDefault().Value; if (!isTestMode) { Mode = "1"; } else { Mode = "0"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { partner = MerchantConfigValues.Where(r => r.Key.Equals("partner")).FirstOrDefault().Value; key = MerchantConfigValues.Where(r => r.Key.Equals("key")).FirstOrDefault().Value; if (!isTestMode) { Mode = "1"; //transport = "https"; url = "https://gw.tenpay.com/intl/gateway/pay.htm?"; } else { Mode = "0"; //transport = "http"; url = "https://gw.tenpay.com/intl/gateway/pay.htm?"; } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantID = MerchantConfigValues.Where(r => r.Key.Equals("MerchantID")).FirstOrDefault().Value; MerchantKey = MerchantConfigValues.Where(r => r.Key.Equals("MerchantKey")).FirstOrDefault().Value; Passphrase = MerchantConfigValues.Where(r => r.Key.Equals("Passphrase")).FirstOrDefault().Value; if (isTestMode) { posturl = "https://sandbox.payfast.co.za/eng/process"; validateurl = "https://sandbox.payfast.co.za/eng/query/validate"; apiurl = "https://api.payfast.co.za/subscriptions/{0}/{1}?testing=true"; //{0} token, {1} action } else { posturl = "https://www.payfast.co.za/eng/process"; validateurl = "https://www.payfast.co.za/eng/query/validate"; apiurl = "https://api.payfast.co.za/subscriptions/{0}/{1}?testing=false"; //{0} token, {1} action } }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { publicKey = MerchantConfigValues.Where(r => r.Key.Equals("PublicKey")).FirstOrDefault().Value; privateKey = MerchantConfigValues.Where(r => r.Key.Equals("PrivateKey")).FirstOrDefault().Value; merchantId = MerchantConfigValues.Where(r => r.Key.Equals("MerchantId")).FirstOrDefault().Value; var environment = Braintree.Environment.PRODUCTION; if (isTestMode) { environment = Braintree.Environment.SANDBOX; } gateway = new BraintreeGateway { Environment = environment, MerchantId = merchantId, PublicKey = publicKey, PrivateKey = privateKey }; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { publishableKey = MerchantConfigValues.Where(r => r.Key.Equals("PublishableKey")).FirstOrDefault().Value; secretKey = MerchantConfigValues.Where(r => r.Key.Equals("SecretKey")).FirstOrDefault().Value; System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { ServiceKey = MerchantConfigValues.Where(r => r.Key == "ServiceKey").FirstOrDefault().Value; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { ClientId = MerchantConfigValues.Where(r => r.Key.Equals("ClientId")).FirstOrDefault().Value; ClientSecret = MerchantConfigValues.Where(r => r.Key.Equals("ClientSecret")).FirstOrDefault().Value; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { MerchantIdentifier = MerchantConfigValues.Where(r => r.Key == "MerchantID").FirstOrDefault().Value; Username = MerchantConfigValues.Where(r => r.Key == "Username").FirstOrDefault().Value; Password = MerchantConfigValues.Where(r => r.Key == "Password").FirstOrDefault().Value; }
public void Login(bool isTestMode, params MerchantConfigValue[] MerchantConfigValues) { PayGateID = MerchantConfigValues.Where(r => r.Key.Equals("PayGateID")).FirstOrDefault().Value; Password = MerchantConfigValues.Where(r => r.Key.Equals("Password")).FirstOrDefault().Value; }