question

tellymasse avatar image
tellymasse asked sam Deactivated commented

Difference in subtotal between printed and online receipt

Hi, Our printed receipt show the correct amount but the online receipt show the captured amount under Tip. How can we correct the online receipts? Thanks

Printed receipt attached Online receipt: https://sandbox.dev.clover.com/p/48KV... C:\fakepath\CloverReceipt.jpg

Hi, Our printed receipt show the correct amount but the online receipt show the captured amount under Tip. How can we correct the online receipts? Thanks

Printed receipt attached Online receipt: https://sandbox.dev.clover.com/p/48KV... C:\fakepath\CloverReceipt.jpg

5 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam avatar image sam commented ·

Hi, How is the payment was created? Was it a payment made through the register app? Or web API? I don't see any lineitems, which is what is causing the subtotal to be $0.00.

Also, it seems like your web receipt isn't the same order as the printed receipt.

0 Likes 0 ·
tellymasse avatar image tellymasse commented ·

HI, The payment was made through the web API with no line items. We just sent the payment but it is showing as Tip.

0 Likes 0 ·
sam avatar image sam commented ·

Can you post a snippet of the pay api request?

0 Likes 0 ·
ivan-garcia avatar image ivan-garcia commented ·

Hello, I'm just have the same problem than tellymase. The amount is being showed OK in the orders webapp and Clover Orders app. But when the online tiket is printed the tip is adding to the payment. In our case we created a payment method called Baykus Payment. If you check in the order list on the web app the payment is correct. But in the online ticket is adding the tip to the total amount. For example, our order ID: GBY91SWFAZAHR. This is the online ticket: https://www.clover.com/r/GBY91SWFAZAHR The Baykus payment line is adding the tip $2.64 again to the total $20.30.

0 Likes 0 ·
ivan-garcia avatar image ivan-garcia commented ·

Continue (I ran out of characters): but if you check our order line in the webapp, the Baykus payment amount is correct. Take a look to the order: http://imgur.com/iSGpAno and to the detail of the order: http://imgur.com/PxgpaKu I'm attaching an example of the call that we are doing to the web API: This is the URL to the call: https://api.clover.com:443/v3/merchan.... And this is the body: {"amount": 2214,"tender": {"id": "4BDTFY49MJAWW" },"total": 2214,"tipAmount": 288,"taxAmount": 126}

0 Likes 0 ·
ivan-garcia avatar image
ivan-garcia answered

Hello,

I wrote a comment to this message 13 days ago. We still have this problem? Is there any way to solve it? Are we creating the orders via the API in a wrong way? Thanks!

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mark Mullan avatar image
Mark Mullan Deactivated answered ivan-garcia commented

Hi all,

It looks like these are two similar but different issues being discussed.

@tellymasse - the web receipt calculates a Subtotal by summing the amounts of the lineItems on the Order. In the case you've provided with OrderID 598b8e34c3904, there are no lineItems, so the Subtotal reads $0.00. I'm also curious as to how this Order was created... I've never seen a web receipt that did not automatically capitalize the alpha characters in the UUID. Would you mind sharing?

@ivan-garcia - are you using our Developer Pay API at v2/merchant/{mid}/pay/ to POST this Payment? The body of the request can contain the following 3 properties:

"amount": amount,
"tipAmount": tipAmount,
"taxAmount": taxAmount

You should assign "amount" to be the Order's subtotal + taxAmount. For the order you've provided (https://www.clover.com/r/GBY91SWFAZAHR) that would be 1650 + 116 = 1766.

You should assign "taxAmount" to be the taxAmount, 116. And the tipAmount would be 264.

So your POST body, in this case, should be

"amount": "1766",
"tipAmount": "264",
"taxAmount": "116"

From looking at the web receipt you've provided, it seems like different values were passed. I believe that changing this logic would resolve the discrepancy you're currently seeing.

[EDIT] I redacted your access_token from the link you provided.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ivan-garcia avatar image ivan-garcia commented ·

Hello @mark.mullan, thanks a lot for your answer. Sorry for mixing the problems but I saw in @tellymasse payment receipts the same problem I have and I thought that he was asking also for this problem.

We are doing the payment in other platform but we are posting the payment in clover via the REST 3 API with the payments method in the merchants section.

I've tried the solution you told me. In amount I just send the Order's subtotal + taxAmount. But now the problem is that when I go to review the orders this order is shown as partially paid. Example: 5.88 Subtotal, 0.38 Tax and tip 0.88.

0 Likes 0 ·
ivan-garcia avatar image ivan-garcia commented ·

I couldn' t finish the previous message. We are using the V3 API to post the payment: https://api.clover.com:443/v3/merchan... + MId + "/orders/" + idorder + "/lineitems/" + IdLineitem + "/modifications?accesstoken=

0 Likes 0 ·
ivan-garcia avatar image
ivan-garcia answered Mark Mullan Deactivated commented

Hello @mark.mullan, thanks a lot for your answer. Sorry for mixing the problems but I saw in @tellymasse payment receipts the same problem I have and I thought that he was asking also for this problem.

We are doing the payment in other platform but we are posting the payment in clover via the REST 3 API with the payments method in the merchants section.

I've tried the solution you told me. In amount I just send the Order's subtotal + taxAmount. But now the problem is that when I go to review the orders this order is shown as partially paid. Example: 5.88 Subtotal, 0.38 Tax and tip 0.88.

We are using the V3 API to post the payment: https://api.clover.com:443/v3/merchan... + MId + "/orders/" + idorder + "/lineitems/" + IdLineitem + "/modifications?accesstoken=

4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mark Mullan avatar image Mark Mullan commented ·

Hi @ivan-garcia,

It seems like you're using the incorrect API endpoint. Try a POST to https://sandbox.dev.clover.com/v3/merchants/{mid}/orders/{orderID}/payments.

The request body should resemble:

{
    "tender": {
        "id": "M16Q6CW103T6W"
    },
    "amount": "474"
}
0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

If the payment.amount == order.total, the payment should be applied and recognized as being in Full.

0 Likes 0 ·
ivan-garcia avatar image ivan-garcia commented ·

Hi @mark.mullan, thanks again for your answer. I posted the wrong API call.

We are calling https://sandbox.dev.clover.com/v3/mer... to post the payment. But if we do the payment.amount == ordert.total the web payment receipt is wrong. It adds the tip twice. Check this ticket I posted at the begining. For example, our order ID: GBY91SWFAZAHR. This is the online ticket: https://www.clover.com/r/GBY91SWFAZAHR

This is the payment post:

https://api.clover.com/v3/merchants/W...token=%7Baccesstoken%7D

0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

Hi @ivan-garcia,

The "amount", "tipAmount" and "taxAmount" fields you POSTed were likely incorrect. I made an identical REST request for direct comparison. Here's the web receipt: https://sandbox.dev.clover.com/p/6DJYMTV845XXM

And here is the full request body: image description

I included additional details in the initial answer, above, as well.

Mark

0 Likes 0 ·

Welcome to the
Clover Developer Community