Paypal Donate Payment not Completing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nothing has changed in my code but at some time after 5/24 this stopped working. I'm using the donate sdk with the following scripts.
The debug ID is: 3392539fa4a27
My merchant ID is: 4HE5P5XSU4S9E
<script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
<script>
PayPal.Donation.Button({
env: 'sandbox',
business: '<removed, but I have a valid sandbox paypal email address here>',
image: {
src: '../assets/img/gsale-paypal-donate.png',
title: 'PayPal - The safer, easier way to pay online!',
alt: 'Donate with PayPal button'
},
onComplete: function (params) {
// Your onComplete handler
$('#donor-message').text('Thank you for your donation!');
$('#donor-message').addClass('fs-4');
$('#paypal-donate-button-container').addClass('d-none');
},
}).render('#paypal-donate-button-container');
</script>
Upon clicking the donate button the window opens that allows me to enter the amount of my donation. Upon clicking Next the window flashes and appears to reload once or twice but then nothing happens. The wait graphic spins with the message "Please wait...." I can let it sit there for 5 minutes and it never changes and nothing appears. In production it prompts me for my funding source and a Donate button to complete the transaction. In the Chrome console I see these errors.
notifications.js:754 Failed to locate element with ID:notifications-mobile-popover
notifications.js:754 Failed to locate element with ID:notifications-popover
Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
at trackBadgeImpression (notifications.js:1166:48)
at startNotificationTracking (notifications.js:1162:5)
I've tried different browsers, on an iPhone, on a Windows 10 PC, I tried inPrivate browsing, clearing cache/cookies, from a different network. I tried a different sandbox payment account, I created a new sandbox payment account, I have money in all sandbox accounts, I tried a new business account to donate the money too. All have the same result.
This exact same code was working in Sandbox, and does work in production.
- Labels:
-
SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MTS_Justin I am also facing the same issue in Sandbox environment. Please can you provide an ETA when this issue will be fixed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is currently no ETA to share on the anticipated resolution of this issue.
Once the issue has been confirmed as resolved, I'll post back in this thread.
Thanks !
Was my post helpful? If so, please give me a kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using a custom credit card sadly doesn't work for me either. It just takes me to a blank page with 'error' in the URL (and typically for PayPal) no information on what the error actually is.
I'm now having to use actual funds to test these facilities which is utterly shambolic.
PayPal are the worst service it integrate with - I'm migrating all my projects to Stripe which is a dream (and far cheaper) by comparison.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same here. The credit card option fails for me, also for completely indecipherable reasons. I, too, have been forced to test on a live site. A pretty fundamental piece of testing infrastructure is completely broken and paypal absolutely can't be bothered. This company is the absolute worst.
Maybe time to start looking at alternatives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Replying to this message as I'm having the same exact error and do sub to the thread when an answer is provided. It's been months...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm starting on a project to implement donations for a charity and was investigating paypal's options and am still having this issue as of 9 August.
Just wanted to say I'm shocked that this has been broken for 3+ months and still doesn't have an ETA for a fix. Incredible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your continued patience.
The technical issue which caused donations not to function correctly within our sandbox environment has now been resolved.
I've tested both a PayPal account funded and direct credit card donation today and both completed without issue.
I want to take this opportunity to thank you for your patience as we investigated and resolved the issue, it took much longer than we anticipated or would have wanted.
Apologies again for any inconvenience this issue may have caused you.
Thanks !
Was my post helpful? If so, please give me a kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There "might" be a vulnerability with this, I have had many URL hits in the logs of many servers where hackers are scanning for those who self host this file,
I am an ISP hosting many site's and this URL keeps turning up, even when the donations code is not used in said site's, they don't seem very educated but here is the URL "/www.paypalobjects.com/donate/sdk/donate-sdk.js"
Just thought I would give you the heads up as I can't find any documentation to back this up, yet!
Note the root slash!

- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- webhook payment capture completed issue in Sandbox Environment
- PayPal Complete Payments Error Notification in PayPal Reporting
- Need advice on Account / Donations / Payouts / technical issues in Sandbox Environment
- Nexus Mods donation button gives the message, "This organization can't accept donations right now" in PayPal Payments Standard
- Sandbox payments not completing; Opencart 3.0.4.0 and PayPal Checkout Integration V3.0.2 in Sandbox Environment