• Resolved vazues

    (@vazues)


    Dear Stripe Team,

    Just wondering if it’s possible to disable the cc form and keep the apple pay functionality. At this time, my presumption is that something like this would suffice:

    add_filter(‘woocommerce_available_payment_gateways’, ‘disable_stripe_on_checkout’, 10, 1);

    function disable_stripe_on_checkout($gateways) {
    if ( is_checkout() || is_checkout_pay_page() ) {
    unset( $gateways[‘stripe’] );
    }
    return $gateways;
    }

    However, not sure if this would cause problems with the Apple Pay functionality.

    Thanks,V

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there @vazues,

    I’ve added your code to my test site and it seems like it’s working as you expected. I don’t have Stripe as a payment gateway on my checkout page anymore, but Apple Pay and Google Pay buttons are still there.

    I’d recommend you to try it out on your site, however, please do create a full backup of your site before adding any custom code.

    Cheers!

    Hi there @vazues,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to display CC form and keep Apple/Google Pay’ is closed to new replies.