Google Chrome used to render the PayPal button - now it doesn't. Works in FF and IE though.

SambraveTheWise
Contributor
Contributor

As of a day or two ago, the PayPal button was rendering fine on the sites that I have it on. I found out today that it's now not displaying in Chrome (but it's working in Firefox and IE).

I've tested the following code (see fiddle: https://jsfiddle.net/SambraveTheWise/3vtrtrys/4/) in all three browsers, and it doesn't render anything in Chrome:

<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script>
	paypal.Button.render({
		env: 'sandbox',
		payment: function(resolve, reject) {
			paypal.request.post('')
				.then(function(data) { resolve(data); })
				.catch(function(err) { reject(err); });
		},
		onAuthorize: function(data, actions) {
			
		},
		onError: function(err) {
			
		},
		style: {
			size: 'medium',
			shape: 'rect',
			color: 'blue'
		},
    }, '#paypal-button');
</script>
<div id="paypal-button"></div>

 Is this an issue on PayPal's side?

Login to Me Too
2 REPLIES 2

shall2724
Contributor
Contributor

I have experienced the same issue. Paypal express button does not render in Chrome or Safari. It works just fine in MS Edge and Firefox.

Login to Me Too

SambraveTheWise
Contributor
Contributor

Looks like they have now fixed the issue.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.