Smart Payment Buttons Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
First I want to ask about using Smart Payment Buttons, is it safe 100% ?
I have been using them for a while suddenly today i see a problem that the buttons are not loading.
Uncaught Error: Attempted to load sdk version 5.0.63 on page, but version unknown already loaded.
To load this sdk alongside the existing version, please specify a different namespace in the script tag, e.g. , then use the paypal_sdk namespace in place of paypal in your code.
Uncaught TypeError: paypal.Buttons is not a function
- Labels:
-
PayPal Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Having the same problem as of two days ago.
Attempted to load sdk version 5.0.65 on page, but version unknown already loaded
Using this as my script tag src (client-id removed)
https://www.paypal.com/sdk/js?currency=GBP&client-id=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Had the same problem. Turns out it was due to having an element on the page with the html ID of 'paypal' - in my case the container for the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! This solved the problem for me. I had an HTML element with the id "paypal" on my page, which the JS didn't like. You'd think such an important detail like that would be included in the documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved the problem like this :
1. Added "data-namespace" attribute to the script tag that loads PayPal SDK :
<script src="https://www.paypal.com/sdk/js?client-id=AfxLL8RXpurHInY6zjcDA6imSlrFGkgDs1nCArTInsxc-TZNfoPjAr6T43Tu..." data-namespace="paypal_sdk" ></script>
2. Setup the transaction :
paypal_sdk.Buttons().render('#paypal-button-container');

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal - Woocommerce - doesn't work. What is problem? in Merchant Products and Services Archives
- Has PayPal removed the ability to update shipping charges on PayPal Buttons? in Business Tools Archives
- Paypal Here taking authorization & payment in Merchant Products and Services Archives
- Paypal Thailand seller buttons not working on personal account in Merchant Products and Services Archives
- How to Edit Payment button in Merchant Products and Services Archives