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); }
private string GetValidInvoiceTypeForIncludedList() { foreach (var it in InvoiceType.AllInvoiceValueTypes) { //never include old flow to include list if (CrOrderBuilder.GetCountryCode() == CountryCode.SE && it == InvoiceType.INVOICESE) { continue; } if (it.CountryCode == CrOrderBuilder.GetCountryCode()) { return(it.Value); } } return(""); }
private string GetValidPaymentPlanTypeForIncludedList() { foreach (var ppt in PaymentPlanType.AllPaymentPlanValueTypes) { //never include from old flow to include list - won´t show in paypage if (CrOrderBuilder.GetCountryCode() == CountryCode.SE && ppt == PaymentPlanType.PAYMENTPLANSE) { continue; } //include only Payment plan for current country if (ppt.CountryCode == CrOrderBuilder.GetCountryCode()) { return(ppt.Value); } } return(""); }