Remove payment method from the payment list in the POS #366
-
Hello All, Trust all are doing well!!! We have requirement to display the payment methods based on the device. We have both commerce pos and mobile pos, we do not want to display the cash option for the mobile pos. When we click on the amount due that time a payment dialog opens with the list of payment methods. From this list we want to disable the cash payment option. Kindly suggest a solution. It will be better if there is any configuration available. It helps us to avoid the customization. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @Pankaj-0723 - unfortunately, there is not a configuration available in HQ that would allow you to filter payment methods based on the device type. But there is a |
Beta Was this translation helpful? Give feedback.
Hello @Pankaj-0723 - unfortunately, there is not a configuration available in HQ that would allow you to filter payment methods based on the device type.
But there is a
PreSelectTransactionPaymentMethod
trigger that you can use to implement this scenario with an extension. And we have a sample demonstrating how to implement this trigger: CreditCardOnlyPreSelectTransactionPaymentMethod.ts. The sample shows how to filter the list to only show credit cards, you should be able to easily modify it to only filter out the Cash payment option.