If you’d like to use a different PayPal button at checkout, below is a code recipe and links to the buttons available through PayPal.

Button Options offered by PayPal

Check out with PayPal

Check out with PayPal
Check out with PayPal
Check out with PayPal

/* Large */
/* Medium */
/* Small */

Buy now with PayPal

Buy now with PayPal
Buy now with PayPal
Buy now with PayPal

/* Large */
/* Medium */
/* Small */

See all PayPal Buttons or visit the PayPal logo center for more options

Or, create your own.

You can also create your own PayPal button and host it on your own website, just make sure you load it over the https protocol if you are using SSL on your website.

Check out with PayPal

/* Custom */

The Filter

This recipe uses the pmpro_paypal_button_image filter. Update line 7 of the code recipe to either the desired PayPal logo URL or the URL for the custom button you created.

Copy and paste this code recipe into a helper PMPro Customizations plugin.

See all hooks and filters

Comments (13)

Wow. Which PayPal image URL are you using? Maybe the image is really large. Maybe you can use a URL parameter to make it smaller.

Maybe there is a CSS style on your site causing this. Use the browser debugger to check on that.

Hi Zikri,

Thank you for getting in touch with us!

If you would like to integrate a new payment gateway there is one of three things you can do:

1) Do this yourself, warning this is approach is not recommended for those who are not an extensively experienced developer. We do not offer adding payment gateway support. For more information on this, please see: https://www.paidmembershipspro.com/gateway/adding-a-new-gateway/

2) Use our WooCommerce Integration to sell Memberships as WooCommerce Products and use the WooCommerce Checkout to handle payments(only works if your payment gateway is supported by WooCommerce): https://www.paidmembershipspro.com/use-woocommerce-sell-memberships-payment-gateway-choice/

3) Get one of our Partner Developers to give you a cost estimate to develop an integration for you: https://www.paidmembershipspro.com/developers/

Hope this helps!

Actually – I don’t have any proof to back that up – merely an assumption, but my gut tells me it’s probably better practice. May be worth looking into. :/

Hi Kimberly,

Great post! Exactly what I was looking for!

One problem though…

I followed every step literally like you explained. But it resulted in a fatal error:

Fatal error: Cannot redeclare my_pmpro_paypal_button_image() (previously declared in /var/www/hashimnaushahi.com/wp-content/plugins/paid-memberships-pro/adminpages/reports/pmpro-customizations.php:16) in /var/www/hashimnaushahi.com/wp-content/plugins/pmpro-customizations/pmpro-customizations.php on line 19

Because of this the plugin couldn’t be activated. Did I do anything wrong and is there a way I can fix this?

Thank you in advance!


Hashim Naushahi

> previously declared in /var/www/hashimnaushahi.com/wp-content/plugins/paid-memberships-pro/adminpages/reports/pmpro-customizations.php:16

This is not a core file. You should move that file or the code in it into your pmpro-customizations/pmpro-customizations.php or maybe a reports directory in that plugin folder. Docs here: https://www.paidmembershipspro.com/2015/02/create-custom-reports-for-the-memberships-reports-admin/

Note the require line at the bottom to include the report file (vs it automatically be included by way of being in the core reports folder).

The real issue here though is that you have this function my_pmpro_paypal_button_image() defined twice. You probably only need one copy of that function. Or you can rename one of them.

If you need further help with this, please post to the member forums and we can help you there.

Leave a Reply

For faster support related to issues on your specific site please open a ticket in our members support area.

Your email address will not be published. Required fields are marked *