• Resolved iCanvas

    (@unison123)


    Hi guys!

    Quick question to see if we can use the Stripe plugin to set up Apple Pay only – so not use the main Stripe credit card payment facility but only Apple pay?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    There are no built-in settings for disabling the credit card functionality at Checkout and only using the Apple Pay button.

    I tried playing with a PHP snippet to remove the Stripe option only on the Checkout page (based on code from here, but changing the country check to is_checkout() instead), but after testing the Payment Request buttons from the Single Product page they were giving errors about the payment method.

    It would be possible to just hide the Stripe/credit card option on the Checkout page using this CSS:

    
    .woocommerce-checkout li.payment_method_stripe {
      display:none;
    }
    

    You can add that to the “Additional CSS” section of your Customizer (Appearance > Customize).

    I hope that helps!

    Thread Starter iCanvas

    (@unison123)

    Thanks very much!

    The css works great at hiding the Stripe payment option – do you know if the Apple pay button uses a different CSS selector? So that it isn’t also hidden by the above .class?

    Thanks!

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Yes, the payment request buttons use a different class, and I believe the .woocommerce-checkout part of the CSS should make sure it’s only applied on the Checkout page.

    I hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Stripe for Apple Pay only (not CC payments)’ is closed to new replies.