Title: Styling the Payment Request Button
Last modified: March 13, 2019

---

# Styling the Payment Request Button

 *  Resolved [akc123](https://wordpress.org/support/users/akc123/)
 * (@akc123)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/)
 * So the payment request button works fine, and switches between Google Pay and
   Apple Pay depending on browser/device.
 * On Apple devices, the button uses the Apple Pay logo which is obvious and clear
   enough – if people don’t have Apple Pay, then they just ignore it and use the
   normal WooComm “Continue to Checkout” button.
 * But on Google/Android/Chrome devices, the button is purple with a nice little
   animated arrow with just the one word “Buy” – this is incredibly confusing for
   customers, because obviously most who see this large animated Buy button will
   click on it without realizing it is a separate button just for Google Pay. And
   if they don’t have a payment method activated with GP or don’t want to use it,
   they have no idea what’s going on. And often don’t even see the normal “Continue
   to Checkout” button due to their confusion.
 * So despite the nice purple animated style, this button obviously needs to be 
   changed for GP similar to the AP button which makes it absolutely clear to visitors
   that this is a special button for GP only.
 * If that isn’t possible, then there needs to be a way to edit the “Buy” text in
   the plugin settings to change it to some custom text, like “Buy Now with Google
   Pay” or whatever.
 * Surprised that no one else has commented on this, but I guess most sites using
   this plugin have the Payment Request button deactivated (as I have done until
   this gets sorted)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [royho](https://wordpress.org/support/users/royho/)
 * (@royho)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11308512)
 * This plugin uses what is available provided by Stripe see here [https://stripe.com/docs/stripe-js/elements/payment-request-button#styling-the-element](https://stripe.com/docs/stripe-js/elements/payment-request-button#styling-the-element)
 * Other than that it would be a complete custom solution which we don’t support.
 *  [Mike W](https://wordpress.org/support/users/nixiack8/)
 * (@nixiack8)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11348320)
 * Hi [@akc123](https://wordpress.org/support/users/akc123/),
 * I will go ahead and close this thread, if you have further questions please open
   a new thread and let us know!
 *  [Afnan Abbasi](https://wordpress.org/support/users/afnangulabbasi/)
 * (@afnangulabbasi)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11425560)
 * Hey, I don’t know if you got help with this or not but I have written a complete
   blog post explaining how to do this because I needed help with this as well.
 * Check it here: [https://justentrepreneurship.com/stripe-payment-request-button-style](https://justentrepreneurship.com/stripe-payment-request-button-style)
    -  This reply was modified 7 years, 1 month ago by [Afnan Abbasi](https://wordpress.org/support/users/afnangulabbasi/).
 *  [jwpapi](https://wordpress.org/support/users/jwpapi/)
 * (@jwpapi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11652415)
 * [@afnangulabbasi](https://wordpress.org/support/users/afnangulabbasi/) Have you
   found a way to keep this with an update?
 *  [Afnan Abbasi](https://wordpress.org/support/users/afnangulabbasi/)
 * (@afnangulabbasi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11652456)
 * [@jwpapi](https://wordpress.org/support/users/jwpapi/) I had asked the plugin
   developer about this.
 * You can read that here: [https://wordpress.org/support/topic/how-to-override-the-plugin-files/](https://wordpress.org/support/topic/how-to-override-the-plugin-files/)
 * There are multiple ways that include un-enqueue and re-enqueue, making a duplicate
   one. There are no hooks in that part of the plugin so we actually cannot modify
   using the hooks.
 * But I took the approach of duplicating the plugin. You can change the name + 
   version of the plugin in the main plugin file and keep it like it is your own
   custom plugin. Often times when you are updating your plugins in a month or so,
   you can see if the plugin has been updated and then manually update all the files.
 * Sounds tedious but that’s the only solution at the moment. I could work on the
   un-enqueue and re-enqueue thing as that would be the best solution here but I
   am a little busy at the moment with some client work that I can not focus onto
   this.
 *  [jwpapi](https://wordpress.org/support/users/jwpapi/)
 * (@jwpapi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11652484)
 * Thank you a lot! That already helps me a lot.
 * BTW I might look into a way to display it only in Chrome + Android. Since in 
   Chrome you can use Google Pay too. I will update here if I have done it first
   going through your documentation.
 *  [Afnan Abbasi](https://wordpress.org/support/users/afnangulabbasi/)
 * (@afnangulabbasi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11652504)
 * You’re welcome!
 * Displaying it only on Chrome and Android could be done as well, I think there
   is a JS Piece of code which helps us detect browsers so maybe we could just use
   that. But it will require more customization & time.
 * My Customization on the site, I published it two months ago so it must be working.
   It pretty much follows the same thing as Stripe says on their documentation but
   just a little differently. Also, they explain it complex, I explained it more
   WordPress-way.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Styling the Payment Request Button’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

## Tags

 * [apple pay](https://wordpress.org/support/topic-tag/apple-pay/)
 * [Google pay](https://wordpress.org/support/topic-tag/google-pay/)
 * [Payment Request Button](https://wordpress.org/support/topic-tag/payment-request-button/)

 * 7 replies
 * 5 participants
 * Last reply from: [Afnan Abbasi](https://wordpress.org/support/users/afnangulabbasi/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/styling-the-payment-request-button/#post-11652504)
 * Status: resolved