[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: CyberCash and how Minivend is screwed up
temper temper :-)
It almost sounds like something is trying to preprocess the card number
and is returning blank instead.
I created a little UserTag that prints things to the log:
UserTag log-value AddAttr
UserTag log-value Routine <<EOR
sub {
my $opt = shift @_;
my $output;
$output = $opt->{message};
::logGlobal($output);
return "";
}
EOR
Pop this into minivend.cfg. Now, anywhere on a page, you can put
[log-value message="some stuff along with minivend tags"]
That message will be dumped into the log error.log in the minivend root
directory.
In your checkout profile, add this tag to print out the credit card
number:
[set checkout_profile]
name=required
...
[log-value message="CC Num: [value mv_credit_card_num]"]
...
&final
&set=email [value email]
...
[/set]
I think I have the name of the MV credit card number variable wrong, so
you'll need to put the right one in there.
Run a test and see what value you get. Here's the important part:
Put the tag into the body of the checkout page. The first time through,
it shouldn't print anything but "CC Num:" because the card value is NULL.
Hit the "Update" button and see what shows up in the log file after you
enter a credit card number. You should see the number correctly in the
log file. If you don't, then double check to make sure that the name you
gave the credit card field is the same as the one you are printing with
the tag.
Once you are sure the number is being printed into the log file, add the
[log-value ...] tag into the checkout profile. First, add it near (or at)
the first line of the checkout profile. Next, add it just before any
potential calls to CyberCash. Next, add it just _after_ any calls to
CyberCash.
Try to determine the point at which the credit card number goes away. MV
does some "magic" with the built-in CC checking and I was not able to make
it do things in the order I wanted, so I wrote my own tag to use
PaymentNet directly.
I hope this helps.
Best,
Kyle