Problem with prepaid shipping and COD How can I link specific payment methods to shipping

At checkout after the customer enters his personal details the customer is prompted to select shipping method in the next step

here I offer two shipping methods:

  1. Free Shipping (Prepaid orders only)

  2. Cash on Delivery (COD)

if the customer selects COD..only COD should be shown at final payment method

if customer selects Prepaid..only PayU (my payment gateway) should be shown at the final step

regardless of which shipping method I select, both COD and Prepaid payment options are showing up at final step of my store

How can I fix it?

I want

ONLY Cash on delivery payment to show when cash on delivery shipping method is selected

and

ONLY PayU (My prepaid payment gateway) payment to show when prepaid shipping method is selected

1 Like

Hi,

You need to use an app for this. Our app Paymix offers this functionality to hide payment methods based on the selected shipping methods. You can install the app here and reach out to the customer support for help.

You can link specific payment methods to shipping options using the PayRules: Hide Payment Methods app. Here’s how you can do it:

Create a rule for COD:

  1. Choose “Cash on Delivery (COD)” from the “Select payment methods” field.
  2. In the “Shipping/delivery titles” field, select “Hide if not found” and enter “Cash on Delivery (COD)”.

Create a rule for Prepaid:

  1. Add “PayU” in the “Additional payment methods” field.
  2. In the “Shipping/delivery titles” field, select “Hide if not found” and enter “Free Shipping”.

This will ensure that only the relevant payment method is shown based on the selected shipping option.