MiniVend Akopia Services

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

Minivend-Cybercash Comm problem SOLVED - thanks! Solution enclosed




Thanks to your suggestions and my bloody-minded persistance, I have
managed to get MV to talk to CyberCash on my system. Here was the problem,
as I posted it on 11/29:

>Here's the profile code, straight from my ord/checkout.html:
>
>
><HTML>
><HEAD>
><TITLE>[L]Check out[/L] -- __COMPANY__</TITLE>
>
>[set checkout_profile]
>name=required
>address=required
>city=required
>country=required
>state=state
>zip=zip
>email=required
>phone_day=phone
>email=email
>&fatal = yes
>[if value fax_order]
>&set = mv_payment Send Check or Money Order Via Snail Mail
>[else]
>&set = mv_payment Credit Card ([default mv_credit_card_type])
>mv_credit_card_info=required
>[/else]
>[/if]
>&final = yes
>&set=mv_email [value email]
>[/set]

The problem is right here:

>[if value fax_order]
>&set = mv_payment Send Check or Money Order Via Snail Mail
>[else]
>&set = mv_payment Credit Card ([default mv_credit_card_type])
>mv_credit_card_info=required
>[/else]
>[/if]
>&final = yes
>&set=mv_email [value email]
>[/set]

This code is modified from the demo catalog - since I only permit payment
by snail mailed check or Credit Card, I only used a binary test, i.e. if
not check, use credit card. Here's the code that works:

>[if value fax_order]
>&set = mv_payment Send Check or Money Order Via Snail Mail
>[elseif config CyberCash]
>&set = mv_payment Credit Card ([default mv_credit_card_type])
>mv_credit_card_info=required
>[/else]
>[/if]
>&final = yes
>&set=mv_email [value email]
>[/set]

It looks like the config variable must be explictly tested on the checkout
page for the option to be activated. I already _knew_ that cybercash was
enabled, so I didn't test for it in the first version.

As far as I can tell, this requirement is not documented. Be advised.

There may also be more to it - as of now, the test data returned from
cybercash mismatches varibles and labels, so I will report (or enquire, if
I can't figure it out) again.

Thanks again,

Pat Santucci 



Search for: Match: Format: Sort by: