• Resolved 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 4 years ago by kw11.
    • This topic was modified 4 years ago by kw11.
    • This topic was modified 4 years ago by kw11.
Viewing 4 replies - 1 through 4 (of 4 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://www.ads-software.com/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

    Plugin Support Rick Alday

    (@mrdaro)

    Hi Julian,

    We’ve seen various errors with folks trying to connect to the PayPal Donations gateway, and at this point all issues point toward something on PayPal’s side. We are working closely with PayPal to resolve these issues, and figure out what’s going on, but as I said, the issues are all on PayPal’s side at this point.

    Here’s what has worked for some folks:

    It seems that using an incognito browser somehow aids in making the connection. So try logging into your WordPress site in an incognito browser and see if that connects without issue to PayPal.

    If you are still unable to connect even when connecting with an incognito browser, we’d like to gather a bit more information about what’s going on, and have set up a special form to gather that information. Please fill out this form as completely as possible: https://givewp.com/paypal-onboarding-reports/

    We’re also tracking issues connecting to PayPal on this feedback, and I’ve added your comments as an internal comment for our team to see: https://feedback.givewp.com/bug-reports/p/paypal-donations-fails-to-connect

    Here’s how we’d recommend interfacing with PayPal on this, in addition to us sending along that information. Send them a support request with the following:

    Greetings!

    I am trying to connect my PayPal account to the GiveWP plugin for WordPress. I have gone through the onboarding process to connect my account, but when I finish I’m given the following message from GiveWP:

    (insert the error messages you are seeing)

    Please help me resolve these account errors so I can begin accepting payments via PayPal on GiveWP.

    As soon as we know anything more, we’ll pass it along!

    Thanks!

    I am having similar issue. This is my post https://www.ads-software.com/support/topic/paypal-donation-error/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t use PayPal Donations Gateway in legacy or multi-step’ is closed to new replies.