[ic] indirect_login and mv_credit_card_info

Tom Tucker tom at ttucker.com
Mon Aug 21 21:47:36 EDT 2006


> On 08/20/2006 11:20 AM, Tom Tucker wrote:
> > Interchange 5.4.0
> > MySQL 4.1.19-standard
> > Mac OS X 10.4.7
> > Modified 'standard' demo
> >
> > When 'UserDB    default    indirect_login    email' is commented out in
> > catalog.cfg, mv_credit_card_info (encrypted credit card data) is
> > successfully stored in both userdb and transactions (updated
> > log_transaction).
> >
> > When I uncomment this line, the mv_credit_card_info column is
> empty. This
> > happens whether 'UserDB    default    assign_username    1' is
> uncommented
> > or not.
> >
> > Is this expected behavior?
> >
> > How can I allow customers to login with their email address AND
> store the
> > encrypted card data?
>
> Try this patch and let us know if it works (note probably suffers from
> word wrap so you will likely hve to apply by hand):
>
> --- UserDB.pm	2005-11-08 13:14:45.000000000 -0500
> +++ UserDB.indirect	2006-08-14 10:06:11.000000000 -0400
> @@ -1580,12 +1580,12 @@
>   			$Vend::Session->{auto_created_user} =
> $self->{USERNAME};
>   		}
>   		else {
> +			$self->set_values() unless $self->{OPTIONS}{no_set};
>   			$self->{USERNAME} = $foreign if $foreign;
>   			username_cookies($self->{USERNAME}, $pw)
>   				if $Vend::Cfg->{CookieLogin};
>
>   			$self->log('new account') if $options{'log'};
> -			$self->set_values() unless $self->{OPTIONS}{no_set};
>   			$self->login()
>   				or die errmsg(
>   							"Cannot log
> in after new account creation: %s",
>
>
> Peter

Thanks Peter.

I manually applied the patch and it stores the encrypted credit card data.

But...

No I'm getting the "(Customer record creation): There was an error adding
you to the customer table." error.

Any one?

Tom

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.4/424 - Release Date: 8/21/2006



More information about the interchange-users mailing list