[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] CyberCash and Mail In/Will Call payment on same checkout process
****** message to minivend-users from "Christopher Thompson" <ct@arborinternet.com> ******
I struggled with this one for a while recently and finally got it to work.
One reason this was so hard to figure out was that the error message
doesn't print on the failed page because of the quoting. If you put the
[subject] outside the [if] you see the error message. Here is the work
around I came up with:
[set [L]Place Order![/L]]
mv_todo=submit
[if value fax_order]
[perl value config]
$Safe{value}->{mv_cyber_mode} = "";
$Safe{config}->{CyberCash} = 0;
return '';
[/perl]
[else]
[if config CyberCash]
mv_cyber_mode=__CYBER_MODE__
[/if]
[/else]
[/if]
[/set]
You then should do a the following on your receipt page so that CyberCash
will work if they checkout again.
[perl value config]
$Safe{config}->{CyberCash} = 1;
return '';
[/perl]
There is undoubtly a better way to do this. Perhaps a small change to the
Minivend code would allow this to be done by setting mv_payment and
mv_cyber_mode. In the function do_process() in the minivend program there
is the following code for CyberCash:
elsif($VEnd::Cfg->{CyberCash} and defined
$CGI::values{mv_cyber_mode}) {
$status = cyber_charge();
unless($status) {
display_special_page(
find_special_page('failed'),
$Vend::Session->{cybercash_error}
);
put_session();
return;
}
}
I think there could be an additional check in this elsif to see if
mv_payment is set to Credit Card and only attempt to do a CyberCash
transaction if it is. I also don't know if this logic is the same in MV4.0
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Russ
> Sent: Friday, February 25, 2000 2:02 PM
> To: Minivend-Users
> Subject: [mv] CyberCash and Mail In/Will Call payment on same checkout
> process
>
>
> ****** message to minivend-users from "Russ"
> <russ@khouse.org> ******
>
> Hello,
>
> I can't seem to get CyberCash and Mail In to BOTH work
> simultaneously as per
> different options on checkout.
>
> Questions:
>
> Do i set CreditCardAuto No in catalog.cfg?
> Do i set CyberCash Yes in catalog.cfg?
>
> What is this for:
>
> [if value fax_order][then]
> [perl config]
> $Safe{config}->{CyberCash} = 0;
> $Safe{config}->{CreditCardAuto} = 1;
> return '';
> [/perl]
> &set = mv_payment Mail In
> [/then]
> [else]
> [perl config]
> $Safe{config}->{CyberCash} = 1;
> $Safe{config}->{CreditCardAuto} = 0;
> return '';
> [/perl]
> &set = mv_payment Cybercash Authorized ([default mv_credit_card_type])
> [/else]
> [/if]
>
>
> I have a multi-page checkout process, and the last step is
> putting in your
> CC info if needed. I can get the system to always require CC info for
> CyberCash, or always accept the info for Mail In, but not dynamically.
>
> Does the sessions.gdbm play into this at all?
>
> Please help!!!!
>
> Thanks,
>
> Russ
>
> -
> 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