User Guide

CyberCash SmartElement Reference 233
Sales Tax Interactions
Set sales tax in [ShoppingCart] to tax value from [TaxRS] using
state from [CustomerRS]
This contract sets the shopping cart sales tax property based on the sales tax rate
for the customers billing state and the current value for the shopping cart's
adjusted subtotal. If the customer's billing state is in a state in which you are
responsible for sales tax, the tax will be calculated from the adjusted subtotal based
on that state's sales tax rate, otherwise, "0.00" will be displayed.
Because this is a server event, you can't get the value of the state directly from a
form element on the page, so you have to get the value from the recordset that
contains the customer's billing state.
Note: These calculations only assume the base state tax rates specified in http://
www.taxadmin.com/fta/rate/sales.html as specified for 1999. They do not take into account
additional locality sales taxes or sales taxes based for special items (such as food). You will
have to update your database to reflect changes in the rates.
Parameters:
BillingStateCol is the name of the column in the CustomerRS that contains the
customer's billing state.
MyStates is the comma separated list of state abbreviations representing the list
of states in which you do business and for which you are responsible for paying
sales tax. For example, if you have business locations in California and Nevada,
you would enter "CA, NV" for this parameter.
TaxCol is the name of the column in the TaxRS that contains the tax rate for a
given state.
TaxStateCol is the name of the column in the TaxRS that contains the state.
Participants:
CustomerRS is the recordset containing customer info including the
billing state
TaxRS is the recordset containing a list of states and corresponding sales
tax rates
ShoppingCart