Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Can’t use PayPal Donations Gateway in legacy or multi-step

  • kw11

    (@kw11)


    I can use PayPal Standard and Stripe, but I cannot use the new PayPal Donations Gateway.

    The multi-step form gives a 400 internal server error when submitting via admin-ajax.php

    On legacy, I just see a blank page with a URL like this:
    https://domain.org/donations/2035/?payment-mode=paypal-commerce

    In the developer console, I see this error pertaining to the paypal-commerce.js script.

    paypal-commerce.js?ver=2.9.1:18 Possible Unhandled Promise Rejection: DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
        at s.value (https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:31659)
        at s.value (https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:31774)
        at s.value (https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:13986)
        at n (https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:36559)
        at https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:37468
        at https://domain.org/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:1:3255
        at t.exports (https://domain.org/wp-content/plugins/give/assets/dist/js/babel-polyfill.js?ver=2.9.1:1:38857)
        at g.<computed> (https://domain.org/wp-content/plugins/give/assets/dist/js/babel-polyfill.js?ver=2.9.1:1:32211)
        at Number.x (https://domain.org/wp-content/plugins/give/assets/dist/js/babel-polyfill.js?ver=2.9.1:1:32069)
        at MessagePort.m (https://domain.org/wp-content/plugins/give/assets/dist/js/babel-polyfill.js?ver=2.9.1:1:32091)

    This is the functions that’s outputting the error in paypal-js

    a._unhandledRejectionFn = function(e) {
        "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", e)
     }

    I disabled plugins, disabled security, disabled optimizations, and still have this issue. One time in the console it looked like it was trying to pass “null” keys to PayPal. GiveWP says I am properly connected to the PayPal Donations gateway.

    Any ideas? Thanks.

    • This topic was modified 2 weeks ago by kw11.
    • This topic was modified 2 weeks ago by kw11.
    • This topic was modified 2 weeks ago by kw11.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ben Meredith

    (@benmeredithgmailcom)

    Hey @kw11

    Glad you reached out, here! This is the first report of this particular error, so we’ll need to be able to replicate the problem somewhere. Can you pass along a link to a page where the problem is happening live?

    According to that bit of code, that’s a warning, not necessarily a true error. But the fact that it’s halting donations tells me it might be the real deal.

    Either way, we’ll need more context to be able to get to the bottom of this. Have you confirmed that you are connected to the new PayPal integration on the back end of the site?

    Any steps you can give us or additional context (like the system info at Donations > Tools > System Info) would be great.

    JulianR

    (@julianrush)

    Hi Ben

    If it helps you debug this issue, I get exactly the same console error messages with my legacy form single form view on a test form for the new PayPal Donations gateway on my staging site.

    It looks like the insertion of the PayPal button is failing as a result of this issue. I had previously reported the issue in this forum here: https://wordpress.org/support/topic/paypal-button-missing-2/

    Possible Unhandled Promise Rejection: DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
        at s.value (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:31659)
        at s.value (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:31774)
        at s.value (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:13986)
        at n (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:36559)
        at https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:37468
        at https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:1:3255
        at https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:6849
        at p (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:6964)
        at s (https://www.odysseus-unbound.org/oustaging/wp-content/plugins/give/assets/dist/js/paypal-commerce.js?ver=2.9.1:18:6322)
    a._unhandledRejectionFn @ paypal-commerce.js?ver=2.9.1:formatted:408
    (anonymous) @ paypal-commerce.js?ver=2.9.1:formatted:259
    (anonymous) @ paypal-commerce.js?ver=2.9.1:formatted:760
    p @ paypal-commerce.js?ver=2.9.1:formatted:774
    s @ paypal-commerce.js?ver=2.9.1:formatted:721
    postMessage (async)
    n @ paypal-commerce.js?ver=2.9.1:formatted:726
    f.setImmediate @ paypal-commerce.js?ver=2.9.1:formatted:738
    a._immediateFn @ paypal-commerce.js?ver=2.9.1:formatted:401
    l @ paypal-commerce.js?ver=2.9.1:formatted:258
    u @ paypal-commerce.js?ver=2.9.1:formatted:255
    (anonymous) @ paypal-commerce.js?ver=2.9.1:formatted:218
    (anonymous) @ paypal-commerce.js?ver=2.9.1:formatted:760
    p @ paypal-commerce.js?ver=2.9.1:formatted:774
    s @ paypal-commerce.js?ver=2.9.1:formatted:721
    postMessage (async)
    n @ paypal-commerce.js?ver=2.9.1:formatted:726
    f.setImmediate @ paypal-commerce.js?ver=2.9.1:formatted:738
    a._immediateFn @ paypal-commerce.js?ver=2.9.1:formatted:401
    s @ paypal-commerce.js?ver=2.9.1:formatted:211
    a.then @ paypal-commerce.js?ver=2.9.1:formatted:309
    (anonymous) @ paypal-commerce.js?ver=2.9.1:formatted:2314
    (anonymous) @ give.js?ver=2.9.1:35
    Promise.then (async)
    u @ give.js?ver=2.9.1:35
    (anonymous) @ give.js?ver=2.9.1:45
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3

    I’m connected to the PayPal sandbox on the staging site as a test form using the multi-step template works fine. You’ll need a login for my staging site if you want to see it – let me know and I’ll DM login credentials to you.

    Here’s the single view form page url: https://www.odysseus-unbound.org/oustaging/donations/test-new-paypal-legacy/

    Cheers

    Julian

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.