/// <summary> /// Initializes a new instance of the <see cref="PayPalEnvironment"/> class. /// </summary> /// <param name="username">The username.</param> /// <param name="password">The password.</param> /// <param name="signature">The signature.</param> /// <param name="uri">The URI.</param> /// <param name="version"></param> /// <param name="accountCountry"></param> public PayPalEnvironment(string username, string password, string signature, Uri uri, string version, PayPalAccountCountry accountCountry) { if (username == null) throw new ArgumentNullException("username"); if (password == null) throw new ArgumentNullException("password"); if (signature == null) throw new ArgumentNullException("signature"); if (uri == null) throw new ArgumentNullException("uri"); this.Username = username; this.Password = password; this.Signature = signature; Uri = uri; Version = version; AccountCountry = accountCountry; }
internal static PayPalEnvironment NegativeTestAccountSandboxEnvironment(PayPalAccountCountry palAccountCountry) { //TODO should probably remove this to prevent reflectoring people messing in our sandbox :) return new PayPalEnvironment("usguy_1290197714_biz_api1.bentaylor.org", "1290197724", "AFcWxV21C7fd0v3bYYYRCpSSRl31ArACdUVW.OGiJn8.H3UIaPI36X97", new Uri("https://api-3t.sandbox.paypal.com/nvp"), "56.0", palAccountCountry); }