Tip is Creating Issue .. adding to the total Twice .. Adding Screenshots and code Merchant Id :- B8P24PC7NNJ7PWe are sending the Totals in Cents from our side to the Clover Apis . Addin the Code :- Payment Code :-
request.post({Order Locking Code :-
headers: {'content-type' : 'application/json'},
url: config.clover.baseUrl +merchantId+'/orders/'+jsonString.id+'/payments'+'?access_token='+token,body: JSON.stringify({
"order": {
"id": id},
"tender": {
"id": cashTenderId},
"employee": {
"id":cloverEmpId},
"lineItems":[itemCloverIds], "taxRates": [
{
"isDefault": isDefault,
"rate": rate,
"name": name,
"id": id,
"taxableAmount":tax*100}
],
"taxAmount":tax*100,
"tipAmount":tip*100, // When Tip Commented all order is coming Precise but tip missing totals are precise"amount": total*100 - order.summary.tip*100 // When Tip Deducted Reciept coming Good but the Web panel stuff is Deducting tip and Not Precise})
request.post({Could you guys Clarify how to Handle tip amount in a precise way ?
headers: {'content-type' : 'application/json'},
url: config.clover.baseUrl +merchantId+'/orders/'+jsonString.id+'?access_token='+tokenbody: JSON.stringify({
"orderType":
{
"id": cloverOrderType.id},
"total":payment.amount+payment.tipAmount, // this is updating the Top Payment and tip deducts from it if you do it"payments": [payment], // Testing What happens when you just commnet this"discounts":[discount],// Testing what happens when un commented"state":"lock"})