Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Simple &charge globalsub always failing.



******    message to minivend-users from Steve Bergman <steve@cx662584-c.okc1.ok.home.com>     ******

Hi,

I have been beating my head against the wall trying to get this
resolved.  I must be doing something silly, but I sure can't figure out
what it is.

Minivend version is 4.04.

I create a brand new catalog of style basic.

I modified catalog.cfg to add:

Variable MV_PAYMENT custom webauthorize
CreditCardAuto No

I added this to the end of minivend.cfg:

GlobalSub <<EOF
sub webauthorize {
return 1;
}
EOF

As you can see, this is a very simple subroutine. ;-)

I restart minivend.  When I click place the order, I *always* get the
message that "There was an error in my last submission" and that they
with show up in red.  There is nothing in red.  If I make the globalsub
more interesting by having it print something, I see what it printed in
/tmp/mvdebug.  

I read over the mailing list archives and tried some things suggested by
Ron Phipps, such as doing away with the "&credit_card standard keep" 
and using an explicit "&charge custom webauthorize" in
etc/profiles.order, but nothing helps.  I've tried returning 0 or null,
and in desperation, even 42. ;-)

I have looked over the signio subroutine and messages concerning it and
the only thing I see that might pertain is that it looks like the return
statement in that has a hash as an argument.  I'm no Perl genious, but
thats what it looks like to me.

Any assistance whatsoever would be very greatly appreciated, as I've
been fighting this for about 12 hrs now. 

Thanks,
Steve Bergman
steve@uhura.netplus.net
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: