Overview

The article will outline how to create drop and payout buttons in Cloud Retailer.  


Procedure

Use the compose command:

[
{Command:'CloudRetailer.Pos.Sales.AddLineItem',Parameter:{ProductCode: '400000004488', CanAddNonSearchable: true}},
{Command: 'SetLineItemComment'},
{Command: 'CloudRetailer.Pos.Sales.TakePayment',Parameter: "{PaymentCode: 'Cash', Amount: ActiveTransaction.Total}"}
]



References