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

**URL:** <https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967>\
**Category:** Development\
**Created:** [10월 12, 2017, 11:03오후 UTC](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967 "2017-10-12T23:03:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [11월 27, 2017, 2:38오전 UTC](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967/4 "2017-11-27T02:38:30Z")

</div>

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](https://github.com/chrisbeach/discourse-donations/pull/6)

See further: [Stripe Donations Plugin - #30 by angus](https://meta.discourse.org/t/stripe-donations-plugin/59036/30)

---

_[View the full topic](https://meta.discourse.org/t/getting-a-stripe-checkout-button-script-form-tags-rendering-in-a-post-via-plugin-help-required/71967)._
