[Handel] credit card processing questions
    Christopher H. Laco 
    claco at chrislaco.com
       
    Thu Dec  8 02:05:44 CET 2005
    
    
  
> Now I'm beginnin to understand your idea of a plugable
> system....and I like it!  I do have one question.  Do
> I have to make the plugin/sub function 
> CHECKOUT_PHASE_AUTHORIZE or is that an arbitrary name
> that you chose.  I have the same question about the
I just reread that. The register sub is required...the handler it calls
can be anything. CHECKOUT_PHASE_AUTHORIZE just talls the checkout
process what phase it should call your handler sub.
  sub register {
    my ($self, $ctx) = @_;
    $ctx->add_handler(CHECKOUT_PHASE_AUTHORIZE, \&anyoldcrap);
  };
   sub anyoldcrap {};
-=Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/handel/attachments/20051207/989a4723/signature-0001.pgp
    
    
More information about the Handel
mailing list