I am setting up my online store and I want to be able to allow customers the option of paying COD if they pick up at my location only. I also deliver orders to various locations, but I want that method not to be able to pay via COD.
Any ideas?
protected CheckoutPaymentMethodModel PreparePaymentMethodModel(IList<ShoppingCartItem> cart)
{
...
foreach (var pm in boundPaymentMethods)
{
if(deliver orders to various locations && pm == COD) continue;
}
...
}