registration, hosting, credit card - how do they fit together?

From: Amjad Ashraf (amjada@yahoo.com)
Date: Sun Oct 01 2000 - 21:39:04 EDT


Hi,
I'm trying to provide a full registration and hosting
solution. As I understand it, there are 3 things my
client will need to do:
-register a domain
-pick a hosting package (gold, silver, etc.)
-pay by credit card

I have perl API's for the credit card processing, and
the hosting enviornment (and of course the OpenSRS
system).
I just want them all to fit together. What's the
quickest way to do this?

I'm thinking I'll just add code to the 'register()'
function in 'reg_system.cgi' in this order. First add
code to charge the client via the credit card perl
api's. Then I'll let the OpenSRS domain registration
code run. Then I'll add code (still in register()) to
setup hosting enviornment via hosting perl api's. The
problem I'm having is what if credit card gets
charged, and then registration fails? Then I have to
uncharge the credit card? Or, what if credit card
gets charged, registration goes through, but hosting
fails? Then, I can undo credit card charge, but how
do I undo OpenSRS registration?

Anyways, I want all 3 to happen as a transaction.
What is the best way to do this? Thanks in advance.

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:58 EDT