I would like to use Shopify script API in order to hide a certain payment method based on the user's selection of the shipping method.
I would apperciaite any help.
From the API doc it doesn't appear possible as there is no indication in the Cart object of the selected shipping method and the Payment scripts only doesn't add any reference to shipping.
how to if they select paid order redirect directly to razor payment gateway or they select COD comeplete the order
or maybe how o hide the payment gateway according to shippment selection
Ps i have shopify plus