[ic] Payment.pm

Cameron G interchange-users@icdevgroup.org
Wed Jun 4 13:44:00 2003


> On Tue, 2003-06-03 at 07:21, Cameron G wrote:
> > Let us consider this snippet of code from Payment.pm
> >
> >         foreach $key (keys %map) {
> >                 $actual{$key} = $vref->{$map{$key}} || $cref->{$key}
> >                         and next;
> >                 my $secondary = $key;
> >                 next unless $secondary =~ s/^b_//;
> >                 $actual{$key} = $vref->{$map{$secondary}} ||
> > $cref->{$map{$secondary}};
> >         }
> >
> > am i to believe that when creating the %actual hash, it will put the
billing
> > details in in place of the shipping details if the customer has filled
them
> > in?
>
> Yep, you are.
>
> -- 
> Dwayne Holmberg
> Iconys Informatica, Inc.
>

Ok, that's what i thought too, but my tests seem to say: no, that's not
exactly how it works. I seem to just end up with a bunch of empty shipping
details and all the billing details filled out as normal.