client/server form post

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

I've got a commerce site. I submit a client side form when the clientside
submit button is pressed.
The action for this post is a redirect to a VeriSign PayFlow link page.

Question is....I'd like to save the data on the form into the database when
the form is submitted.

Is there a way i can use a server side form to send the info to the PayFlow
site (they're using Request.Form to get the values posted).??

That way i could have the save to database routine called within the same
event click .....

How is anyone else handling this? I have used two forms on one aspx page
before (one client and one server side). Seemed like post got posted if the
action was to itself but since it's posting to another page, not sure of the
best route.

Ideas? Thanks much in advance!
Harry
 
Hi Harry,

I don't think using Request.Form is the way to go - not even sure it would
be allowed for security reasons.

We do Credit Card transactions and logging using the PayFlow Pro COM
component from VeriSign

The sequence goes like this on the button click of the Credit Card form:

1. Validate all the fields
2. Add a transaction record to the database
3. Instantiate the PayFlowPro component
4. Update the transaction record with the values to be sent.
4. Call the required method on the PayFlowPro component (e.g., SubmitSale)
5. Read the PayFlowPro response (e.g, PNREF, AUTHCODE and RESPMSG )
6. Write the results to the database transaction record.

We wrote our own class to wrap PayFlowPro for .NET use, but I see there's
one here: http://www.jasonmperry.com/code/VerisignPayFlowProWrapper.aspx and
a Google search will turn up others you can use.

The best thing is to get a test account on VeriSign's site, download the
PayFlowPro component and documentation and follow the example code.
 
Back
Top