public DirectPayment ConfigureExcludedPaymentMethod() { CountryCode countryCode = CrOrderBuilder.GetCountryCode(); if (countryCode != CountryCode.SE) { ExcludedPaymentMethod.Add(PaymentMethod.SEBSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.NORDEASE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SEBFTGSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SHBSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SWEDBANKSE.Value); } if (countryCode != (CountryCode.NO)) { ExcludedPaymentMethod.Add(PaymentMethod.BANKAXESS.Value); } ExcludedPaymentMethod.Add(PaymentMethod.PAYPAL.Value); ExcludedPaymentMethod.Add(PaymentMethod.KORTCERT.Value); ExcludedPaymentMethod.Add(PaymentMethod.SVEACARDPAY.Value); ExcludedPaymentMethod.Add(PaymentMethod.SKRILL.Value); ExcludedPaymentMethod.AddRange(Excluded.ExcludeInvoicesAndPaymentPlan()); return(this); }
public CardPayment ConfigureExcludedPaymentMethod() { //Payment service providers ExcludedPaymentMethod.Add(PaymentMethod.PAYPAL.Value); //Direct bank payment methods ExcludedPaymentMethod.Add(PaymentMethod.NORDEASE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SEBSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SEBFTGSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SHBSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.SWEDBANKSE.Value); ExcludedPaymentMethod.Add(PaymentMethod.BANKAXESS.Value); //Invoices and payment plan ExcludedPaymentMethod.AddRange(Excluded.ExcludeInvoicesAndPaymentPlan()); return(this); }