# Get Fast Payment Buttons, help setting values?

**URL:** <https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552>\
**Category:** V4 Question\
**Created:** [February 12, 2014, 1:46pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552 "2014-02-12T13:46:58Z")\
**Posts on this page:** 15\
**Page:** 4

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [August 10, 2014, 10:03am UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/61 "2014-08-10T10:03:18Z")

</div>

@Isaac

Hi thanks for that, ive followed Emre’s guide but it still doesnt work, however ive decided to use fast payment buttons that take payment and close the ticket then show a message box with the change due. Ive set the payment buttons up but I cant seem to get the message box to appear to show the change. Ive tried the equation set up by John S:

Display Message, Message = Change - $[=F(TN(’{:FastPayment}’)-TN(’[:TotalAmount]’))]

but this displays the message box but the equation doesnt work

as im using this instead the red banner wouldnt appear as ive set the fast payment buttons to close the ticket after payment is made, do you have any suggestions for why my change box doesnt display the change due value?

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 8, 2015, 10:33pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/62 "2015-07-08T22:33:42Z")

</div>

Hi Guys, I’m having problems, I’ve got this far but I can’t get the message to appear, is there something missing from these instructions because I’m stumped !

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 8, 2015, 10:40pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/63 "2015-07-08T22:40:17Z")

</div>

> [@JohnS](#):
>
> Add Custom Constraint {:FastPayment} IsNull to Last Sale Rule

Hi Agin, I can’t see in the instructions anywhere where a ‘Last Sale Rule’ has been created, if I create one what settings does it need ?

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 8, 2015, 10:52pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/64 "2015-07-08T22:52:48Z")

</div>

Which message were you struggling with? The change message?

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [July 8, 2015, 11:18pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/65 "2015-07-08T23:18:18Z")

</div>

Hello @helitrooper. While posting 11 months old topic it will be better to give some information about your context otherwise we should read 64 posts from beginning just to understand what you’re talking about.

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 9, 2015, 12:02am UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/66 "2015-07-09T00:02:27Z")

</div>

Hi Emre, apologies for being a little vague, I’m trying to set up faster payment buttons and have followed all the earlier instructions, I have no problem setting up the buttons and I was following all the actions & rules shown in the earlier posts above but I cannot get them to do anything, furthermore since trying to set them up the ‘halfpint’ button that I had set up and got working has since stopped working again, in my frustration I have deleted everything thatI put in and will have another go tomorrow a little earlier in the day when my mind is functioning better

Thanks for understanding

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 9, 2015, 12:48am UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/67 "2015-07-09T00:48:32Z")

</div>

It would be useful to see some screen shots of your related actions and rules.

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 21, 2015, 12:26pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/68 "2015-07-21T12:26:11Z")

</div>

Hi Everyone, I have been following the instructions here to set up Fast Payment buttons following the instructions given above in this question thread, and I have got them working and all the messages are now displaying correctly. But how do I stop it from giving me a minus change amount?

Example - sale comes to 6.00 - operator press 5.00 button in error and the change shows - 1.00

It would be better not to be able to press the 5.00 button if the sale value is higher than that amount, otherwise we could end up giving that minus sum back as change.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [July 21, 2015, 3:19pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/70 "2015-07-21T15:19:22Z")

</div>

You need to constrain the rules.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [July 21, 2015, 4:29pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/71 "2015-07-21T16:29:13Z")

</div>

Example on the 5 button would be to set constraint of ‘ticket total’ or ‘remaining balance’ to less than 5.01 (ie 5 or less)

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 21, 2015, 9:21pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/72 "2015-07-21T21:21:59Z")

</div>

ok, I get what you are saying, but I’m not sure how to go about doing it. I have 4 fast payment buttons, 5,10,20 & 50, I don’t know how to change the rule so that it will work for all 4 buttons, or would I have to clone my rule when it is constrained for one value [ie 5.01] and make 4 separate rules, one for each value?

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [July 21, 2015, 9:38pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/73 "2015-07-21T21:38:06Z")

</div>

> [@helitrooper](#):
>
> I don’t know how to change the rule

We also don’t know. How did you set it up? 🙂 I’ve browsed previous posts to get an idea but multiple implementations discussed here and I’m not sure which one you’ve preferred.

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 21, 2015, 9:57pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/74 "2015-07-21T21:57:41Z")

</div>

Hi Emre, I went all the way back to post 8 and followed JohnS’ and it works ok, but does not stop me from getting a minus figure for change, if there is an alternative way or you can tell me how to add the necessary constraint to the command button to stop it being pressed when it is less than the ticket total I will be glad of your assistance, this is a fantastic pos system with many options and my programming experience is very limited but I’m getting there gradually.

Thanks

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [July 21, 2015, 10:11pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/75 "2015-07-21T22:11:48Z")

</div>

OK great. When that post was written `Pay Ticket` action didn’t have tendered amount parameter. John tried to compile a quick solution until we implement that but if you keep reading because of similar issues to your’s I’ve quickly implemented that parameter and I’ve demonstrated different solution. You can find the sample database on this topic.

Also if you search forums there are a lot of topics that demonstrates similar setup in detail.

> [@Change Due message box](http://forum.sambapos.com/t/change-due-message-box/4094):
>
> i want to be able to press the fast cash button eg $5, ticket is paid, ticket is automatically closed then the change due message box to appear so that when I press OK to confirm change has been given out the POS then automatically logs out. where do i start ?

> [@How to Hide Fast Payment Button when Total is Greater](http://forum.sambapos.com/t/how-to-hide-fast-payment-button-when-total-is-greater/3080):
>
> Hi How to Hide $10 Fast Payment button when order total is more than $10? enable state ?? visible state ??

> [@Fast Payment Cash Button only work with $10 and message not working](http://forum.sambapos.com/t/fast-payment-cash-button-only-work-with-10-and-message-not-working/4549):
>
> Hello I was following the tutorial form emre and JohnS on [Get Fast Payment Buttons, help setting values?](http://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/7) For some reason I can only get the $10 button to work I have added $20 and it still displays $20. Also the Change Message is not showing. Here are my config

---

<div class="post-metadata">

**Author:** ![helitrooper](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@helitrooper](https://forum.sambapos.com/u/helitrooper)\
**Post date:** [July 21, 2015, 10:54pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/76 "2015-07-21T22:54:57Z")

</div>

Thanks Emre, I’ve done it, It’s working properly now.

[Previous page](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552.md?page=3)
