[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
question on UserTag usage
Hi,
I am getting some odd results from a UserTag. I am using MV 3.12, Red Hat
Linux 6.0, Apache and MySQL.
I have everything working except one UserTag. The UserTag takes info and
does a credit card check through the PaymentNet v2.0 gateway. Everything
within the tag seems to work correctly, but the tag seems to be causing
something to go wrong in the checkout profile.
I do some basic checking in the checkout profile:
name=required
phone=required
...
&fatal=yes
Then I do some SQL to save the order entry even though it isn't all
checked yet:
[sql ....] ... [/sql]
Then I check the credit card:
[check-card CC_NUM="[value credit_card_num"] ...]
Then I do a little SQL to update the stored order with the transaction
code from the CC authorization, and I'm done.
Sounds good, but it doesn't seem to work. If I have the [check-card] tag
in there at all, I _always_ get a failure that sends me to the
missingfield page. Always. I have tried inserting &fata=no etc. No
luck.
the UserTag [check-card] outputs some code that I want to have
interpolated. That seems to work. For instance, I set a value that is
then used in the last SQL update, and the value passes through correctly.
In the Perl code I have something like this:
my $output;
$output = "[perl values]
$Safe{'values'}->{cc_auth}='$cc_auth';[/perl]\n";
$output .= "&set=credit_card_number xxxx\n";
$output .= "&set=cc_auth $cc_auth\n";
return $output;
I can tell that the little bit of embedded perl is running correctly, but
I never go to my receipt page. I only go to the missing field page. I
have not tried adding
$output .= "&return 1";
But that seems like a serious hack and I would prefer to avoid that kind
of thing if possible.
Does anyone have an idea what is happening here? Is my explanation clear?
Best,
Kyle