i did actually point out the changes that I made in the SF mailing list :-)
however the way that I did them suit me but are a quick and dirty method
that will get purists (and Paul) cringing :-)
Still here they are:
In Renew.pm I replace the 3 lines
#=========================================================================
# renew() - handle default reg actions
sub renew_domain {
with this:
#=========================================================================
# renew() - handle default reg actions
sub renew_domain {
my $self = shift;
my %html = $self->renew();
$self->print_renew(%html);
}
#=========================================================================
# renew_domain() -
sub renew {
then at the end of the old renew_domain I replace the :
$self->print_tpl('renewal_results.html', %html);
}
with:
return %html;
#$self->print_tpl('renewal_results.html', %html);
}
then I added a simple print routine:
#=========================================================================
# print_renew() - display order status
sub print_renew {
my $self = shift;
my %html = @_;
my $_priv = $UTIL->get_enchash();
my $_enchash = $UTIL->make_enchash($_priv);
my $hidden = Util::Hidden->new();
$hidden->add($CONFIG{enchash_key} => $_enchash);
$self->print_tpl('renewal_results.html', %html);
}
Now I am able, in my renew hook, to authenticate and pre-auth credit card,
authenticate for renewal - do the renew by
my %html = $obj->renew();
then check the html back - eg:
if ($html{step1_res} eq "Fail!")
{
errexit("Renewal for $html{orig_domain} failed with the
following error:
<br>$html{step1_text}");
}
if ($html{step2_res} eq "Fail!")
{
errexit("Renewal for $html{orig_domain} failed with the
following error:
<br><br>$html{step2_text}<br><br>Current expiry date is:
$html{step1_expiredate}");
}
then carry on with database processing, credit card completion and calling
print_renew to print my thank you
cheers - told you it wasn't pretty - but it works :-) (if anyone wants more
of that particular hook then I am happy to send it of post it or whatever)
Jim Carey
www.OZbcoz.com discount domain registration
www.iluvoz.com affordable hosting services
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of WebWiz
> Sent: Friday, 16 November 2001 6:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Client innovation
>
>
> Have you / will you post the changes to the SF site so
> that we can benefit from them?
>
> I'm not real familiar with how "open" the SF version is,
> but I imagine at the very least that you can upload the
> patch and it would be considered for inclusion. Isn't
> that the whole point of moving to SF for development??
>
> Regards,
> Eric Longman
> Atl-Connect Internet Services
>
> +-------------------------------------------------------+
> | Atl-Connect Internet Services http://www.atlcon.net |
> | 3600 Dallas Hwy Ste 230-288 770 590-0888 |
> | Marietta, GA 30064-1685 [EMAIL PROTECTED] |
> +-------------------------------------------------------+
>
> ----- Original Message -----
> From: "Jim Carey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 15, 2001 3:44 PM
> Subject: RE: Client innovation
>
>
> that side isn't well structured yet to enable credit card
> processing and db
> processing via the hooks. It is still setup like the original code was for
> transfers and orders before Paul did his changes to make all that
> simple. So
> I put in a couple of simple changes there to do similar things to
> what Paul
> had done with the register_domain area and I am now happy with it
> all - can
> pre-auth, write to db etc.
>
> I really like the SF code - apart from the renew.pm changes I have no
> changes to distributed code (apart from templates of course) and can
> register .com.au within the same code as well - that integration
> was simple
> in the new environment
>
> cheers
>
> Jim Carey
> www.OZbcoz.com discount domain registration
> www.iluvoz.com affordable hosting services
>
> <snip>
>