PayPal button not showing in a pop-up

PayPal button is sometimes not showing up on a form. When I refresh with cmd+r PayPal then shows.

  • Ash
    • Code Norris

    Hello Scott

    I can see there are two JS errors on the console. The error seems to be related to a conflict between modal box and paypal script.

    The error says: “Uncaught Error: Error: zoid destroyed all”, zoid is used here for the modal/popup box.

    And this is the full error:

    VM851 js:357 Uncaught Error: Error: zoid destroyed all
    at destroyAll (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:11604:53)
    at component_destroy (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:11611:3)
    at button_destroy (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:18595:3)
    at https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:5540:16
    at Array.forEach (<anonymous>)
    at Object.value (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:5539:18)
    at setupSDK (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:5478:44)
    at sdk_release (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:6202:10)
    at Module.../../../../tmp/0dc9536a-17a9-4e77-92e4-1ce4ab5d09bc.js (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:18739:1)
    at __webpack_require__ (https://www.paypal.com/sdk/js?client-id=AZT9N76mEWQUeaPwyrXPSHd89F91jh6uwdebbh9Rw0HIRmo_vcWziWkuzExZH3fMJwwhSPFTKVUwPpfb&currency=GBP&locale=en_US&debug=true:20:30)

    Do you have any other popup module? If not, would you please try a popup plugin to embed the same form? You can try our Hustle plugin as well. I just want to make sure if this is really a conflict between that specific modal and the form.

    Let us know how it goes.

    Have a nice day!

    Cheers,

    Ash