Title: Paypal Javascript error
Last modified: May 13, 2020

---

# Paypal Javascript error

 *  Resolved [vakondweb](https://wordpress.org/support/users/vakondweb/)
 * (@vakondweb)
 * [6 years ago](https://wordpress.org/support/topic/paypal-javascript-error/)
 * Hi,
 * I have a Woocommerce website with onepage checkout,
    but the checkout completly
   dissapeared after the plugin update and the console shows me JS errors:
 *     ```
       paypal-checkout.js?ver=3.1.8:254 ppxo_unhandled_error Object
       print @ paypal-checkout.js?ver=3.1.8:254
       paypal-checkout.js?ver=3.1.8:5497 Uncaught Error: [paypal-button] Context type iframe requires an element selector
           at Component.validateRenderContext (paypal-checkout.js?ver=3.1.8:6552)
           at Component.getRenderContext (paypal-checkout.js?ver=3.1.8:6562)
           at paypal-checkout.js?ver=3.1.8:6568
           at Function.ZalgoPromise.try (paypal-checkout.js?ver=3.1.8:5660)
           at Component.render (paypal-checkout.js?ver=3.1.8:6567)
           at callOriginal (paypal-checkout.js?ver=3.1.8:16954)
           at paypal-checkout.js?ver=3.1.8:14387
           at Component.obj.<computed> [as render] (paypal-checkout.js?ver=3.1.8:16949)
           at PayPal.<anonymous> (wc-braintree.min.js?ver=3.1.8:1)
           at new Promise (<anonymous>)
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpaypal-javascript-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years ago](https://wordpress.org/support/topic/paypal-javascript-error/#post-12834967)
 * Hi [@vakondweb](https://wordpress.org/support/users/vakondweb/),
 * Are you combining the cart page and checkout page? If so I believe that’s the
   issue. The paypal-cart scripts is trying to attach itself to the cart element
   but it doesn’t exist.
 * In the next release of the plugin I will be adding a check to ensure the HTML
   element exists before attempting to attach the PayPal button. That should resolve
   issues like this where theme’s use a combined checkout page.
 * Kind Regards,
    -  This reply was modified 6 years ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).
    -  This reply was modified 6 years ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).
    -  This reply was modified 6 years ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).

Viewing 1 replies (of 1 total)

The topic ‘Paypal Javascript error’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [paypal](https://wordpress.org/support/topic-tag/paypal/)

 * 1 reply
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/paypal-javascript-error/#post-12834967)
 * Status: resolved