WPIntell

Source evidence

Paypal button (form) no longer works

Responsive Pricing Table 路 support 路 2024-03-01T13:38:00+00:00

complaintsentiment
highseverity
1.0relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
lppascal unresolved
I would assume this also has to do with the security enhancements but the paypal buttons that use a form also stopped working. Hi! Sorry for the inconvenience caused , it is due to a recent security update that prevents adding scripts to backend fields to prevent any malicious code execution (just like you suspected). We recommend placing your script in the footer of your website or using a separate JavaScript file. You can target the button using a custom selector within the script (which is likely already the case). We are actively looking for an alternative, to avoid having to do the above, if you need assistance with this or have any questions, feel free to ask us here: https://help.wpdarko.com/en ! A dev from our team can help you get it to work! Sorry again 馃様 Similar thread here: https://wordpress.org/support/topic/paypal-buttons-not-working-in-table/ Only there is no javascript in the form as well it鈥檚 just a form https://pastebin.com/Kvqduhrv So the solution for me is not putting a javascript somewhere else. It seems to strip most of the form options so leaving only a table with no submit button and no text input fields. Removing the table does appear to work as it just strips all form and input tags etc. It isn鈥檛 just about JavaScript. We use wp_kses_post() to clean user input and that will strip form tags. Even when being super permissive with the allowed HTML, the PayPal button won鈥檛 show. More info about the dangers of user created form tags here: https://security.stackexchange.com/questions/120813/is-a-html-form-tag-more-exploitable-than-a-html-link-in-user-submitted-content You could argue that admins should be able to add custom JS/HTML in backend fields, unfortunately everything gets stripped for security reasons. Leaving a vulnerability issue unfixed will get our plugin reported and then closed 馃様. Obviously not saying it is a great alternative at all, but using Stripe you could generate payment links that you can use in a standard buttons. Hello, Good news! It should work now with v5.1.12 . We have worked on a fix with the help of the nice people at WPScan. Administrators and Editors can now add unfiltered HTML to the custom button field. Note that you might need to publish your pricing table again (hit Publish) in order to save the snippet in your database.

Comments

7 shown
WP Darko 2024-03-01T13:57:00+00:00

Hi! Sorry for the inconvenience caused , it is due to a recent security update that prevents adding scripts to backend fields to prevent any malicious code execution (just like you suspected). We recommend placing your script in the footer of your website or using a separate JavaScript file. You can target the button using a custom selector within the script (which is likely already the case). We are actively looking for an alternative, to avoid having to do the above, if you need assistance with this or have any questions, feel free to ask us here: https://help.wpdarko.com/en ! A dev from our team can help you get it to work! Sorry again 馃様

WP Darko 2024-03-01T14:18:00+00:00

Similar thread here: https://wordpress.org/support/topic/paypal-buttons-not-working-in-table/

lppascal 2024-03-01T14:22:00+00:00

Only there is no javascript in the form as well it鈥檚 just a form https://pastebin.com/Kvqduhrv So the solution for me is not putting a javascript somewhere else. It seems to strip most of the form options so leaving only a table with no submit button and no text input fields.

lppascal 2024-03-01T14:28:00+00:00

Removing the table does appear to work as it just strips all form and input tags etc.

WP Darko 2024-03-01T14:41:00+00:00

It isn鈥檛 just about JavaScript. We use wp_kses_post() to clean user input and that will strip form tags. Even when being super permissive with the allowed HTML, the PayPal button won鈥檛 show. More info about the dangers of user created form tags here: https://security.stackexchange.com/questions/120813/is-a-html-form-tag-more-exploitable-than-a-html-link-in-user-submitted-content You could argue that admins should be able to add custom JS/HTML in backend fields, unfortunately everything gets stripped for security reasons. Leaving a vulnerability issue unfixed will get our plugin reported and then closed 馃様.

WP Darko 2024-03-01T14:43:00+00:00

Obviously not saying it is a great alternative at all, but using Stripe you could generate payment links that you can use in a standard buttons.

WP Darko 2024-03-06T21:13:00+00:00

Hello, Good news! It should work now with v5.1.12 . We have worked on a fix with the help of the nice people at WPScan. Administrators and Editors can now add unfiltered HTML to the custom button field. Note that you might need to publish your pricing table again (hit Publish) in order to save the snippet in your database.