Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Feb-21-2017
Country: United Kingdom
Type: Business
Shugwood
Shugwood Contributor
Contributor
2
Posts
1
Kudos
0
Solutions
Your 5th PayPal Anniversary
Liked
Active
Your 3rd PayPal Anniversary
Your PayPal Anniversary
The Return
View all
Latest Contributions by Shugwood
  • Topics Shugwood has Participated In
  • Latest Contributions by Shugwood

Some customers finding Smart Paypal button unrespo...

by Shugwood Contributor in PayPal Payments Standard
‎Apr-29-2021 01:43 AM
‎Apr-29-2021 01:43 AM
I have a smart button embedded in a code block on my Wordpress website. It works fine for most people but some customers report that the buttons are unresponsive. Any ideas? Here's the code:   <div id="smart-button-container"> <div style="text-align: center"><label for="description">What is your payment for? Membership? Shop Sales? Donation? Something else? </label><input type="text" name="descriptionInput" id="description" maxlength="127" value=""></div> <p id="descriptionError" style="visibility: hidden; color:red; text-align: center;">Please enter a description</p> <div style="text-align: center"><label for="amount">Enter total amount without the £ sign </label><input name="amountInput" type="number" id="amount" value="" ><span> GBP</span></div> <p id="priceLabelError" style="visibility: hidden; color:red; text-align: center;">Please enter a price</p> <div id="invoiceidDiv" style="text-align: center; display: none;"><label for="invoiceid"> </label><input name="invoiceid" maxlength="127" type="text" id="invoiceid" value="" ></div> <p id="invoiceidError" style="visibility: hidden; color:red; text-align: center;">Please enter an Invoice ID</p> <div style="text-align: center; margin-top: 0.625rem;" id="paypal-button-container"></div> </div> <script src="https://www.paypal.com/sdk/js?client-id=ATxw20kwQMhKz2geo-acXC6hjT7GtMlyf9L3YoANsbMnorUXyxJdvfMhS5XoVw4G2NiY4upwn7bPWSZy&disable-funding=sofort&currency=GBP" data-sdk-integration-source="button-factory"></script> <script> function initPayPalButton() { var description = document.querySelector('#smart-button-container #description'); var amount = document.querySelector('#smart-button-container #amount'); var descriptionError = document.querySelector('#smart-button-container #descriptionError'); var priceError = document.querySelector('#smart-button-container #priceLabelError'); var invoiceid = document.querySelector('#smart-button-container #invoiceid'); var invoiceidError = document.querySelector('#smart-button-container #invoiceidError'); var invoiceidDiv = document.querySelector('#smart-button-container #invoiceidDiv'); var elArr = [description, amount]; if (invoiceidDiv.firstChild.innerHTML.length > 1) { invoiceidDiv.style.display = "block"; } var purchase_units = []; purchase_units[0] = {}; purchase_units[0].amount = {}; function validate(event) { return event.value.length > 0; } paypal.Buttons({ style: { color: 'gold', shape: 'rect', label: 'paypal', layout: 'vertical', }, onInit: function (data, actions) { actions.disable(); if(invoiceidDiv.style.display === "block") { elArr.push(invoiceid); } elArr.forEach(function (item) { item.addEventListener('keyup', function (event) { var result = elArr.every(validate); if (result) { actions.enable(); } else { actions.disable(); } }); }); }, onClick: function () { if (description.value.length < 1) { descriptionError.style.visibility = "visible"; } else { descriptionError.style.visibility = "hidden"; } if (amount.value.length < 1) { priceError.style.visibility = "visible"; } else { priceError.style.visibility = "hidden"; } if (invoiceid.value.length < 1 && invoiceidDiv.style.display === "block") { invoiceidError.style.visibility = "visible"; } else { invoiceidError.style.visibility = "hidden"; } purchase_units[0].description = description.value; purchase_units[0].amount.value = amount.value; if(invoiceid.value !== '') { purchase_units[0].invoice_id = invoiceid.value; } }, createOrder: function (data, actions) { return actions.order.create({ purchase_units: purchase_units, }); }, onApprove: function (data, actions) { return actions.order.capture().then(function (details) { window.location.replace("https://mortimerhistorysociety.org.uk/payment-page/confirmation-of-online-payment/"); }); }, onError: function (err) { console.log(err); } }).render('#paypal-button-container'); } initPayPalButton(); </script> ... View more

How do I remove Sofort from my Smart Payment Butto...

by Shugwood Contributor in Products & Services Archives
‎Apr-01-2021 03:55 AM
1 Kudo
‎Apr-01-2021 03:55 AM
1 Kudo
I have a smart payment button offering either Paypal or Credit/Debit payment. A small Sofort button has appeared between the two and I certainly don't want it. How do I get rid of it? ... View more
Labels:
  • Labels:
  • Merchant Payment Solutions
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros