Tagged: paypal
-
AuthorPosts
-
December 17, 2020 at 9:21 pm #1268204
Hi
PayPal Smart Buttons are not rendering, same problem as #1260345
The smart button work on other themes, can you provide assistance?
Failed to load resource: the server responded with a status of 400 ()
(index):528 Uncaught ReferenceError: paypal is not defined
at initPayPalButton ((index):528)
at (index):600December 20, 2020 at 8:42 pm #1268848Hey mrpetreli,
You might want to check with the plugin authors since this is not the theme’s function and the error is not with the theme. Plugins’ authors should be able to help you better.
Best regards,
VictoriaDecember 20, 2020 at 9:00 pm #1268852The code is copied directly from PayPal no plugin is used
December 20, 2020 at 9:36 pm #1268874Hi mrpetreli,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaDecember 20, 2020 at 10:02 pm #1268879Sure see below
December 21, 2020 at 5:25 pm #1269092Hi the buttons are appearing now. Not sure what you did, but all seems fine now
December 21, 2020 at 5:45 pm #1269099It seems, when you copy code from PayPal it works fine. But if you make any changes to the page after the code is added it breaks, even in different sections of the page.
Unless you can give a solution, a fix is to add the paypal code as the very last thing you do
December 23, 2020 at 3:54 am #1269422Hi,
Thank you for the update.
Could you provide a sample of the snippet from Paypal? How do you register the script? We tried to login to the site but the account above seems to be invalid. Please check the info carefully or provide another admin account.
Best regards,
IsmaelDecember 24, 2020 at 11:19 am #1269735Hi, a copy of the code used is attached, you need to add your own client code or you can create a Smart Button on PayPal here: https://www.paypal.com/buttons/smart
Once the button is created, copy the code into a code block element an save. The payment buttons will appear on the live page, but if you make changes to the ppage after that the buttons will disappear. I think this is more an issue with PayPals code now.
I disabled the login for you guys, as its not an issue with your theme. But thank you for the assistance
December 27, 2020 at 3:23 am #1269844Hi,
Thank you for the info.
The snippet breaks the layout of the builder because it contains form fields or input tags. You may need to create a custom shortcode for the snippet so that the input fields do not have to be inserted directly in the code block element.
// https://codex.wordpress.org/Shortcode_API
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.