This line:
$domain_info = $XML_Client->send_cmd( $xcp_request );

makes the call to the OpenSRS server...  $domain_info is the hash reference that 
contains the information.  You should be able to use 
$domain_info->{attributes}->{date_anniv} to retrieve the anniversary date to make your 
price calculation.

Dan



Shawn Pritchard wrote:

> Hello!
>
> I have banged my head against the wall three times, and seem to not be able
> to see the solution staring me in the face.  I am attempting to alter the
> reg_system.cgi script so that I can add pricing calculations, which would
> show up on the verification page(s).
>
> What I am having trouble with is pulling out the "Approval Date" for .ca
> domains.  I *assume* it is available somewhere because just prior to
> printing out the order form, the script pulls data from the WHOIS.  Right?
> So...how do I access this specific entry?
>
> The part of the script I'm staring at does this:
>
>     if ( $in{domain} =~ /ca$/ && $in{ca_reg_type} =~ /prereg|upgrade/ )
>         {
>             $xcp_request->{attributes}->{type} = "whois";
>
> And there are a few things further along which I'm not quite sure what they
> do, so maybe the answer lies in there?  Anyone??  Help!!!  I know that it's
> probably something VERY simple, I'm feeling a little inadequate for not
> being able to get this relatively simple thing!!  (It's kind of like staring
> into the fridge looking for something you know is sitting there...but you
> just keep looking past it).
>
> Thanks!!!

Reply via email to