How to target payment methods only by ID

In this tutorial, we will learn how to target a specific method based on its unique ID.
Written by Fabio Romanelli
Updated 4 months ago

We used to hide payment methods based on name but there are situations where it can be complicated to target a method because of some translation on the store. 

For this scenario, we give the possibility to use the unique ID identification that targets the position of each payment method.

After you shared logs with the support team they will have to possibility to tell you the exact position of each method.

This is how your payment will look like 


From the above screenshot we see that in the second position there is “Cash on Delivery (COD)”

 To hide that exact method in that position it is enough to add the method payment “id:2”

You can add a method at the bottom of the rule page



After adding the method you can simply toggle the button and save the rule.



It will hide any payments present in the second position, for our specific example it will hide  “Cash on Delivery (COD)”


Did this answer your question?