question

Carl avatar image
Carl asked Carl commented

clover.intent.extra.TAX_AMOUNT is 0

For some reason the clover.intent.extra.TAX_AMOUNT value is 0 even though there is a tax amount.

This is from a clover.intent.action.PAY, if that helps.

We're trying to calculate the total amount before tax.

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.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

From where is your custom tender being invoked? From the Register/Payments screen or from the Sale app, or from Secure Payments?

0 Likes 0 ·
Carl avatar image Carl commented ·

From the Register.

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered Carl commented

This is a bug. I've filed an internal issue to get it resolved. I don't have an ETA for the fix.

As a workaround, you can use the OrderCalc.getTax() method (in the SDK). You are passed the order ID. You will need to use OrderConnector to fetch the order yourself and pass it into OrderCalc.

1 comment
10 |2000

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

Carl avatar image Carl commented ·

Thanks Jeff, I was putting together code to call the OrderConnector to get the Order object to get the LineItems and add up the tax. Your way should be quicker and less code.

0 Likes 0 ·

Welcome to the
Clover Developer Community