used canUseCheckout = false in this method what remove the checkout payment option from the page, but also from the api. Any suggestions on how to achieve this?
You want to disable complete checkout module ? or only payment step from the checkout ?
Which is accessible from the API ?
Please elaborate more so its help us to troubleshoot the issue
Hi, I access all the chekout by api, I have 4 payment methods and only 1 of them I need to not appear in the backend checkout and continue accessible by api. The application that accesses the api is in java.
I understand your point ! then here disabling the payment method option will not work
As per my knowledge here you need to do some tricks with frontend part because from the backend you must require to enable that payment gateway/method so that you can access via API.
So from the frontend part just disable/comment out that payment method section and it will work for you .
Hope it helps !