PDA

View Full Version : Help: looking for solution


Art Shotwell
03-22-2007, 06:58 PM
I've got a problem. I have a client who'd like to be able to take subscription orders online for her print magazine. There are several options, including where the subscriber is located (US, Canada or foreign), subscription length (1 year, 2 years, 3 years), and the option for First Class delivery. Plus, she'd like to collect sales tax for deliveries to Wash. State.

Her credit card gateway, CyberSource, has their own hosted order page for a buyer to enter billing and shipping information. And, they can accept via form POST such info as tax amount, total amount and other seller-specific fields. But, they cannot calculate sales tax. It must be calculated on our pages.

I've created a subscribe page at nscalemagazine.com/subscribe2.html , but it has too many options. I'd like to add just a checkbox for someone from Wash. State to just tick off and have the tax added behind the scene, but I've done anything like this.

Can anyone here help???

rmedek
03-23-2007, 05:19 PM
Welcome to CF. In the future, please read our Rules (http://codingforums.com/rules.htm) and Posting Guidelines (http://codingforums.com/postguide.htm) before posting. Specifically, use a more descriptive title when posting a new thread. Vague teaser titles like "Help: looking for solution" are frowned upon.

As far as your issue, it really depends on what the gateway needs as far as form info. What I've done in a similar situation is to process as much form info as possible on my end, then send a confirmed total to the payment gateway. So, instead of calculating sales tax after submitting the form and sending it to the gateway; you would calculate it on the first form submission, present the totals to the buyer for confirmation, and the confirmation would send the info to the gateway.

Art Shotwell
03-23-2007, 05:31 PM
Sorry about the Subject line... I had read the rules... Couldn't think of a decent description. Anyway, thanks for your ideas. I have concluded that seems the easiest way to go. And, I'm working with a friend on adding calculations to a subscribe page. With a confirmation page which will, itself, POST to the gateway. This is all new to me...and assistance from the gateway people been at times confusing and contradictory.