[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Simple &charge globalsub always failing.
****** message to minivend-users from Sonny Cook <sonny@akopia.com> ******
I was beating my head against this very thing last night. Here's what you
need to know. In profiles.order you need a &charge custom webauthorize.
This tells IC (MV) which globalsub to use. The return from the new
globalsub is not just looking for a true value, it's looking for a sneaky
hash value. For a successful transaction, you'll need to return a hash
with and 'MStatus' element with the value 'success'. So something like
this:
my $result{'MStatus'} = 'success';
return %result;
To get you a little further on, 'MStatus' = 'denied' denotes a failure and
'ErrMsg' (I think) should have a string denoting the nature of the error.
If you leave &credit_card standard keep in there, your cc number will get
encrypted and deleted from $CGI::values{mv_credit_card_number} before you
can use it.
Let me know how it works out.
---
Sonny Cook
Itinerant Chthonic Actuator
Akopia
"What is it that makes you all behave as though you were real?"
--Franz Kafka "Description of a Struggle"
On Wed, 30 Aug 2000, Steve Bergman wrote:
> ****** 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
>
-
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