question

doranhandman avatar image
doranhandman asked David Marginian Deactivated edited

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

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

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

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

doranhandman avatar image doranhandman commented ·

tax is not working in production either.

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

See my updated answer.

0 Likes 0 ·
doranhandman avatar image doranhandman commented ·

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 ·
David Marginian avatar image David Marginian ♦♦ doranhandman commented ·

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 ♦♦ commented ·

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