# Configuring fast payment buttons

**URL:** <https://forum.sambapos.com/t/configuring-fast-payment-buttons/494>\
**Category:** V4 Tutorial\
**Created:** [February 9, 2014, 7:03pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494 "2014-02-09T19:03:26Z")\
**Posts on this page:** 9\
**Page:** 1

<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 9, 2014, 7:03pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/1 "2014-02-09T19:03:29Z")

</div>

###What is a fast payment button?

Fast payment buttons located under ticket to quickly settle whole ticket with a single payment type. Generally this feature is useful for fast food screens. In this tutorial we’ll add two payment buttons under ticket for cash and credit card.

###Configuration

We’ll start by creating `Pay Ticket` action.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/3/73e40b08542bda952c32390feafcc02401e9b2c1.jpeg) 

I’ve entered a variable name for Payment Type Name because I’ll use this action for different payment types (cash and credit card). If I want to use this action for a single payment type I can enter payment type name.

On next step I’ll create two Automation Command Buttons for two payment types.

###Cash Payment

I’m adding new automation command for cash payment.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/c/0c252b0d33528fee1c94a0d9afa48f043c68608c.jpeg) 

I’ll place this button under ticket. I’m switching to Mappings screen and create a mapping for this command

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/8/08d8893468d7efc04e6895925874236b3b5cad73.jpeg) 

I need a rule to execute “Cash Payment” action when this command button clicked.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/8/788c01af446c87d82ca53ea979adabc39be68b4e.jpeg) 

I’ve typed `Cash` value for `Payment Type Name` variable. This action will execute if `Cash` button clicked.

You can add more actions if you need. Generally we’re using `Payment Processed` rule for post - payment actions such as `Print Ticket` or `Open Drawer`. However if you need any custom behavior for Fast Cash Button you can also use this rule. For example you can add `Close Ticket` action if you want to close ticket automatically after payment.

I’ll continue with creating a mapping for rule.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/8/08b86bfb281b0bdbc9d9792f6194fa6de6ceeca2.jpeg) 

I can map this rule to a specific department to prevent unneeded executions. Just useful if you need different payment rules for specific departments.

###Credit Card Payment

I need another automation command button for `Credit Card` payment.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/5/75024ab0a5509ca46570c9bc64da64f62a861e69.jpeg) 

Please notice how I’ve used `\r` separator for wrapping button label. Now we’ll place this button under ticket.

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/d/6d409fa389c24617e4453737a40de41a1b03219f.jpeg) 

To demonstrate different settings I’ll map this button to `Row 2` region. We’ll see how it works.

After saving it we’ll create rule for this button.

 ![](https://forum.sambapos.com/uploads/default/original/3X/f/8/f8e4b05ecf48e2415a830f35b93a409c1e0c1e26.jpeg) 

I’ve entered `Credit Card` as `Payment Type Name`. This action will work when I click Credit Card button.

Finally I’ll map this rule to default department.

 ![](https://forum.sambapos.com/uploads/default/original/3X/4/1/41b2006543be711d8a9232a35d6941424ead8b65.jpeg) 

###Demo

Let’s see how it works.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/3/730367e31f27f5705b01252072deb51e685c72d3.jpeg) 

We have two additional buttons under ticket but it looks a little wrong. I want to place cash button between `Settle` and `Close` buttons. To be able to do this I need to change sort order of `Automation Commands`.

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/0/6050e26ad44f744994aebb611109104680b195f6.jpeg) 

After clicking `Sort Automation Commands` link I’ll drag and drop `Fast Cash Payment` button between settle and close buttons.

![](https://forum.sambapos.com/uploads/default/original/3X/8/5/85cd7948cd2b62bdfbd9ce7c66d273ad7e8661a1.jpeg)

It should appear like this.

Now switch to POS screen.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/4/04c0a975b52bc000204ee1cd145d628a8fb4ce68.jpeg) 

