sted Re: Remove Express Payment Gateway Options?

How to remove Paypal & Amazon express payment methods using script editor?

gilg
Shopify Partner
31 6 6

I have a Payment Gateway script which removes all payment gateway options except for one. This works on the payment step however I noticed that it does not affect "Express" checkout options such as Paypal and Amazon:

 

Screen Shot 2019-09-17 at 4.21.20 PM.png

Is there a way to remove Paypal & Amazon express payment methods using Shopify Scripts editor?

Input.payment_gateways.delete_if do |payment_gateway|
    next unless payment_gateway.name != ALLOWED_GATEWAY
    puts payment_gateway.name
  end

This is the script. For now, I've resorted to just adding custom Javascript to the checkout.liquid layout but I'd very much prefer relying on the Script Editor if possible.

I make Checkout Promotions on the app store. Native pre & post purchase upsells - used by over 1,800 merchants.
Reply 1 (1)

Agolab
Explorer
53 0 17

Interested in removing all the section as well.