Tried writing Behat tests and got fatal errors.

VM8511:80 Uncaught ReferenceError: paypal is not defined
    at <anonymous>:80:9
    at paypal-checkout.min.js:1
(anonymous)	@	VM8511:80

Looks like paypal.Button.render(renderOptions, '#paypal-button'); is running before the SDK is loaded.

CommentFileSizeAuthor
#2 2959018-2.patch509 bytesmglaman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
FileSize
509 bytes

Giving this a try.

  • mglaman committed 91eb6a6 on 8.x-1.x
    Issue #2959018 by mglaman: Uncaught ReferenceError: paypal is not...
mglaman’s picture

Status: Needs review » Fixed

The PayPal button now loads!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

a.dreichan’s picture

Hello, mglaman, 2959018-2.patch working good for Anonymous, but not for Authenticated user, when logged as simple user(not admin), I still have Uncaught ReferenceError: paypal is not defined.