I can click Cash button for immediately closing ticket with cash. You may want to ask for confirmation when Cash button clicked. Read [[New 4.1.9] Asking Admin PIN for operations](http://forum.sambapos.com/t/new-4-1-9-asking-admin-pin-for-operations/247) tutorial for more info.

---

<div class="post-metadata">

**Author:** ![gerlandog](https://forum.sambapos.com/user_avatar/forum.sambapos.com/gerlandog/32/39076_2.png) [@gerlandog](https://forum.sambapos.com/u/gerlandog)\
**Post date:** [February 9, 2014, 10:58pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/2 "2014-02-09T22:58:01Z")

</div>

THANKS!!!  
This tuto help me a lot!!!  
I am closer to perfection now!!!

G.

 ![](https://forum.sambapos.com/uploads/default/original/3X/3/1/312354ee56cbe2c7632febc021d2284539e3e583.png)

---

<div class="post-metadata">

**Author:** ![pdsluk](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/dbc845/32.png) [@pdsluk](https://forum.sambapos.com/u/pdsluk)\
**Post date:** [March 12, 2014, 12:13am UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/3 "2014-03-12T00:13:35Z")

</div>

Hey, I had this automation working, but after adding additional cash accounts and additional departments it crashes the entire program. Any ideas what could cause this? Can I only have one cash account for this to work? Can I specify what cash account is used in the commend? Thanks! -peter

---

<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:** [March 12, 2014, 9:20am UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/4 "2014-03-12T09:20:09Z")

</div>

Be sure to create individual accounts for all payment types.

---

<div class="post-metadata">

**Author:** ![leonardo077](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/l/e19b73/32.png) [@leonardo077](https://forum.sambapos.com/u/leonardo077)\
**Post date:** [July 16, 2014, 10:19pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/5 "2014-07-16T22:19:00Z")

</div>

## Selam Emre burayi ben anlamadim.variable name derken ne yapmamiz lazim oraya cash ve card icin kullanacam fast food da tesekkurler I’ve entered a variable name for Payment Type Name because I’ll use this action for different payment types (cash and credit card). If I want to use this action for a single payment type I can enter payment type name.

---

<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 17, 2014, 7:52am UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/6 "2014-07-17T07:52:52Z")

</div>

Ödeme tipi olarak `[:Payment Type Name]` yazdığın zaman bu _ödeme tipini action içinden değil dışarıdan (kuraldan) bir değer vererek belirleyeceğim_ demek oluyor.

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/8/788c01af446c87d82ca53ea979adabc39be68b4e.jpeg) 

Şekildeki gibi kuralda `Pay Ticket` eylemini eklediğimizde ödeme tipini yazabiliyoruz.

---

<div class="post-metadata">

**Author:** ![leonardo077](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/l/e19b73/32.png) [@leonardo077](https://forum.sambapos.com/u/leonardo077)\
**Post date:** [July 18, 2014, 12:55am UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/7 "2014-07-18T00:55:16Z")

</div>

Tesekkurler adamin kiralisin.

---

<div class="post-metadata">

**Author:** ![restaurant34](https://forum.sambapos.com/user_avatar/forum.sambapos.com/restaurant34/32/15284_2.png) [@restaurant34](https://forum.sambapos.com/u/restaurant34)\
**Post date:** [January 29, 2015, 12:52pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/8 "2015-01-29T12:52:52Z")

</div>

Hi, now I’m using this. Really good, but at the same time I want print ticket when I press the buttons. How can I do this?  
Thanks

---

<div class="post-metadata">

**Author:** ![restaurant34](https://forum.sambapos.com/user_avatar/forum.sambapos.com/restaurant34/32/15284_2.png) [@restaurant34](https://forum.sambapos.com/u/restaurant34)\
**Post date:** [January 29, 2015, 1:54pm UTC](https://forum.sambapos.com/t/configuring-fast-payment-buttons/494/9 "2015-01-29T13:54:43Z")

</div>

I already fix it. Thanks
