Getting a Stripe Checkout button (<script>, <form> tags) rendering in a post (via plugin).. help required

The problem is that the script is inserted directly into the dom. Scripts inserted directly into dom are not executed.

One solution is to decorate the cooked post with the script using jQuery append.

https://github.com/chrisbeach/discourse-donations/pull/6

See further: Stripe Donations Plugin - #30 by angus

6 Likes