Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2959018-2.patch | 509 bytes | mglaman |
|
Comments
Comment #2
mglamanGiving this a try.
Comment #4
mglamanThe PayPal button now loads!
Comment #6
a.dreichanHello, 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.