Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Conversation

@dechov
Copy link
Contributor

@dechov dechov commented Feb 3, 2019

Fixes #527

A change in a recent release of PayPal's checkout.js is incompatible with the null value we were passing to paypal.Button.render for the allowed funding methods, breaking the rendering of the buttons. Passing undefined as an alternative works fine.

Can test by loading the Cart page with Smart Payment Buttons and vertical layout enabled: in this branch the buttons should render normally, while in master there should be no buttons and a browser console error.

Edit: behavior can also be confirmed on PayPal Checkout's demo page: allowed: null doesn't work, but allowed: undefined does.

This change brings the render call closer in line with not including the unneeded property at all (i.e. only disallowed is supported for vertical layout) – it is a minimal fix to solve the urgent issue.

…alue

A change in a recent release of PayPal's checkout.js is incompatible with the null value we were passing, breaking the rendering of the buttons – passing undefined as an alternative works fine.
@thesacredpath
Copy link

@dechov, how soon should this show up in user's dashboards as an available update?

@dechov
Copy link
Contributor Author

dechov commented Feb 3, 2019

@thesacredpath Should be up in the next 10-20 minutes.

@thesacredpath
Copy link

Thanks a bunch. I'll let the user know.

@dechov dechov deleted the fix/527-spb-buttons-not-showing-in-vertical-layout branch August 30, 2019 00:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smart Payment Buttons disables checkout

4 participants