question

doranhandman avatar image
doranhandman asked ·

Using Hosted Checkout, the tax not displaying on Checkout form.

Using Hosted Checkout, the tax not displaying on the Hosted Checkout form.

Taxes
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·

Per the docs - https://docs.clover.com/docs/making-a-checkout-request#adding-taxes-to-transactions in order for tax to work, the tax you are passing must exist for the merchant.

11 comments
10 |2000 characters needed characters left characters exceeded

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

tax is not working in production either.

0 Likes 0 ·

See my updated answer.

0 Likes 0 ·

Here is the JSON I am sending:

{ "customer" : { "email": "doranhandman@gmail.com", "firstName" : "DORAN", "lastName": "HANDMAN", "phoneNumber": "7203233935" }, "shoppingCart" : { "lineItems": [ { "note": "4-Pack Easter Chick Cupcakes", "name": "Easter Chick Cupcake", "unitQty": 1, "price": 2198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06 } ] }, { "note": "4-pack Easter Nest Coconut Cupcakes", "name": "Easter Nest Coconut Cupcake", "unitQty": 1, "price": 2198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06 } ] }, { "note": "", "name": "Cupcakes TR assorted 6 Pack", "unitQty": 1, "price": 3198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06 } ] } ] } }

0 Likes 0 ·

You need to create a tax rate for your merchant, that matches the tax rate you are passing in the request. That can either be done in the merchant's dashboard via setup or via the API.

0 Likes 0 ·
doranhandman avatar image doranhandman David Marginian ♦♦ ·

Hi David this is the JSON currently sending, also find attached dashboard pic:

{ "customer" : { "email": "doranhandman@gmail.com", "firstName" : "DORAN", "lastName": "HANDMAN", "phoneNumber": "7203233935" }, "shoppingCart" : { "lineItems": [ { "note": "4-Pack Easter Chick Cupcakes", "name": "Easter Chick Cupcake", "unitQty": 1, "price": 2198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06000 } ] }, { "note": "4-pack Easter Nest Coconut Cupcakes", "name": "Easter Nest Coconut Cupcake", "unitQty": 1, "price": 2198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06000 } ] }, { "note": "", "name": "Cupcakes TR assorted 6 Pack", "unitQty": 1, "price": 3198, "tax_rates": [ { "name": "CO state tax", "rate": 8.06000 } ] } ] } }

taxrates.png

0 Likes 0 ·
taxrates.png (33.3 KiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community