# 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:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 12, 2014, 5:03pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/21 "2014-02-12T17:03:47Z")

</div>

ha ha, thanks Emre nice one.

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 12, 2014, 5:04pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/22 "2014-02-12T17:04:39Z")

</div>

Isaac,

Create Rule Name - Ticket Total Changed  
Event Name - Ticket Total Changed  
Action

- Update Program Setting, SettingName = TicketTotal, SettingValue = [:TicketTotal]

Update your Fast Payment Rule, and add the following Custom Constraint  
{:TicketTotal} Less [:CommandValue]

That will fix it.

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 12, 2014, 5:06pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/23 "2014-02-12T17:06:38Z")

</div>

Emre,

Will we be able to retrieve `[:ProcessedTotal], [:TenderedAmount] & [:ChangeDue]` for `Automation Command Executed` events ?

---

<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:** [February 12, 2014, 5:07pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/24 "2014-02-12T17:07:33Z")

</div>

We’ll send tendered amount to “Pay Ticket” action and handle “Payment Processed” event.

---

<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:** [February 12, 2014, 5:19pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/25 "2014-02-12T17:19:14Z")

</div>

@JohnS and @Isaac thank you very much helping me on this nice feature. That was real Fun! While you were talking about it I’ve made changes. I’ve uploaded new version.

By new version `Pay Ticket` action supports `Tendered Amount` value. Execute this action from automation commands with Tendered Amount parameter and handle `Payment Processed` event to update Shell Title.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 12, 2014, 5:46pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/26 "2014-02-12T17:46:10Z")

</div>

John how we going to do what Emre just said?

---

<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:** [February 12, 2014, 6:00pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/27 "2014-02-12T18:00:50Z")

</div>

This is my test database [http://sambapos.com/?wpfb\_dl=14](http://sambapos.com/?wpfb_dl=14)

Please check how I’ve implemented Automation Commands, `Pay Ticket` Action and `Payment Processed` Rule.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 13, 2014, 10:54am UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/28 "2014-02-13T10:54:21Z")

</div>

Hi Emre,

Thanks for attaching your test database, I now have this working as expected and tendered amounts are now displayed. Is it possible to set the change due to 2 decimal points. so instead of displaying 4 it would look better if it displayed 4.00? see pic:

 ![](https://forum.sambapos.com/uploads/default/original/3X/e/c/ec860f95efbd702c57fcce2aff4c3b8972937801.png)

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 13, 2014, 10:56am UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/29 "2014-02-13T10:56:26Z")

</div>

Use this for Tendered Amount

[=FF(’[:TenderedAmount]’,’#,##0.00’)]

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 13, 2014, 2:58pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/30 "2014-02-13T14:58:18Z")

</div>

Hi John,

Unfortunately this did not work:

Tendered:|[=FF(’[:TenderedAmount]’,’#,##0.00’)]\rChange Due:| [:ChangeAmount]

---

<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:** [February 13, 2014, 3:00pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/31 "2014-02-13T15:00:39Z")

</div>

I think you want to format change due instead of tendered amount.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 13, 2014, 3:06pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/32 "2014-02-13T15:06:31Z")

</div>

Well Spotted Emre, I used:

`<J>Tendered:|[=F('[:TenderedAmount]')]\r<J>Change Due:| [=FF('[:ChangeAmount]','#,##0.00')]`

 ![](https://forum.sambapos.com/uploads/default/original/3X/9/b/9bfad809059ba88da4eb931edacb009909bc872b.png) 

Big Thank you to JohnS as well.

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 13, 2014, 9:50pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/33 "2014-02-13T21:50:01Z")

</div>

You may be right Isaac 😕  
Mine needed tendered formatting.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 17, 2014, 3:02pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/34 "2014-02-17T15:02:02Z")

</div>

@Emre and @JohnS

Guys I think we missed adding some actions to the rules regarding Ticket States. Because any ticket settled as Fast Payment is currently not updating the Ticket Status:

 ![](https://forum.sambapos.com/uploads/default/original/3X/3/e/3e3e578eb3f8b797d83f8d428f56561438264fa0.png)

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 17, 2014, 3:04pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/35 "2014-02-17T15:04:38Z")

</div>

You need to refresh the ticket after payment.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 17, 2014, 3:14pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/36 "2014-02-17T15:14:01Z")

</div>

Yes I did John, once it was settled I closed the tickets and re-opened it from the ticket module. I’m just trying to figure out what actions I need to add to the rules.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 17, 2014, 3:31pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/37 "2014-02-17T15:31:11Z")

</div>

Settled Tickets are also shown as OPEN tickets instead of Closed?

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [February 17, 2014, 3:32pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/38 "2014-02-17T15:32:16Z")

</div>

Add `Close Ticket` to Fast Payment Automation Button Rule.

I just tried refreshing the ticket, and the status will update but you can add more orders to the ticket.

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [February 17, 2014, 4:55pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/39 "2014-02-17T16:55:06Z")

</div>

@JohnS I now added the close ticket action to my fast payment rules. However for some reason although the tickets are settled and closed, they are appearing as OPEN in my ticket module?

In fact, any ticket created and settled in my Take Away Department, is all showing as OPEN. hmmmmmmm

---

<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:** [February 17, 2014, 5:04pm UTC](https://forum.sambapos.com/t/get-fast-payment-buttons-help-setting-values/552/40 "2014-02-17T17:04:52Z")

</div>

Ticket Payment Check rule is responsible for closing paid tickets. Check if there is a department specific mapping for this rule.

This is not hardcoded and executed by rule because in some cases restaurants wants to keep tickets open even it gets fully paid since customer still sitting there.

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

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