[thelist] Online payments - how to...

Paul Bennett Paul.Bennett at wcc.govt.nz
Thu May 24 16:18:58 CDT 2007


Hi Nadeem,

Whether you use PHP or not, the basics are the same:
* others please jump in if I'm off-track *

1) gather user CC data over https (plain old form)
2) check CC data for errors
3) take the form data and use something like CURL (or sockets?) to send a packet to the CC processing system
4) analyse return response
	4a) save transaction data if successful (never save CC details, at most save a 'hashed' version of the CC number only eg: xxxx-xxxx-xxxx-1234)
	4b) reshow the form if errors occur (bad  expiry date, number format out etc)

It's not as bad as it sounds, and at the end of the project you'll have a valuable set of extra skills.

:)
Paul



More information about the thelist mailing list