3

Is there a way to add some style to Paypal checkout button?

enter image description here

Or create my own button for paypal checkout?

Machavity
  • 30,841
  • 27
  • 92
  • 100
ArmKh
  • 435
  • 9
  • 31

3 Answers3

5

If you're using the paypal.Button.render integration, then no. The button is rendered in an iframe, so the style can customized but not changed completely:

https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/customize-button/

This means that the button will render at high resolution on any device, including retina monitors, rather than an image which can look blurry depending on the device you're using.

bluepnume
  • 16,460
  • 8
  • 38
  • 48
1

As said above you cannot customize those button, but you can try some css - js hack to change it's look. For example, you could make paypal button opacity 0 - then pull your button up under paypal button and make your button z-index -1 so user could click paypal button. Also you could add the hover effect on hovering paypal button. I hope you catch an idea. But yet - it is just visual hack.

1

Well, there are several designs provided by PayPal itself. (Have a look at them). But if you want your own style then you'll need to implement payment in back-end and bind to it your own button.

Serenkiy
  • 249
  • 3
  • 14