# Code snippet for button

**URL:** <https://forums.realmacsoftware.com/t/code-snippet-for-button/47590>\
**Category:** Elements\
**Created:** [May 16, 2025, 10:34am UTC](https://forums.realmacsoftware.com/t/code-snippet-for-button/47590 "2025-05-16T10:34:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![majobo](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@majobo](https://forums.realmacsoftware.com/u/majobo)\
**Post date:** [May 16, 2025, 10:34am UTC](https://forums.realmacsoftware.com/t/code-snippet-for-button/47590/1 "2025-05-16T10:34:04Z")

</div>

Hi, on a site I am creating I would like to set up an easy way to make donations. So, I put a button in my menu and set up an account and a project with a service provider that manages the payments. I now need to bring the two together but don’t know how. The service provider ([betterplace.org](http://betterplace.org)) provides code, but I don’t know what to do with it. I remember @dan doing something similar in one of his tutorials or dev diaries, but I can’t seem to find the right one. So, how do I best go about this?  
thx, Matthias

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [May 16, 2025, 10:41am UTC](https://forums.realmacsoftware.com/t/code-snippet-for-button/47590/2 "2025-05-16T10:41:34Z")

</div>

Ah-ha — Sounds like you need a custom component!

Try this…
