I want to restrict COD based on country we select under billing address in checkout page
Here's how to allow the COD payment method for only specified countries:
- Go to system -> configuration -> Payment Methods
- Expand the section "Cash on Delivery Payment
- Change "Payment from Applicable Countries" to "Specific countries."
- In the Payment from Specific Countries list, select only the countries where you want Cash on Delivery to appear. (Tip: hold down the CMD key to select multiple countries.)
- Save the configuration.